@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/index.cjs
CHANGED
|
@@ -814,7 +814,7 @@ __export(build_exports, {
|
|
|
814
814
|
async function build(inlineConfig = {}) {
|
|
815
815
|
const config = await resolveConfig(inlineConfig, "build");
|
|
816
816
|
const startTime = performance.now();
|
|
817
|
-
console.log(import_picocolors.default.cyan("\n\u{1F528} nasti build") + import_picocolors.default.dim(` v${"1.5.
|
|
817
|
+
console.log(import_picocolors.default.cyan("\n\u{1F528} nasti build") + import_picocolors.default.dim(` v${"1.5.2"}`));
|
|
818
818
|
console.log(import_picocolors.default.dim(` root: ${config.root}`));
|
|
819
819
|
console.log(import_picocolors.default.dim(` mode: ${config.mode}`));
|
|
820
820
|
const outDir = import_node_path7.default.resolve(config.root, config.build.outDir);
|
|
@@ -1132,9 +1132,17 @@ function getReactRefreshRuntimeEsm() {
|
|
|
1132
1132
|
if (__refreshRuntimeCache) return __refreshRuntimeCache;
|
|
1133
1133
|
let cjsPath;
|
|
1134
1134
|
try {
|
|
1135
|
-
|
|
1136
|
-
|
|
1135
|
+
const pkgPath = __require.resolve("react-refresh/package.json");
|
|
1136
|
+
cjsPath = import_node_path9.default.join(import_node_path9.default.dirname(pkgPath), "cjs", "react-refresh-runtime.development.js");
|
|
1137
|
+
} catch (err) {
|
|
1137
1138
|
cjsPath = import_node_path9.default.resolve(__dirname_esm, "../../node_modules/react-refresh/cjs/react-refresh-runtime.development.js");
|
|
1139
|
+
if (!import_node_fs8.default.existsSync(cjsPath)) {
|
|
1140
|
+
const origMsg = err instanceof Error ? err.message : String(err);
|
|
1141
|
+
throw new Error(
|
|
1142
|
+
`[nasti] Missing dependency "react-refresh". Install it with: npm install react-refresh
|
|
1143
|
+
Original resolve error: ${origMsg}`
|
|
1144
|
+
);
|
|
1145
|
+
}
|
|
1138
1146
|
}
|
|
1139
1147
|
const cjsSource = import_node_fs8.default.readFileSync(cjsPath, "utf-8");
|
|
1140
1148
|
__refreshRuntimeCache = `// Wrapped react-refresh runtime -> ESM
|
|
@@ -1811,7 +1819,7 @@ async function createServer(inlineConfig = {}) {
|
|
|
1811
1819
|
const localUrl = `http://localhost:${actualPort}`;
|
|
1812
1820
|
const networkUrl = host === "0.0.0.0" ? `http://${getNetworkAddress()}:${actualPort}` : null;
|
|
1813
1821
|
console.log();
|
|
1814
|
-
console.log(import_picocolors3.default.cyan(" nasti dev server") + import_picocolors3.default.dim(` v${"1.5.
|
|
1822
|
+
console.log(import_picocolors3.default.cyan(" nasti dev server") + import_picocolors3.default.dim(` v${"1.5.2"}`));
|
|
1815
1823
|
console.log();
|
|
1816
1824
|
console.log(` ${import_picocolors3.default.green(">")} Local: ${import_picocolors3.default.cyan(localUrl)}`);
|
|
1817
1825
|
if (networkUrl) {
|
|
@@ -1955,7 +1963,7 @@ async function buildElectron(inlineConfig = {}) {
|
|
|
1955
1963
|
const config = await resolveConfig({ ...inlineConfig, target: "electron" }, "build");
|
|
1956
1964
|
const startTime = performance.now();
|
|
1957
1965
|
assertElectronVersion(config);
|
|
1958
|
-
console.log(import_picocolors2.default.cyan("\n\u26A1 nasti build (electron)") + import_picocolors2.default.dim(` v${"1.5.
|
|
1966
|
+
console.log(import_picocolors2.default.cyan("\n\u26A1 nasti build (electron)") + import_picocolors2.default.dim(` v${"1.5.2"}`));
|
|
1959
1967
|
console.log(import_picocolors2.default.dim(` root: ${config.root}`));
|
|
1960
1968
|
console.log(import_picocolors2.default.dim(` mode: ${config.mode}`));
|
|
1961
1969
|
console.log(import_picocolors2.default.dim(` target: electron (\u2265 ${config.electron.minVersion})`));
|
|
@@ -2102,7 +2110,7 @@ async function startElectronDev(inlineConfig = {}) {
|
|
|
2102
2110
|
const { noSpawn, ...rest } = inlineConfig;
|
|
2103
2111
|
const config = await resolveConfig({ ...rest, target: "electron" }, "serve");
|
|
2104
2112
|
warnElectronVersion(config);
|
|
2105
|
-
console.log(import_picocolors4.default.cyan("\n\u26A1 nasti electron dev") + import_picocolors4.default.dim(` v${"1.5.
|
|
2113
|
+
console.log(import_picocolors4.default.cyan("\n\u26A1 nasti electron dev") + import_picocolors4.default.dim(` v${"1.5.2"}`));
|
|
2106
2114
|
const { createServer: createServer2 } = await Promise.resolve().then(() => (init_server(), server_exports));
|
|
2107
2115
|
const server = await createServer2({ ...rest, target: "electron" });
|
|
2108
2116
|
await server.listen();
|