@sanity/pkg-utils 5.1.3 → 5.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-cjs/build.cjs +3 -3
- package/dist/_chunks-cjs/check.cjs +3 -3
- package/dist/_chunks-cjs/consoleSpy.cjs +3 -3
- package/dist/_chunks-cjs/handleError.cjs +3 -3
- package/dist/_chunks-cjs/index.cjs +4 -4
- package/dist/_chunks-cjs/index.cjs.map +1 -1
- package/dist/_chunks-cjs/init.cjs +3 -3
- package/dist/_chunks-cjs/logger.cjs +3 -3
- package/dist/_chunks-cjs/watch.cjs +3 -3
- package/dist/cli.cjs +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/node/tasks/rollup/resolveRollupConfig.ts +1 -1
|
@@ -8,10 +8,10 @@ require("@sanity/browserslist-config");
|
|
|
8
8
|
require("chalk");
|
|
9
9
|
require("zod");
|
|
10
10
|
require("typescript");
|
|
11
|
-
function
|
|
12
|
-
return e && e
|
|
11
|
+
function _interopDefaultCompat(e) {
|
|
12
|
+
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
13
13
|
}
|
|
14
|
-
var prompts__default = /* @__PURE__ */
|
|
14
|
+
var prompts__default = /* @__PURE__ */ _interopDefaultCompat(prompts), getLatestVersion__default = /* @__PURE__ */ _interopDefaultCompat(getLatestVersion), gitUrlParse__default = /* @__PURE__ */ _interopDefaultCompat(gitUrlParse), parseGitConfig__default = /* @__PURE__ */ _interopDefaultCompat(parseGitConfig), prettier__default = /* @__PURE__ */ _interopDefaultCompat(prettier);
|
|
15
15
|
const promptsTypes = {
|
|
16
16
|
string: "text"
|
|
17
17
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var fs = require("fs"), zod = require("zod"), chalk = require("chalk");
|
|
3
|
-
function
|
|
4
|
-
return e && e
|
|
3
|
+
function _interopDefaultCompat(e) {
|
|
4
|
+
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
5
5
|
}
|
|
6
|
-
var chalk__default = /* @__PURE__ */
|
|
6
|
+
var chalk__default = /* @__PURE__ */ _interopDefaultCompat(chalk);
|
|
7
7
|
function fileExists(filePath) {
|
|
8
8
|
try {
|
|
9
9
|
return fs.statSync(filePath), !0;
|
|
@@ -8,10 +8,10 @@ require("mkdirp");
|
|
|
8
8
|
require("prompts");
|
|
9
9
|
require("typescript");
|
|
10
10
|
var fs = require("fs"), index = require("./index.cjs"), operators = require("rxjs/operators"), globby = require("globby"), chokidar = require("chokidar");
|
|
11
|
-
function
|
|
12
|
-
return e && e
|
|
11
|
+
function _interopDefaultCompat(e) {
|
|
12
|
+
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
13
13
|
}
|
|
14
|
-
var path__default = /* @__PURE__ */
|
|
14
|
+
var path__default = /* @__PURE__ */ _interopDefaultCompat(path), fs__default = /* @__PURE__ */ _interopDefaultCompat(fs), globby__default = /* @__PURE__ */ _interopDefaultCompat(globby), chokidar__default = /* @__PURE__ */ _interopDefaultCompat(chokidar);
|
|
15
15
|
function resolveWatchTasks(ctx) {
|
|
16
16
|
const { config, cwd, pkg, target } = ctx, tasks = [], exports2 = Object.entries(ctx.exports || {}).map(
|
|
17
17
|
([_path, exp]) => ({ _path, ...exp })
|
package/dist/cli.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var cac = require("cac");
|
|
3
|
-
function
|
|
4
|
-
return e && e
|
|
3
|
+
function _interopDefaultCompat(e) {
|
|
4
|
+
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
5
5
|
}
|
|
6
|
-
var cac__default = /* @__PURE__ */
|
|
6
|
+
var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "5.1.4";
|
|
7
7
|
const cli = cac__default.default();
|
|
8
8
|
cli.command("", "Check").alias("check").option("--strict", "Strict mode").option("--tsconfig [tsconfig]", "[string] tsconfig.json").action(async (options) => {
|
|
9
9
|
const { checkAction } = await Promise.resolve().then(function() {
|
package/dist/index.js
CHANGED
|
@@ -20497,7 +20497,7 @@ function resolveRollupConfig(ctx, buildTask) {
|
|
|
20497
20497
|
entryFileNames,
|
|
20498
20498
|
esModule: !0,
|
|
20499
20499
|
format: format2,
|
|
20500
|
-
interop: "
|
|
20500
|
+
interop: "compat",
|
|
20501
20501
|
sourcemap: config2?.sourcemap ?? !0,
|
|
20502
20502
|
hoistTransitiveImports: !1,
|
|
20503
20503
|
...config2?.rollup?.output
|