@sanity/pkg-utils 6.0.0 → 6.0.2

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.0",
3
+ "version": "6.0.2",
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
135
  "typescript": "5.4.2",
134
136
  "vitest": "^1.4.0",
135
137
  "vitest-github-actions-reporter": "^0.11.1",
136
- "@sanity/pkg-utils": "6.0.0"
138
+ "@sanity/pkg-utils": "6.0.2"
137
139
  },
138
140
  "peerDependencies": {
139
- "typescript": "5.4.2"
141
+ "typescript": "5.4.x"
140
142
  },
141
143
  "packageManager": "pnpm@8.15.6",
142
144
  "engines": {
@@ -94,13 +94,6 @@ export function resolveRollupConfig(
94
94
  preferBuiltins: true,
95
95
  }),
96
96
  commonjs(),
97
- enableOptimizeLodash &&
98
- optimizeLodashImports({
99
- useLodashEs: format === 'esm' && hasDependency(pkg, 'lodash-es') ? true : undefined,
100
- ...(typeof config?.rollup?.optimizeLodash === 'boolean'
101
- ? {}
102
- : config?.rollup?.optimizeLodash),
103
- }),
104
97
  json(),
105
98
  esbuild({
106
99
  jsx: config?.jsx ?? 'automatic',
@@ -120,6 +113,13 @@ export function resolveRollupConfig(
120
113
  babelrc: false,
121
114
  plugins: config.babel.plugins,
122
115
  }),
116
+ enableOptimizeLodash &&
117
+ optimizeLodashImports({
118
+ useLodashEs: format === 'esm' && hasDependency(pkg, 'lodash-es') ? true : undefined,
119
+ ...(typeof config?.rollup?.optimizeLodash === 'boolean'
120
+ ? {}
121
+ : config?.rollup?.optimizeLodash),
122
+ }),
123
123
  minify &&
124
124
  terser({
125
125
  compress: {directives: false},