@sanity/pkg-utils 4.1.3-canary.0 → 4.1.4
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-E9WhUt-f.cjs → build-AuLlgQCD.cjs} +12 -6
- package/dist/_chunks/{build-E9WhUt-f.cjs.map → build-AuLlgQCD.cjs.map} +1 -1
- package/dist/_chunks/{buildAction-MVNWfaCK.cjs → buildAction-aKVmXTPP.cjs} +2 -2
- package/dist/_chunks/{buildAction-MVNWfaCK.cjs.map → buildAction-aKVmXTPP.cjs.map} +1 -1
- package/dist/_chunks/{check-l9qzkqtU.cjs → check-j5YR3hUi.cjs} +9 -3
- package/dist/_chunks/check-j5YR3hUi.cjs.map +1 -0
- package/dist/_chunks/{checkAction-qrh0dzYf.cjs → checkAction-AD9RJftD.cjs} +2 -2
- package/dist/_chunks/{checkAction-qrh0dzYf.cjs.map → checkAction-AD9RJftD.cjs.map} +1 -1
- package/dist/_chunks/{consoleSpy-fj7s5jGg.cjs → consoleSpy-HqQIfX7k.cjs} +8 -55
- package/dist/_chunks/consoleSpy-HqQIfX7k.cjs.map +1 -0
- package/dist/_chunks/{index-8ZiinkRO.cjs → index-FaD5mo-6.cjs} +16 -12
- package/dist/_chunks/{index-8ZiinkRO.cjs.map → index-FaD5mo-6.cjs.map} +1 -1
- package/dist/_chunks/{init-3aJw1rbD.cjs → init-9DSt45GN.cjs} +10 -2
- package/dist/_chunks/{init-3aJw1rbD.cjs.map → init-9DSt45GN.cjs.map} +1 -1
- package/dist/_chunks/{initAction-eIoxnYMa.cjs → initAction-sChm6v2i.cjs} +2 -2
- package/dist/_chunks/{initAction-eIoxnYMa.cjs.map → initAction-sChm6v2i.cjs.map} +1 -1
- package/dist/_chunks/logger-L4V-Be7d.cjs +100 -0
- package/dist/_chunks/logger-L4V-Be7d.cjs.map +1 -0
- package/dist/_chunks/{watch-ILS1fbI7.cjs → watch-fXO97GL2.cjs} +10 -4
- package/dist/_chunks/{watch-ILS1fbI7.cjs.map → watch-fXO97GL2.cjs.map} +1 -1
- package/dist/_chunks/{watchAction-QUqYHKjE.cjs → watchAction-SAJ1nU-a.cjs} +2 -2
- package/dist/_chunks/{watchAction-QUqYHKjE.cjs.map → watchAction-SAJ1nU-a.cjs.map} +1 -1
- package/dist/cli.cjs +5 -5
- package/dist/index.cjs +18 -18
- package/dist/index.js +10 -13
- package/dist/index.js.map +1 -1
- package/package.json +23 -29
- package/src/node/tasks/rollup/resolveRollupConfig.ts +0 -3
- package/dist/_chunks/check-l9qzkqtU.cjs.map +0 -1
- package/dist/_chunks/consoleSpy-fj7s5jGg.cjs.map +0 -1
- package/dist/_chunks/logger-I44mHY6K.cjs +0 -48
- package/dist/_chunks/logger-I44mHY6K.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import browserslist from 'browserslist';
|
|
1
|
+
import { register } from 'esbuild-register/dist/node';
|
|
3
2
|
import path$1, { relative, resolve, dirname } from 'path';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import pkgUp from 'pkg-up';
|
|
4
|
+
import findConfig from 'find-config';
|
|
6
5
|
import fs$1, { statSync } from 'fs';
|
|
6
|
+
import config from '@sanity/browserslist-config';
|
|
7
7
|
import fs, { writeFile, readFile, readdir, lstat } from 'fs/promises';
|
|
8
|
+
import { z, ZodError } from 'zod';
|
|
9
|
+
import chalk from 'chalk';
|
|
8
10
|
import { mkdirp } from 'mkdirp';
|
|
11
|
+
import prompts from 'prompts';
|
|
12
|
+
import ts from 'typescript';
|
|
13
|
+
import browserslist from 'browserslist';
|
|
9
14
|
import { Observable, from, switchMap } from 'rxjs';
|
|
10
15
|
import rimraf from 'rimraf';
|
|
11
16
|
import { ExtractorConfig, Extractor } from '@microsoft/api-extractor';
|
|
@@ -23,14 +28,9 @@ import { nodeResolve } from '@rollup/plugin-node-resolve';
|
|
|
23
28
|
import replace from '@rollup/plugin-replace';
|
|
24
29
|
import terser from '@rollup/plugin-terser';
|
|
25
30
|
import esbuild from 'rollup-plugin-esbuild';
|
|
26
|
-
import { z, ZodError } from 'zod';
|
|
27
|
-
import pkgUp from 'pkg-up';
|
|
28
|
-
import { register } from 'esbuild-register/dist/node';
|
|
29
|
-
import findConfig from 'find-config';
|
|
30
31
|
import esbuild$1 from 'esbuild';
|
|
31
32
|
import treeify from 'treeify';
|
|
32
33
|
import prettyBytes from 'pretty-bytes';
|
|
33
|
-
import prompts from 'prompts';
|
|
34
34
|
import getLatestVersion from 'get-latest-version';
|
|
35
35
|
import gitUrlParse from 'git-url-parse';
|
|
36
36
|
import { outdent } from 'outdent';
|
|
@@ -36216,11 +36216,8 @@ function resolveRollupConfig(ctx, buildTask) {
|
|
|
36216
36216
|
},
|
|
36217
36217
|
plugins,
|
|
36218
36218
|
treeshake: {
|
|
36219
|
-
|
|
36220
|
-
propertyReadSideEffects: false,
|
|
36221
|
-
moduleSideEffects: false
|
|
36219
|
+
propertyReadSideEffects: false
|
|
36222
36220
|
}
|
|
36223
|
-
// experimentalLogSideEffects: true,
|
|
36224
36221
|
},
|
|
36225
36222
|
outputOptions: {
|
|
36226
36223
|
chunkFileNames: () => {
|