@sanity/pkg-utils 6.8.8 → 6.8.10-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/init.cjs +3 -11
- package/dist/_chunks-cjs/init.cjs.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/index.js +3 -11
- package/dist/index.js.map +1 -1
- package/package.json +9 -9
- package/src/node/templates/default/template.ts +3 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/pkg-utils",
|
|
3
|
-
"version": "6.8.
|
|
3
|
+
"version": "6.8.10-canary.0",
|
|
4
4
|
"description": "Simple utilities for modern npm packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity-io",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"browserslist": "extends @sanity/browserslist-config",
|
|
68
68
|
"prettier": "@sanity/prettier-config",
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@babel/core": "^7.24.
|
|
71
|
-
"@babel/types": "^7.24.
|
|
70
|
+
"@babel/core": "^7.24.5",
|
|
71
|
+
"@babel/types": "^7.24.5",
|
|
72
72
|
"@microsoft/api-extractor": "7.43.1",
|
|
73
73
|
"@microsoft/tsdoc-config": "^0.16.2",
|
|
74
74
|
"@optimize-lodash/rollup-plugin": "4.0.4",
|
|
@@ -100,12 +100,12 @@
|
|
|
100
100
|
"prompts": "^2.4.2",
|
|
101
101
|
"recast": "0.23.6",
|
|
102
102
|
"rimraf": "^4.4.1",
|
|
103
|
-
"rollup": "^4.17.
|
|
103
|
+
"rollup": "^4.17.2",
|
|
104
104
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
105
105
|
"rxjs": "^7.8.1",
|
|
106
106
|
"treeify": "^1.1.0",
|
|
107
107
|
"uuid": "^9.0.1",
|
|
108
|
-
"zod": "3.23.
|
|
108
|
+
"zod": "3.23.5",
|
|
109
109
|
"zod-validation-error": "3.2.0"
|
|
110
110
|
},
|
|
111
111
|
"devDependencies": {
|
|
@@ -123,8 +123,8 @@
|
|
|
123
123
|
"@types/semver": "^7.5.8",
|
|
124
124
|
"@types/treeify": "^1.0.3",
|
|
125
125
|
"@types/uuid": "^9.0.8",
|
|
126
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
127
|
-
"@typescript-eslint/parser": "^7.
|
|
126
|
+
"@typescript-eslint/eslint-plugin": "^7.8.0",
|
|
127
|
+
"@typescript-eslint/parser": "^7.8.0",
|
|
128
128
|
"browserslist-to-esbuild": "2.1.1",
|
|
129
129
|
"commitizen": "^4.3.0",
|
|
130
130
|
"cpx": "^1.5.0",
|
|
@@ -142,9 +142,9 @@
|
|
|
142
142
|
"semver": "^7.6.0",
|
|
143
143
|
"ts-node": "^10.9.2",
|
|
144
144
|
"typescript": "5.4.5",
|
|
145
|
-
"vitest": "^1.5.
|
|
145
|
+
"vitest": "^1.5.3",
|
|
146
146
|
"vitest-github-actions-reporter": "^0.11.1",
|
|
147
|
-
"@sanity/pkg-utils": "6.8.
|
|
147
|
+
"@sanity/pkg-utils": "6.8.10-canary.0"
|
|
148
148
|
},
|
|
149
149
|
"peerDependencies": {
|
|
150
150
|
"typescript": "5.4.x"
|
|
@@ -151,9 +151,7 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
|
|
|
151
151
|
'type': 'module',
|
|
152
152
|
'exports': {
|
|
153
153
|
'.': {
|
|
154
|
-
types: undefined,
|
|
155
154
|
source: features['typescript'] ? './src/index.ts' : './src/index.js',
|
|
156
|
-
import: './dist/index.js',
|
|
157
155
|
require: './dist/index.cjs',
|
|
158
156
|
default: './dist/index.js',
|
|
159
157
|
},
|
|
@@ -161,17 +159,11 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
|
|
|
161
159
|
},
|
|
162
160
|
'main': './dist/index.cjs',
|
|
163
161
|
'module': './dist/index.js',
|
|
164
|
-
'source': features['typescript'] ? './src/index.ts' : './src/index.js',
|
|
165
162
|
'types': undefined,
|
|
166
163
|
'files': ['dist', 'src'],
|
|
167
164
|
'scripts': {
|
|
168
|
-
|
|
169
|
-
'
|
|
170
|
-
'format': features['prettier']
|
|
171
|
-
? 'prettier --write --cache --ignore-unknown .'
|
|
172
|
-
: undefined,
|
|
173
|
-
'pkg:build': 'pkg build --strict',
|
|
174
|
-
'pkg:check': 'pkg check --strict',
|
|
165
|
+
build: 'pkg build --strict --clean --check',
|
|
166
|
+
format: features['prettier'] ? 'prettier --write --cache --ignore-unknown .' : undefined,
|
|
175
167
|
},
|
|
176
168
|
'lint-staged': features['prettier']
|
|
177
169
|
? {
|
|
@@ -191,10 +183,8 @@ export const defaultTemplate: PkgTemplate = async ({cwd, logger, packagePath}) =
|
|
|
191
183
|
'eslint-plugin-prettier': undefined,
|
|
192
184
|
'eslint-plugin-simple-import-sort': undefined,
|
|
193
185
|
'lint-staged': '*',
|
|
194
|
-
'npm-run-all': '*',
|
|
195
186
|
'prettier': features['prettier'] ? '*' : undefined,
|
|
196
|
-
'prettier-
|
|
197
|
-
'rimraf': '*',
|
|
187
|
+
'@sanity/prettier-config': features['prettier'] ? '*' : undefined,
|
|
198
188
|
'typescript': undefined,
|
|
199
189
|
},
|
|
200
190
|
'engines': {
|