@sanity/pkg-utils 6.8.9 → 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 +3 -3
- 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",
|
|
@@ -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': {
|