@sanity/pkg-utils 5.0.0 → 5.0.1
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/index.cjs +2 -2
- package/dist/_chunks/index.cjs.map +1 -1
- package/dist/cli.cjs +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +8 -8
package/dist/cli.cjs
CHANGED
|
@@ -3,7 +3,7 @@ var cac = require("cac");
|
|
|
3
3
|
function _interopDefaultCompat(e) {
|
|
4
4
|
return e && typeof e == "object" && "default" in e ? e : { default: e };
|
|
5
5
|
}
|
|
6
|
-
var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "5.0.
|
|
6
|
+
var cac__default = /* @__PURE__ */ _interopDefaultCompat(cac), version = "5.0.1";
|
|
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
|
@@ -10717,11 +10717,11 @@ while`), parts.push(" (", path2.call(print, "test"), ");"), (0, lines_1.concat)(
|
|
|
10717
10717
|
parts.push("*");
|
|
10718
10718
|
else if (decl.specifiers.length === 0)
|
|
10719
10719
|
parts.push("{}");
|
|
10720
|
-
else if (decl.specifiers[0].type === "ExportDefaultSpecifier") {
|
|
10720
|
+
else if (decl.specifiers[0].type === "ExportDefaultSpecifier" || decl.specifiers[0].type === "ExportNamespaceSpecifier") {
|
|
10721
10721
|
var unbracedSpecifiers_2 = [], bracedSpecifiers_2 = [];
|
|
10722
10722
|
if (path2.each(function(specifierPath) {
|
|
10723
10723
|
var spec = specifierPath.getValue();
|
|
10724
|
-
spec.type === "ExportDefaultSpecifier" ? unbracedSpecifiers_2.push(print(specifierPath)) : bracedSpecifiers_2.push(print(specifierPath));
|
|
10724
|
+
spec.type === "ExportDefaultSpecifier" || spec.type === "ExportNamespaceSpecifier" ? unbracedSpecifiers_2.push(print(specifierPath)) : bracedSpecifiers_2.push(print(specifierPath));
|
|
10725
10725
|
}, "specifiers"), unbracedSpecifiers_2.forEach(function(lines3, i) {
|
|
10726
10726
|
i > 0 && parts.push(", "), parts.push(lines3);
|
|
10727
10727
|
}), bracedSpecifiers_2.length > 0) {
|