@sanity/pkg-utils 6.8.18 → 6.8.19-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_chunks-cjs/index.cjs +5 -0
- package/dist/_chunks-cjs/index.cjs.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/package.json +14 -7
- package/src/node/core/config/types.ts +2 -0
- package/src/node/tasks/rollup/resolveRollupConfig.ts +6 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/pkg-utils",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.19-canary.0",
|
|
4
4
|
"description": "Simple utilities for modern npm packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity-io",
|
|
@@ -67,8 +67,9 @@
|
|
|
67
67
|
"browserslist": "extends @sanity/browserslist-config",
|
|
68
68
|
"prettier": "@sanity/prettier-config",
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@babel/core": "^7.24.
|
|
71
|
-
"@babel/
|
|
70
|
+
"@babel/core": "^7.24.6",
|
|
71
|
+
"@babel/preset-typescript": "^7.24.6",
|
|
72
|
+
"@babel/types": "^7.24.6",
|
|
72
73
|
"@microsoft/api-extractor": "7.43.8",
|
|
73
74
|
"@microsoft/tsdoc-config": "^0.16.2",
|
|
74
75
|
"@optimize-lodash/rollup-plugin": "4.0.4",
|
|
@@ -84,7 +85,7 @@
|
|
|
84
85
|
"cac": "^6.7.14",
|
|
85
86
|
"chalk": "^4.1.2",
|
|
86
87
|
"chokidar": "^3.6.0",
|
|
87
|
-
"esbuild": "^0.21.
|
|
88
|
+
"esbuild": "^0.21.4",
|
|
88
89
|
"esbuild-register": "^3.5.0",
|
|
89
90
|
"find-config": "^1.0.0",
|
|
90
91
|
"get-latest-version": "^5.1.0",
|
|
@@ -123,8 +124,8 @@
|
|
|
123
124
|
"@types/semver": "^7.5.8",
|
|
124
125
|
"@types/treeify": "^1.0.3",
|
|
125
126
|
"@types/uuid": "^9.0.8",
|
|
126
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
127
|
-
"@typescript-eslint/parser": "^7.
|
|
127
|
+
"@typescript-eslint/eslint-plugin": "^7.11.0",
|
|
128
|
+
"@typescript-eslint/parser": "^7.11.0",
|
|
128
129
|
"browserslist-to-esbuild": "2.1.1",
|
|
129
130
|
"commitizen": "^4.3.0",
|
|
130
131
|
"cpx": "^1.5.0",
|
|
@@ -144,11 +145,17 @@
|
|
|
144
145
|
"typescript": "5.4.5",
|
|
145
146
|
"vitest": "^1.6.0",
|
|
146
147
|
"vitest-github-actions-reporter": "^0.11.1",
|
|
147
|
-
"@sanity/pkg-utils": "6.8.
|
|
148
|
+
"@sanity/pkg-utils": "6.8.19-canary.0"
|
|
148
149
|
},
|
|
149
150
|
"peerDependencies": {
|
|
151
|
+
"babel-plugin-react-compiler": "*",
|
|
150
152
|
"typescript": "5.4.x"
|
|
151
153
|
},
|
|
154
|
+
"peerDependenciesMeta": {
|
|
155
|
+
"babel-plugin-react-compiler": {
|
|
156
|
+
"optional": true
|
|
157
|
+
}
|
|
158
|
+
},
|
|
152
159
|
"engines": {
|
|
153
160
|
"node": ">=18.17.0"
|
|
154
161
|
},
|
|
@@ -95,6 +95,12 @@ export function resolveRollupConfig(
|
|
|
95
95
|
}),
|
|
96
96
|
commonjs(),
|
|
97
97
|
json(),
|
|
98
|
+
config?.babel?.reactCompiler &&
|
|
99
|
+
getBabelOutputPlugin({
|
|
100
|
+
babelrc: false,
|
|
101
|
+
presets: ['@babel/preset-typescript'],
|
|
102
|
+
plugins: [['babel-plugin-react-compiler', {}]],
|
|
103
|
+
}),
|
|
98
104
|
esbuild({
|
|
99
105
|
jsx: config?.jsx ?? 'automatic',
|
|
100
106
|
jsxFactory: config?.jsxFactory ?? 'createElement',
|