@sanity/pkg-utils 5.0.8-canary.0 → 5.1.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/cli.cjs +1 -1
- package/package.json +23 -29
package/dist/cli.cjs
CHANGED
|
@@ -3,7 +3,7 @@ var cac = require("cac");
|
|
|
3
3
|
function _interopDefaultCompat(e) {
|
|
4
4
|
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
5
5
|
}
|
|
6
|
-
var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "5.
|
|
6
|
+
var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "5.1.0";
|
|
7
7
|
const cli = cac__default.default();
|
|
8
8
|
cli.command("", "Check").alias("check").option("--strict", "Strict mode").option("--tsconfig [tsconfig]", "[string] tsconfig.json").action(async (options) => {
|
|
9
9
|
const { checkAction } = await Promise.resolve().then(function() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/pkg-utils",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Simple utilities for modern npm packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity-io",
|
|
@@ -47,24 +47,6 @@
|
|
|
47
47
|
"!dist/stats.html",
|
|
48
48
|
"src"
|
|
49
49
|
],
|
|
50
|
-
"scripts": {
|
|
51
|
-
"build": "run-s clean build:pkg check:pkg",
|
|
52
|
-
"build:pkg": "node -r esbuild-register scripts/build",
|
|
53
|
-
"check:pkg": "node -r esbuild-register scripts/check",
|
|
54
|
-
"check:types": "tsc --build",
|
|
55
|
-
"clean": "rimraf dist test/env/__tmp__",
|
|
56
|
-
"commit": "cz",
|
|
57
|
-
"extract": "sanity-tsdoc etl --outDir etc/api/@sanity/pkg-utils --tsconfig tsconfig.dist.json",
|
|
58
|
-
"format": "prettier --write --cache --ignore-unknown . && eslint . --ext .cjs,.js,.ts,.tsx --fix --quiet",
|
|
59
|
-
"lint": "eslint . --ext .cjs,.js,.ts,.tsx",
|
|
60
|
-
"playground:build": "pnpm --filter './playground/**' build",
|
|
61
|
-
"playground:clean": "pnpm --filter './playground/**' --silent clean",
|
|
62
|
-
"prepublishOnly": "pnpm run build",
|
|
63
|
-
"test": "run-s playground:clean test:clean vitest:run",
|
|
64
|
-
"test:clean": "rimraf test/env/__tmp__",
|
|
65
|
-
"vitest:run": "vitest run",
|
|
66
|
-
"watch": "node -r esbuild-register scripts/watch"
|
|
67
|
-
},
|
|
68
50
|
"commitlint": {
|
|
69
51
|
"extends": [
|
|
70
52
|
"@commitlint/config-conventional"
|
|
@@ -80,7 +62,7 @@
|
|
|
80
62
|
"dependencies": {
|
|
81
63
|
"@babel/core": "^7.24.1",
|
|
82
64
|
"@babel/types": "^7.24.0",
|
|
83
|
-
"@microsoft/api-extractor": "
|
|
65
|
+
"@microsoft/api-extractor": "7.43.0",
|
|
84
66
|
"@microsoft/tsdoc-config": "^0.16.2",
|
|
85
67
|
"@rollup/plugin-alias": "^5.1.0",
|
|
86
68
|
"@rollup/plugin-babel": "^6.0.4",
|
|
@@ -120,7 +102,6 @@
|
|
|
120
102
|
"devDependencies": {
|
|
121
103
|
"@commitlint/cli": "^19.2.1",
|
|
122
104
|
"@commitlint/config-conventional": "^19.1.0",
|
|
123
|
-
"@sanity/pkg-utils": "workspace:*",
|
|
124
105
|
"@types/babel__core": "^7.20.5",
|
|
125
106
|
"@types/cpx": "^1.5.5",
|
|
126
107
|
"@types/find-config": "^1.0.4",
|
|
@@ -149,12 +130,13 @@
|
|
|
149
130
|
"recast": "^0.23.6",
|
|
150
131
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
151
132
|
"ts-node": "^10.9.2",
|
|
152
|
-
"typescript": "
|
|
133
|
+
"typescript": "5.4.2",
|
|
153
134
|
"vitest": "^1.4.0",
|
|
154
|
-
"vitest-github-actions-reporter": "^0.11.1"
|
|
135
|
+
"vitest-github-actions-reporter": "^0.11.1",
|
|
136
|
+
"@sanity/pkg-utils": "5.1.0"
|
|
155
137
|
},
|
|
156
138
|
"peerDependencies": {
|
|
157
|
-
"typescript": "
|
|
139
|
+
"typescript": "5.4.2"
|
|
158
140
|
},
|
|
159
141
|
"packageManager": "pnpm@8.15.5",
|
|
160
142
|
"engines": {
|
|
@@ -163,9 +145,21 @@
|
|
|
163
145
|
"publishConfig": {
|
|
164
146
|
"access": "public"
|
|
165
147
|
},
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
|
|
169
|
-
|
|
148
|
+
"scripts": {
|
|
149
|
+
"build": "run-s clean build:pkg check:pkg",
|
|
150
|
+
"build:pkg": "node -r esbuild-register scripts/build",
|
|
151
|
+
"check:pkg": "node -r esbuild-register scripts/check",
|
|
152
|
+
"check:types": "tsc --build",
|
|
153
|
+
"clean": "rimraf dist test/env/__tmp__",
|
|
154
|
+
"commit": "cz",
|
|
155
|
+
"extract": "sanity-tsdoc etl --outDir etc/api/@sanity/pkg-utils --tsconfig tsconfig.dist.json",
|
|
156
|
+
"format": "prettier --write --cache --ignore-unknown . && eslint . --ext .cjs,.js,.ts,.tsx --fix --quiet",
|
|
157
|
+
"lint": "eslint . --ext .cjs,.js,.ts,.tsx",
|
|
158
|
+
"playground:build": "pnpm --filter './playground/**' build",
|
|
159
|
+
"playground:clean": "pnpm --filter './playground/**' --silent clean",
|
|
160
|
+
"test": "run-s playground:clean test:clean vitest:run",
|
|
161
|
+
"test:clean": "rimraf test/env/__tmp__",
|
|
162
|
+
"vitest:run": "vitest run",
|
|
163
|
+
"watch": "node -r esbuild-register scripts/watch"
|
|
170
164
|
}
|
|
171
|
-
}
|
|
165
|
+
}
|