@sanity/pkg-utils 1.20.1 → 1.20.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.
@@ -1 +1 @@
1
- {"version":3,"file":"watchAction-9cb9681b.js","sources":["../../src/cli/watchAction.ts"],"sourcesContent":["import {watch} from '../node/watch'\nimport {handleError} from './handleError'\n\nexport async function watchAction(options: {strict?: boolean; tsconfig?: string}): Promise<void> {\n try {\n await watch({\n cwd: process.cwd(),\n strict: options.strict,\n tsconfig: options.tsconfig,\n })\n } catch (err) {\n handleError(err)\n }\n}\n"],"names":["watchAction","options","watch","cwd","process","strict","tsconfig","err","handleError"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEO,eAAeA,WAAW,CAACC,OAAO,EAAE;EACzC,IAAI;IACF,MAAMC,WAAK,CAAC;MACVC,GAAG,EAAEC,OAAO,CAACD,GAAG,EAAE;MAClBE,MAAM,EAAEJ,OAAO,CAACI,MAAM;MACtBC,QAAQ,EAAEL,OAAO,CAACK;IACxB,CAAK,CAAC;EACH,CAAA,CAAC,OAAOC,GAAG,EAAE;IACZC,WAAW,CAAAA,WAAA,CAACD,GAAG,CAAC;EACjB;AACH;"}
1
+ {"version":3,"file":"watchAction-f36fcd0b.js","sources":["../../src/cli/watchAction.ts"],"sourcesContent":["import {watch} from '../node/watch'\nimport {handleError} from './handleError'\n\nexport async function watchAction(options: {strict?: boolean; tsconfig?: string}): Promise<void> {\n try {\n await watch({\n cwd: process.cwd(),\n strict: options.strict,\n tsconfig: options.tsconfig,\n })\n } catch (err) {\n handleError(err)\n }\n}\n"],"names":["watchAction","options","watch","cwd","process","strict","tsconfig","err","handleError"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEO,eAAeA,WAAW,CAACC,OAAO,EAAE;EACzC,IAAI;IACF,MAAMC,WAAK,CAAC;MACVC,GAAG,EAAEC,OAAO,CAACD,GAAG,EAAE;MAClBE,MAAM,EAAEJ,OAAO,CAACI,MAAM;MACtBC,QAAQ,EAAEL,OAAO,CAACK;IACxB,CAAK,CAAC;EACH,CAAA,CAAC,OAAOC,GAAG,EAAE;IACZC,WAAW,CAAAA,WAAA,CAACD,GAAG,CAAC;EACjB;AACH;"}
package/dist/cli.js CHANGED
@@ -7,7 +7,7 @@ function _interopDefaultLegacy(e) {
7
7
  };
8
8
  }
9
9
  var cac__default = /*#__PURE__*/_interopDefaultLegacy(cac);
10
- var version = "1.20.1";
10
+ var version = "1.20.2";
11
11
  const cli = cac__default["default"]();
12
12
  cli.command("", "Check").option("--strict", "Strict mode").option("--tsconfig [tsconfig]", "[string] tsconfig.json").action(async options => {
13
13
  const {
@@ -21,7 +21,7 @@ cli.command("build", "Build package").option("--emitDeclarationOnly", "Emit d.ts
21
21
  const {
22
22
  buildAction
23
23
  } = await Promise.resolve().then(function () {
24
- return require('./_chunks/buildAction-f240dab8.js');
24
+ return require('./_chunks/buildAction-683ad943.js');
25
25
  });
26
26
  return buildAction(options);
27
27
  });
@@ -29,7 +29,7 @@ cli.command("watch", "Watch package").option("--strict", "Strict mode").option("
29
29
  const {
30
30
  watchAction
31
31
  } = await Promise.resolve().then(function () {
32
- return require('./_chunks/watchAction-9cb9681b.js');
32
+ return require('./_chunks/watchAction-f36fcd0b.js');
33
33
  });
34
34
  return watchAction(options);
35
35
  });
package/dist/index.esm.js CHANGED
@@ -30,8 +30,8 @@ import commonjs from '@rollup/plugin-commonjs';
30
30
  import json from '@rollup/plugin-json';
31
31
  import { nodeResolve } from '@rollup/plugin-node-resolve';
32
32
  import replace from '@rollup/plugin-replace';
33
+ import terser from '@rollup/plugin-terser';
33
34
  import esbuild from 'rollup-plugin-esbuild';
34
- import { terser } from 'rollup-plugin-terser';
35
35
  import browserslist from 'browserslist';
36
36
  import esbuild$1 from 'esbuild';
37
37
  import treeify from 'treeify';