-
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.
fix: upgrade to
@sanity/pkg-utils
v5 and use updated ESM best pract…
…ices (#5983) * fix: upgrade to `@sanity/pkg-utils` v5 and use updated ESM best practices * refactor: remove redundant `--tsconfig tsconfig.lib.json` cli arg * chore: use import that works in native ESM * chore: bump `@sanity/pkg-utils` * fix: lodash imports need to use `from 'lodash'` for rollup to be able to optimize it * chore(deps): bump nano-pubsub * chore: write to PKG_VERSION to give pre-releases their own version numbers * chore: run build as part of publish to use the correct PKG_VERSION * chore: bump tsdoc * chore: add prepublishOnly at root to speedup canary publishing * chore: fix path to `@sanity/vision` * chore: support types in `/examples` without first running `pnpm build` --------- Co-authored-by: Bjørge Næss <[email protected]>
- Loading branch information
Showing
199 changed files
with
1,337 additions
and
1,839 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{ | ||
"ignores": ["@sanity/eslint-config-studio", "dotenv-flow", "esbuild", "esbuild-register"] | ||
"ignores": [ | ||
"@repo/tsconfig", | ||
"@sanity/eslint-config-studio", | ||
"dotenv-flow", | ||
"esbuild", | ||
"esbuild-register" | ||
] | ||
} |
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 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 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 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 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 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 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 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 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 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 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 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,8 +1,3 @@ | ||
{ | ||
"extends": "../tsconfig.dev", | ||
"include": ["**/*.ts", "**/*.tsx"], | ||
"compilerOptions": { | ||
"jsx": "preserve" | ||
}, | ||
"references": [{"path": "../../packages/sanity/tsconfig.lib.json"}] | ||
"extends": "../tsconfig.dev" | ||
} |
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 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 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 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 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,8 +1,6 @@ | ||
{ | ||
"extends": "../tsconfig.dev", | ||
"include": ["**/*.ts", "**/*.tsx"], | ||
"compilerOptions": { | ||
"jsx": "preserve" | ||
}, | ||
"references": [{"path": "../../packages/sanity/tsconfig.lib.json"}] | ||
} | ||
} |
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,9 +1,3 @@ | ||
{ | ||
"extends": "../tsconfig.dev", | ||
"include": ["**/*.ts", "**/*.tsx"], | ||
"compilerOptions": { | ||
"composite": true, | ||
"jsx": "preserve" | ||
}, | ||
"references": [{"path": "../../packages/sanity/tsconfig.lib.json"}] | ||
"extends": "../tsconfig.dev" | ||
} |
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 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 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 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 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,15 +1,6 @@ | ||
{ | ||
"extends": "../tsconfig.dev", | ||
"include": ["**/*.ts", "**/*.tsx"], | ||
"compilerOptions": { | ||
"jsx": "react-jsx", | ||
"allowJs": true, | ||
"isolatedModules": false | ||
}, | ||
"references": [ | ||
{"path": "../../packages/@sanity/types/tsconfig.lib.json"}, | ||
{"path": "../../packages/@sanity/vision/tsconfig.lib.json"}, | ||
{"path": "../../packages/sanity/tsconfig.lib.json"}, | ||
{"path": "../../packages/@sanity/migrate/tsconfig.lib.json"} | ||
] | ||
} | ||
} |
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,19 +1,26 @@ | ||
{ | ||
"extends": "../tsconfig.settings", | ||
"include": ["../packages/@sanity/util/src"], | ||
"extends": "@repo/tsconfig/base.json", | ||
"include": ["**/*.ts", "**/*.tsx"], | ||
"compilerOptions": { | ||
"rootDir": "..", | ||
"baseUrl": "..", | ||
"outDir": "./.cache/ts", | ||
|
||
"paths": { | ||
// Alias to paths required for Sanity CLI to run in dev-mode | ||
"@sanity/mutator": ["./packages/@sanity/mutator/src"], | ||
"@sanity/util/fs": ["./packages/@sanity/util/exports/fs.ts"], | ||
"sanity/_internal": ["./packages/sanity/exports/_internal.ts"], | ||
"sanity/migrate": ["./packages/sanity/exports/migrate.ts"], | ||
"sanity/migrate/mutations": ["./packages/sanity/exports/migrate-mutations.ts"], | ||
"sanity/cli": ["./packages/sanity/exports/cli.ts"] | ||
"@sanity/block-tools": ["./packages/@sanity/block-tools/src/index.ts"], | ||
"@sanity/diff": ["./packages/@sanity/diff/src/index.ts"], | ||
"@sanity/cli": ["./packages/@sanity/cli/src/index.ts"], | ||
"@sanity/codegen": ["./packages/@sanity/codegen/src/_exports/index.ts"], | ||
"@sanity/mutator": ["./packages/@sanity/mutator/src/index.ts"], | ||
"@sanity/portable-text-editor": ["./packages/@sanity/portable-text-editor/src/index.ts"], | ||
"@sanity/schema/*": ["./packages/@sanity/schema/src/_exports/*"], | ||
"@sanity/schema": ["./packages/@sanity/schema/src/_exports/index.ts"], | ||
"@sanity/migrate": ["./packages/@sanity/migrate/src/_exports/index.ts"], | ||
"@sanity/types": ["./packages/@sanity/types/src/index.ts"], | ||
"@sanity/util/*": ["./packages/@sanity/util/src/_exports/*"], | ||
"@sanity/util": ["./packages/@sanity/util/src/_exports/index.ts"], | ||
"@sanity/vision": ["./packages/@sanity/vision/src/index.ts"], | ||
"groq": ["./packages/groq/src/groq.ts"], | ||
"sanity/*": ["./packages/sanity/src/_exports/*"], | ||
"sanity": ["./packages/sanity/src/_exports/index.ts"] | ||
} | ||
} | ||
} |
Oops, something went wrong.