@sanity/pkg-utils 3.2.4 → 3.2.6-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/{build-x5i4O8IV.cjs → build-tKBAy-UA.cjs} +2 -2
- package/dist/_chunks/{build-x5i4O8IV.cjs.map → build-tKBAy-UA.cjs.map} +1 -1
- package/dist/_chunks/{buildAction-2LUsWSI8.cjs → buildAction-sJDtj4iB.cjs} +2 -2
- package/dist/_chunks/{buildAction-2LUsWSI8.cjs.map → buildAction-sJDtj4iB.cjs.map} +1 -1
- package/dist/_chunks/{index-yeO2SQtJ.cjs → index-i-CDoKGI.cjs} +4 -4
- package/dist/_chunks/index-i-CDoKGI.cjs.map +1 -0
- package/dist/_chunks/{watch-DsNunIr0.cjs → watch-TNMFMKRH.cjs} +2 -2
- package/dist/_chunks/{watch-DsNunIr0.cjs.map → watch-TNMFMKRH.cjs.map} +1 -1
- package/dist/_chunks/{watchAction-Qy9mrpk5.cjs → watchAction-F1JwLii7.cjs} +2 -2
- package/dist/_chunks/{watchAction-Qy9mrpk5.cjs.map → watchAction-F1JwLii7.cjs.map} +1 -1
- package/dist/cli.cjs +3 -3
- package/dist/index.cjs +3 -3
- package/dist/index.d.ts +2 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +39 -33
- package/src/node/core/config/types.ts +2 -1
- package/src/node/tasks/rollup/resolveRollupConfig.ts +1 -0
- package/dist/_chunks/index-yeO2SQtJ.cjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/pkg-utils",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.6-canary.0",
|
|
4
4
|
"description": "Simple utilities for modern npm packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity-io",
|
|
@@ -46,6 +46,24 @@
|
|
|
46
46
|
"!dist/stats.html",
|
|
47
47
|
"src"
|
|
48
48
|
],
|
|
49
|
+
"scripts": {
|
|
50
|
+
"build": "run-s clean build:pkg check:pkg",
|
|
51
|
+
"build:pkg": "node -r esbuild-register scripts/build",
|
|
52
|
+
"check:pkg": "node -r esbuild-register scripts/check",
|
|
53
|
+
"check:types": "tsc --build",
|
|
54
|
+
"clean": "rimraf dist test/env/__tmp__",
|
|
55
|
+
"commit": "cz",
|
|
56
|
+
"extract": "sanity-tsdoc etl --outDir etc/api/@sanity/pkg-utils --tsconfig tsconfig.dist.json",
|
|
57
|
+
"format": "prettier --write --cache --ignore-unknown . && eslint . --ext .cjs,.js,.ts,.tsx --fix --quiet",
|
|
58
|
+
"lint": "eslint . --ext .cjs,.js,.ts,.tsx",
|
|
59
|
+
"playground:build": "pnpm --filter './playground/**' build",
|
|
60
|
+
"playground:clean": "pnpm --filter './playground/**' --silent clean",
|
|
61
|
+
"prepublishOnly": "pnpm run build",
|
|
62
|
+
"test": "run-s playground:clean test:clean vitest:run",
|
|
63
|
+
"test:clean": "rimraf test/env/__tmp__",
|
|
64
|
+
"vitest:run": "vitest run",
|
|
65
|
+
"watch": "node -r esbuild-register scripts/watch"
|
|
66
|
+
},
|
|
49
67
|
"commitlint": {
|
|
50
68
|
"extends": [
|
|
51
69
|
"@commitlint/config-conventional"
|
|
@@ -60,10 +78,10 @@
|
|
|
60
78
|
"dependencies": {
|
|
61
79
|
"@babel/core": "^7.23.3",
|
|
62
80
|
"@babel/preset-env": "^7.23.3",
|
|
63
|
-
"@babel/types": "^7.23.
|
|
81
|
+
"@babel/types": "^7.23.4",
|
|
64
82
|
"@microsoft/api-extractor": "^7.38.3",
|
|
65
83
|
"@microsoft/tsdoc-config": "^0.16.2",
|
|
66
|
-
"@rollup/plugin-alias": "^5.0
|
|
84
|
+
"@rollup/plugin-alias": "^5.1.0",
|
|
67
85
|
"@rollup/plugin-babel": "^6.0.4",
|
|
68
86
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
69
87
|
"@rollup/plugin-json": "^6.0.1",
|
|
@@ -74,7 +92,7 @@
|
|
|
74
92
|
"cac": "^6.7.14",
|
|
75
93
|
"chalk": "^4.1.2",
|
|
76
94
|
"chokidar": "^3.5.3",
|
|
77
|
-
"esbuild": "^0.19.
|
|
95
|
+
"esbuild": "^0.19.8",
|
|
78
96
|
"esbuild-register": "^3.5.0",
|
|
79
97
|
"find-config": "^1.0.0",
|
|
80
98
|
"get-latest-version": "^5.1.0",
|
|
@@ -90,7 +108,7 @@
|
|
|
90
108
|
"pretty-bytes": "^5.6.0",
|
|
91
109
|
"prompts": "^2.4.2",
|
|
92
110
|
"rimraf": "^4.4.1",
|
|
93
|
-
"rollup": "^4.
|
|
111
|
+
"rollup": "^4.6.0",
|
|
94
112
|
"rollup-plugin-esbuild": "^6.1.0",
|
|
95
113
|
"rxjs": "^7.8.1",
|
|
96
114
|
"treeify": "^1.1.0",
|
|
@@ -98,20 +116,21 @@
|
|
|
98
116
|
"zod": "^3.22.4"
|
|
99
117
|
},
|
|
100
118
|
"devDependencies": {
|
|
101
|
-
"@commitlint/cli": "^18.4.
|
|
102
|
-
"@commitlint/config-conventional": "^18.4.
|
|
103
|
-
"@
|
|
119
|
+
"@commitlint/cli": "^18.4.3",
|
|
120
|
+
"@commitlint/config-conventional": "^18.4.3",
|
|
121
|
+
"@sanity/pkg-utils": "workspace:*",
|
|
122
|
+
"@types/babel__core": "^7.20.5",
|
|
104
123
|
"@types/cpx": "^1.5.5",
|
|
105
124
|
"@types/find-config": "^1.0.4",
|
|
106
125
|
"@types/git-url-parse": "^9.0.3",
|
|
107
126
|
"@types/node": "^20.8.7",
|
|
108
127
|
"@types/parse-git-config": "^3.0.4",
|
|
109
|
-
"@types/prompts": "^2.4.
|
|
128
|
+
"@types/prompts": "^2.4.9",
|
|
110
129
|
"@types/rimraf": "^3.0.2",
|
|
111
130
|
"@types/treeify": "^1.0.3",
|
|
112
131
|
"@types/uuid": "^9.0.7",
|
|
113
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
114
|
-
"@typescript-eslint/parser": "^6.
|
|
132
|
+
"@typescript-eslint/eslint-plugin": "^6.13.0",
|
|
133
|
+
"@typescript-eslint/parser": "^6.13.0",
|
|
115
134
|
"commitizen": "^4.3.0",
|
|
116
135
|
"cpx": "^1.5.0",
|
|
117
136
|
"cz-conventional-changelog": "^3.3.0",
|
|
@@ -125,38 +144,25 @@
|
|
|
125
144
|
"npm-run-all": "^4.1.5",
|
|
126
145
|
"outdent": "^0.8.0",
|
|
127
146
|
"recast": "^0.23.4",
|
|
128
|
-
"rollup-plugin-visualizer": "^5.9.
|
|
147
|
+
"rollup-plugin-visualizer": "^5.9.3",
|
|
129
148
|
"ts-node": "^10.9.1",
|
|
130
|
-
"typescript": "^5.
|
|
149
|
+
"typescript": "^5.3.2",
|
|
131
150
|
"vitest": "^0.34.6",
|
|
132
|
-
"vitest-github-actions-reporter": "^0.
|
|
133
|
-
"@sanity/pkg-utils": "3.2.4"
|
|
151
|
+
"vitest-github-actions-reporter": "^0.11.0"
|
|
134
152
|
},
|
|
135
153
|
"peerDependencies": {
|
|
136
154
|
"typescript": "^4.7 || ^5"
|
|
137
155
|
},
|
|
138
|
-
"packageManager": "pnpm@8.
|
|
156
|
+
"packageManager": "pnpm@8.11.0",
|
|
139
157
|
"engines": {
|
|
140
158
|
"node": ">=16.0.0"
|
|
141
159
|
},
|
|
142
160
|
"publishConfig": {
|
|
143
161
|
"access": "public"
|
|
144
162
|
},
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
"check:types": "tsc --build",
|
|
150
|
-
"clean": "rimraf dist test/env/__tmp__",
|
|
151
|
-
"commit": "cz",
|
|
152
|
-
"extract": "sanity-tsdoc etl --outDir etc/api/@sanity/pkg-utils --tsconfig tsconfig.dist.json",
|
|
153
|
-
"format": "prettier --write --cache --ignore-unknown . && eslint . --ext .cjs,.js,.ts,.tsx --fix --quiet",
|
|
154
|
-
"lint": "eslint . --ext .cjs,.js,.ts,.tsx",
|
|
155
|
-
"playground:build": "pnpm --filter './playground/**' build",
|
|
156
|
-
"playground:clean": "pnpm --filter './playground/**' --silent clean",
|
|
157
|
-
"test": "run-s playground:clean test:clean vitest:run",
|
|
158
|
-
"test:clean": "rimraf test/env/__tmp__",
|
|
159
|
-
"vitest:run": "vitest run",
|
|
160
|
-
"watch": "node -r esbuild-register scripts/watch"
|
|
163
|
+
"pnpm": {
|
|
164
|
+
"overrides": {
|
|
165
|
+
"@sanity/pkg-utils": "workspace:*"
|
|
166
|
+
}
|
|
161
167
|
}
|
|
162
|
-
}
|
|
168
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {type PluginItem as BabelPluginItem} from '@babel/core'
|
|
2
|
-
import {type Plugin as RollupPlugin} from 'rollup'
|
|
2
|
+
import {NormalizedOutputOptions, type Plugin as RollupPlugin} from 'rollup'
|
|
3
3
|
|
|
4
4
|
// re-export
|
|
5
5
|
export type {RollupPlugin}
|
|
@@ -119,6 +119,7 @@ export interface PkgConfigOptions {
|
|
|
119
119
|
/** @alpha */
|
|
120
120
|
rollup?: {
|
|
121
121
|
plugins?: PkgConfigProperty<RollupPlugin[]>
|
|
122
|
+
output?: Partial<NormalizedOutputOptions>
|
|
122
123
|
}
|
|
123
124
|
/**
|
|
124
125
|
* Default runtime of package exports
|