-
Notifications
You must be signed in to change notification settings - Fork 432
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use
PKG_VERSION
from @sanity/pkg-utils
instead of manua…
…lly regexing `SANITY_VERSION` (#6078) * refactor: use `PKG_VERSION` from `@sanity/pkg-utils` instead of manually regexing `SANITY_VERSION` * chore(sanity): remove unused script (#6090) --------- Co-authored-by: Bjørge Næss <[email protected]>
- Loading branch information
Showing
6 changed files
with
5 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
/** | ||
* TODO: rename to `VERSION` | ||
* | ||
* | ||
* This version is provided by `@sanity/pkg-utils` at build time | ||
* @hidden | ||
* @beta | ||
*/ | ||
// This string is overwritten by prepublish script with `.version` from package.json | ||
// The version you see here is only read in monorepo development | ||
export const SANITY_VERSION = '0.0.0-development' as string | ||
export const SANITY_VERSION = process.env.PKG_VERSION || ('0.0.0-development' as string) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters