@sanity/pkg-utils 3.3.9-canary.0 → 4.0.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.
Files changed (2) hide show
  1. package/dist/cli.cjs +1 -1
  2. package/package.json +29 -35
package/dist/cli.cjs CHANGED
@@ -6,7 +6,7 @@ function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'defau
6
6
 
7
7
  var cac__default = /*#__PURE__*/_interopDefaultCompat(cac);
8
8
 
9
- var version = "3.3.9-canary.0";
9
+ var version = "4.0.0";
10
10
 
11
11
  const cli = cac__default.default();
12
12
  cli.command("", "Check").alias("check").option("--strict", "Strict mode").option("--tsconfig [tsconfig]", "[string] tsconfig.json").action(async (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity/pkg-utils",
3
- "version": "3.3.9-canary.0",
3
+ "version": "4.0.0",
4
4
  "description": "Simple utilities for modern npm packages.",
5
5
  "keywords": [
6
6
  "sanity-io",
@@ -46,24 +46,6 @@
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
- },
67
49
  "commitlint": {
68
50
  "extends": [
69
51
  "@commitlint/config-conventional"
@@ -78,7 +60,7 @@
78
60
  "dependencies": {
79
61
  "@babel/core": "^7.23.7",
80
62
  "@babel/types": "^7.23.6",
81
- "@microsoft/api-extractor": "^7.39.1",
63
+ "@microsoft/api-extractor": "^7.39.4",
82
64
  "@microsoft/tsdoc-config": "^0.16.2",
83
65
  "@rollup/plugin-alias": "^5.1.0",
84
66
  "@rollup/plugin-babel": "^6.0.4",
@@ -91,13 +73,13 @@
91
73
  "cac": "^6.7.14",
92
74
  "chalk": "^4.1.2",
93
75
  "chokidar": "^3.5.3",
94
- "esbuild": "^0.19.11",
76
+ "esbuild": "^0.19.12",
95
77
  "esbuild-register": "^3.5.0",
96
78
  "find-config": "^1.0.0",
97
79
  "get-latest-version": "^5.1.0",
98
80
  "git-url-parse": "^14.0.0",
99
81
  "globby": "^11.1.0",
100
- "jsonc-parser": "^3.2.0",
82
+ "jsonc-parser": "^3.2.1",
101
83
  "mkdirp": "^3.0.1",
102
84
  "outdent": "^0.8.0",
103
85
  "parse-git-config": "^3.0.0",
@@ -108,16 +90,15 @@
108
90
  "prompts": "^2.4.2",
109
91
  "rimraf": "^4.4.1",
110
92
  "rollup": "^4.9.6",
111
- "rollup-plugin-esbuild": "^6.1.0",
93
+ "rollup-plugin-esbuild": "^6.1.1",
112
94
  "rxjs": "^7.8.1",
113
95
  "treeify": "^1.1.0",
114
96
  "uuid": "^9.0.1",
115
97
  "zod": "^3.22.4"
116
98
  },
117
99
  "devDependencies": {
118
- "@commitlint/cli": "^18.4.4",
119
- "@commitlint/config-conventional": "^18.4.4",
120
- "@sanity/pkg-utils": "workspace:*",
100
+ "@commitlint/cli": "^18.6.0",
101
+ "@commitlint/config-conventional": "^18.6.0",
121
102
  "@types/babel__core": "^7.20.5",
122
103
  "@types/cpx": "^1.5.5",
123
104
  "@types/find-config": "^1.0.4",
@@ -128,8 +109,8 @@
128
109
  "@types/rimraf": "^3.0.2",
129
110
  "@types/treeify": "^1.0.3",
130
111
  "@types/uuid": "^9.0.7",
131
- "@typescript-eslint/eslint-plugin": "^6.19.0",
132
- "@typescript-eslint/parser": "^6.19.0",
112
+ "@typescript-eslint/eslint-plugin": "^6.19.1",
113
+ "@typescript-eslint/parser": "^6.19.1",
133
114
  "commitizen": "^4.3.0",
134
115
  "cpx": "^1.5.0",
135
116
  "cz-conventional-changelog": "^3.3.0",
@@ -147,21 +128,34 @@
147
128
  "ts-node": "^10.9.2",
148
129
  "typescript": "^5.3.3",
149
130
  "vitest": "^1.2.1",
150
- "vitest-github-actions-reporter": "^0.11.1"
131
+ "vitest-github-actions-reporter": "^0.11.1",
132
+ "@sanity/pkg-utils": "4.0.0"
151
133
  },
152
134
  "peerDependencies": {
153
135
  "typescript": "^4.7 || ^5"
154
136
  },
155
- "packageManager": "pnpm@8.14.1",
137
+ "packageManager": "pnpm@8.14.3",
156
138
  "engines": {
157
139
  "node": ">=16.0.0"
158
140
  },
159
141
  "publishConfig": {
160
142
  "access": "public"
161
143
  },
162
- "pnpm": {
163
- "overrides": {
164
- "@sanity/pkg-utils": "workspace:*"
165
- }
144
+ "scripts": {
145
+ "build": "run-s clean build:pkg check:pkg",
146
+ "build:pkg": "node -r esbuild-register scripts/build",
147
+ "check:pkg": "node -r esbuild-register scripts/check",
148
+ "check:types": "tsc --build",
149
+ "clean": "rimraf dist test/env/__tmp__",
150
+ "commit": "cz",
151
+ "extract": "sanity-tsdoc etl --outDir etc/api/@sanity/pkg-utils --tsconfig tsconfig.dist.json",
152
+ "format": "prettier --write --cache --ignore-unknown . && eslint . --ext .cjs,.js,.ts,.tsx --fix --quiet",
153
+ "lint": "eslint . --ext .cjs,.js,.ts,.tsx",
154
+ "playground:build": "pnpm --filter './playground/**' build",
155
+ "playground:clean": "pnpm --filter './playground/**' --silent clean",
156
+ "test": "run-s playground:clean test:clean vitest:run",
157
+ "test:clean": "rimraf test/env/__tmp__",
158
+ "vitest:run": "vitest run",
159
+ "watch": "node -r esbuild-register scripts/watch"
166
160
  }
167
- }
161
+ }