@sanity/pkg-utils 6.0.1 → 6.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sanity/pkg-utils",
|
|
3
|
-
"version": "6.0
|
|
3
|
+
"version": "6.1.0",
|
|
4
4
|
"description": "Simple utilities for modern npm packages.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"sanity-io",
|
|
@@ -110,6 +110,7 @@
|
|
|
110
110
|
"@types/parse-git-config": "^3.0.4",
|
|
111
111
|
"@types/prompts": "^2.4.9",
|
|
112
112
|
"@types/rimraf": "^3.0.2",
|
|
113
|
+
"@types/semver": "^7.5.8",
|
|
113
114
|
"@types/treeify": "^1.0.3",
|
|
114
115
|
"@types/uuid": "^9.0.8",
|
|
115
116
|
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
@@ -129,14 +130,15 @@
|
|
|
129
130
|
"outdent": "^0.8.0",
|
|
130
131
|
"recast": "^0.23.6",
|
|
131
132
|
"rollup-plugin-visualizer": "^5.12.0",
|
|
133
|
+
"semver": "^7.6.0",
|
|
132
134
|
"ts-node": "^10.9.2",
|
|
133
|
-
"typescript": "5.4.
|
|
135
|
+
"typescript": "5.4.4",
|
|
134
136
|
"vitest": "^1.4.0",
|
|
135
137
|
"vitest-github-actions-reporter": "^0.11.1",
|
|
136
|
-
"@sanity/pkg-utils": "6.0
|
|
138
|
+
"@sanity/pkg-utils": "6.1.0"
|
|
137
139
|
},
|
|
138
140
|
"peerDependencies": {
|
|
139
|
-
"typescript": "5.4.
|
|
141
|
+
"typescript": "5.4.x"
|
|
140
142
|
},
|
|
141
143
|
"packageManager": "pnpm@8.15.6",
|
|
142
144
|
"engines": {
|
|
@@ -21,9 +21,21 @@ export function parseExports(options: {
|
|
|
21
21
|
require: pkg.main && pkg.browser[pkg.main],
|
|
22
22
|
import: pkg.module && pkg.browser[pkg.module],
|
|
23
23
|
},
|
|
24
|
-
require:
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
require: legacyExports
|
|
25
|
+
? pkg.main
|
|
26
|
+
: typeof pkg.exports?.['.'] === 'object' && 'require' in pkg.exports['.']
|
|
27
|
+
? pkg.exports['.'].require
|
|
28
|
+
: '',
|
|
29
|
+
import: legacyExports
|
|
30
|
+
? pkg.module
|
|
31
|
+
: typeof pkg.exports?.['.'] === 'object' && 'import' in pkg.exports['.']
|
|
32
|
+
? pkg.exports['.'].import
|
|
33
|
+
: '',
|
|
34
|
+
default: legacyExports
|
|
35
|
+
? pkg.module || pkg.main || ''
|
|
36
|
+
: typeof pkg.exports?.['.'] === 'object' && 'default' in pkg.exports['.']
|
|
37
|
+
? pkg.exports['.'].default || ''
|
|
38
|
+
: pkg.module || pkg.main || '',
|
|
27
39
|
}
|
|
28
40
|
|
|
29
41
|
const extraExports: (PkgExport & {_path: string})[] = []
|