@nasti-toolchain/nasti 1.5.1 → 1.5.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/dist/cli.cjs +15 -7
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +15 -7
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +14 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +14 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -763,9 +763,17 @@ function getReactRefreshRuntimeEsm() {
|
|
|
763
763
|
if (__refreshRuntimeCache) return __refreshRuntimeCache;
|
|
764
764
|
let cjsPath;
|
|
765
765
|
try {
|
|
766
|
-
|
|
767
|
-
|
|
766
|
+
const pkgPath = __require.resolve("react-refresh/package.json");
|
|
767
|
+
cjsPath = import_node_path4.default.join(import_node_path4.default.dirname(pkgPath), "cjs", "react-refresh-runtime.development.js");
|
|
768
|
+
} catch (err) {
|
|
768
769
|
cjsPath = import_node_path4.default.resolve(__dirname_esm, "../../node_modules/react-refresh/cjs/react-refresh-runtime.development.js");
|
|
770
|
+
if (!import_node_fs4.default.existsSync(cjsPath)) {
|
|
771
|
+
const origMsg = err instanceof Error ? err.message : String(err);
|
|
772
|
+
throw new Error(
|
|
773
|
+
`[nasti] Missing dependency "react-refresh". Install it with: npm install react-refresh
|
|
774
|
+
Original resolve error: ${origMsg}`
|
|
775
|
+
);
|
|
776
|
+
}
|
|
769
777
|
}
|
|
770
778
|
const cjsSource = import_node_fs4.default.readFileSync(cjsPath, "utf-8");
|
|
771
779
|
__refreshRuntimeCache = `// Wrapped react-refresh runtime -> ESM
|
|
@@ -1649,7 +1657,7 @@ async function createServer(inlineConfig = {}) {
|
|
|
1649
1657
|
const localUrl = `http://localhost:${actualPort}`;
|
|
1650
1658
|
const networkUrl = host === "0.0.0.0" ? `http://${getNetworkAddress()}:${actualPort}` : null;
|
|
1651
1659
|
console.log();
|
|
1652
|
-
console.log(import_picocolors.default.cyan(" nasti dev server") + import_picocolors.default.dim(` v${"1.5.
|
|
1660
|
+
console.log(import_picocolors.default.cyan(" nasti dev server") + import_picocolors.default.dim(` v${"1.5.2"}`));
|
|
1653
1661
|
console.log();
|
|
1654
1662
|
console.log(` ${import_picocolors.default.green(">")} Local: ${import_picocolors.default.cyan(localUrl)}`);
|
|
1655
1663
|
if (networkUrl) {
|
|
@@ -1776,7 +1784,7 @@ __export(build_exports, {
|
|
|
1776
1784
|
async function build(inlineConfig = {}) {
|
|
1777
1785
|
const config = await resolveConfig(inlineConfig, "build");
|
|
1778
1786
|
const startTime = performance.now();
|
|
1779
|
-
console.log(import_picocolors2.default.cyan("\n\u{1F528} nasti build") + import_picocolors2.default.dim(` v${"1.5.
|
|
1787
|
+
console.log(import_picocolors2.default.cyan("\n\u{1F528} nasti build") + import_picocolors2.default.dim(` v${"1.5.2"}`));
|
|
1780
1788
|
console.log(import_picocolors2.default.dim(` root: ${config.root}`));
|
|
1781
1789
|
console.log(import_picocolors2.default.dim(` mode: ${config.mode}`));
|
|
1782
1790
|
const outDir = import_node_path10.default.resolve(config.root, config.build.outDir);
|
|
@@ -1937,7 +1945,7 @@ async function buildElectron(inlineConfig = {}) {
|
|
|
1937
1945
|
const config = await resolveConfig({ ...inlineConfig, target: "electron" }, "build");
|
|
1938
1946
|
const startTime = performance.now();
|
|
1939
1947
|
assertElectronVersion(config);
|
|
1940
|
-
console.log(import_picocolors3.default.cyan("\n\u26A1 nasti build (electron)") + import_picocolors3.default.dim(` v${"1.5.
|
|
1948
|
+
console.log(import_picocolors3.default.cyan("\n\u26A1 nasti build (electron)") + import_picocolors3.default.dim(` v${"1.5.2"}`));
|
|
1941
1949
|
console.log(import_picocolors3.default.dim(` root: ${config.root}`));
|
|
1942
1950
|
console.log(import_picocolors3.default.dim(` mode: ${config.mode}`));
|
|
1943
1951
|
console.log(import_picocolors3.default.dim(` target: electron (\u2265 ${config.electron.minVersion})`));
|
|
@@ -2089,7 +2097,7 @@ async function startElectronDev(inlineConfig = {}) {
|
|
|
2089
2097
|
const { noSpawn, ...rest } = inlineConfig;
|
|
2090
2098
|
const config = await resolveConfig({ ...rest, target: "electron" }, "serve");
|
|
2091
2099
|
warnElectronVersion(config);
|
|
2092
|
-
console.log(import_picocolors4.default.cyan("\n\u26A1 nasti electron dev") + import_picocolors4.default.dim(` v${"1.5.
|
|
2100
|
+
console.log(import_picocolors4.default.cyan("\n\u26A1 nasti electron dev") + import_picocolors4.default.dim(` v${"1.5.2"}`));
|
|
2093
2101
|
const { createServer: createServer2 } = await Promise.resolve().then(() => (init_server(), server_exports));
|
|
2094
2102
|
const server = await createServer2({ ...rest, target: "electron" });
|
|
2095
2103
|
await server.listen();
|
|
@@ -2422,6 +2430,6 @@ cli.command("preview [root]", "Preview production build").option("--port <port>"
|
|
|
2422
2430
|
}
|
|
2423
2431
|
});
|
|
2424
2432
|
cli.help();
|
|
2425
|
-
cli.version("1.5.
|
|
2433
|
+
cli.version("1.5.2");
|
|
2426
2434
|
cli.parse();
|
|
2427
2435
|
//# sourceMappingURL=cli.cjs.map
|