Skip to content

Commit

Permalink
feat(deps)!: update dependency @sanity/pkg-utils to v7 (#490)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: the `legacyExports` and `ae-forgotten-export` options are removed
  • Loading branch information
stipsan authored Jan 8, 2025
1 parent 8a9c53e commit 0228a2d
Show file tree
Hide file tree
Showing 46 changed files with 79 additions and 373 deletions.
3 changes: 0 additions & 3 deletions package.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,11 @@ export default defineConfig({
},
],
rules: {
'ae-forgotten-export': 'warn',
'ae-incompatible-release-tags': 'error',
'ae-internal-missing-underscore': 'off',
'ae-missing-release-tag': 'error',
},
},

legacyExports: true,

tsconfig: 'tsconfig.dist.json',
})
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"license": "MIT",
"author": "Sanity.io <hello@sanity.io>",
"sideEffects": false,
"type": "commonjs",
"exports": {
".": {
"source": "./exports/index.ts",
Expand Down Expand Up @@ -50,7 +51,7 @@
"./package.json": "./package.json"
},
"main": "./dist/exports/index.js",
"module": "./dist/exports/index.esm.js",
"module": "./dist/exports/index.mjs",
"types": "./dist/exports/index.d.ts",
"typesVersions": {
"*": {
Expand Down Expand Up @@ -86,7 +87,7 @@
"pkg:check": "pkg --strict",
"prepublishOnly": "run-s build",
"release": "semantic-release",
"test": "vitest",
"test": "vitest run",
"tsdoc:dev": "node -r dotenv-flow/config -r esbuild-register scripts/dev",
"type-check": "tsc --build",
"watch": "pkg watch",
Expand Down Expand Up @@ -132,7 +133,7 @@
"@sanity/client": "^6.24.2",
"@sanity/color": "^3.0.6",
"@sanity/icons": "^3.5.7",
"@sanity/pkg-utils": "6.13.4",
"@sanity/pkg-utils": "7.0.0",
"@sanity/ui": "^2.11.1",
"@types/cpx": "^1.5.5",
"@vitejs/plugin-react": "^4.3.4",
Expand Down Expand Up @@ -195,8 +196,7 @@
"semantic-release": "^24.2.1",
"styled-components": "^6.1.14",
"uuid": "^11.0.4",
"vitest": "^2.1.8",
"vitest-github-actions-reporter": "^0.11.1"
"vitest": "^2.1.8"
},
"peerDependencies": {
"react": "^18 || ^19",
Expand Down
1 change: 0 additions & 1 deletion playground/multi-export-cjs-legacy/exports/extra.ts

This file was deleted.

1 change: 0 additions & 1 deletion playground/multi-export-cjs-legacy/exports/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions playground/multi-export-cjs-legacy/extra.js

This file was deleted.

11 changes: 0 additions & 11 deletions playground/multi-export-cjs-legacy/package.config.ts

This file was deleted.

41 changes: 0 additions & 41 deletions playground/multi-export-cjs-legacy/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions playground/multi-export-cjs-legacy/src/extra.ts

This file was deleted.

5 changes: 0 additions & 5 deletions playground/multi-export-cjs-legacy/src/index.ts

This file was deleted.

9 changes: 0 additions & 9 deletions playground/multi-export-cjs-legacy/tsconfig.dist.json

This file was deleted.

11 changes: 0 additions & 11 deletions playground/multi-export-cjs-legacy/tsconfig.json

This file was deleted.

34 changes: 0 additions & 34 deletions playground/multi-export-cjs-legacy/tsconfig.settings.json

This file was deleted.

12 changes: 0 additions & 12 deletions playground/multi-export-cjs-legacy/tsdoc.config.ts

This file was deleted.

5 changes: 0 additions & 5 deletions playground/multi-export-cjs/package.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import {defineConfig} from '@sanity/pkg-utils'

export default defineConfig({
extract: {
rules: {
'ae-forgotten-export': 'off',
},
},
tsconfig: 'tsconfig.dist.json',
})
1 change: 0 additions & 1 deletion playground/multi-export-legacy/exports/extra.ts

This file was deleted.

1 change: 0 additions & 1 deletion playground/multi-export-legacy/exports/index.ts

This file was deleted.

2 changes: 0 additions & 2 deletions playground/multi-export-legacy/extra.js

This file was deleted.

11 changes: 0 additions & 11 deletions playground/multi-export-legacy/package.config.ts

This file was deleted.

42 changes: 0 additions & 42 deletions playground/multi-export-legacy/package.json

This file was deleted.

4 changes: 0 additions & 4 deletions playground/multi-export-legacy/src/extra.ts

This file was deleted.

5 changes: 0 additions & 5 deletions playground/multi-export-legacy/src/index.ts

This file was deleted.

9 changes: 0 additions & 9 deletions playground/multi-export-legacy/tsconfig.dist.json

This file was deleted.

11 changes: 0 additions & 11 deletions playground/multi-export-legacy/tsconfig.json

This file was deleted.

34 changes: 0 additions & 34 deletions playground/multi-export-legacy/tsconfig.settings.json

This file was deleted.

12 changes: 0 additions & 12 deletions playground/multi-export-legacy/tsdoc.config.ts

This file was deleted.

5 changes: 0 additions & 5 deletions playground/multi-export/package.config.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
import {defineConfig} from '@sanity/pkg-utils'

export default defineConfig({
extract: {
rules: {
'ae-forgotten-export': 'off',
},
},
tsconfig: 'tsconfig.dist.json',
})
1 change: 0 additions & 1 deletion playground/mylib-bundling-ts/package.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,5 @@ export default defineConfig({
},
],
},
legacyExports: true,
tsconfig: 'tsconfig.dist.json',
})
3 changes: 2 additions & 1 deletion playground/mylib-bundling-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"private": true,
"license": "MIT",
"sideEffects": false,
"type": "commonjs",
"exports": {
".": {
"source": "./src/index.ts",
Expand All @@ -14,7 +15,7 @@
"./package.json": "./package.json"
},
"main": "./dist/index.js",
"module": "./dist/index.esm.js",
"module": "./dist/index.mjs",
"files": ["dist"],
"types": "./dist/index.d.ts",
"scripts": {
Expand Down
1 change: 0 additions & 1 deletion playground/mylib-bundling-ts/tsdoc.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import packageConfig from './package.config'

export default defineConfig({
extract: packageConfig.extract,
legacyExports: packageConfig.legacyExports,
input: {
type: 'fs',
tsconfig: 'tsconfig.tsdoc.json',
Expand Down
Loading

0 comments on commit 0228a2d

Please sign in to comment.