@nasti-toolchain/nasti 2.0.2 → 2.1.0

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.js CHANGED
@@ -4040,7 +4040,7 @@ async function build(inlineConfig = {}) {
4040
4040
  const startTime = performance.now();
4041
4041
  logger.info(
4042
4042
  pc6.cyan(`
4043
- nasti v${"2.0.2"} `) + pc6.green(`building for ${config.mode}...`)
4043
+ nasti v${"2.1.0"} `) + pc6.green(`building for ${config.mode}...`)
4044
4044
  );
4045
4045
  debug5?.(`root: ${config.root}`);
4046
4046
  const buildableNames = Object.keys(config.environments).filter(
@@ -4761,7 +4761,7 @@ async function createServer(inlineConfig = {}) {
4761
4761
  const readyIn = Math.ceil(performance.now() - startTime);
4762
4762
  logger.info(
4763
4763
  `
4764
- ${pc8.cyan(pc8.bold("NASTI"))} ${pc8.cyan(`v${"2.0.2"}`)} ${pc8.dim("ready in")} ${pc8.bold(readyIn)} ${pc8.dim("ms")}
4764
+ ${pc8.cyan(pc8.bold("NASTI"))} ${pc8.cyan(`v${"2.1.0"}`)} ${pc8.dim("ready in")} ${pc8.bold(readyIn)} ${pc8.dim("ms")}
4765
4765
  `
4766
4766
  );
4767
4767
  printServerUrls(
@@ -4891,7 +4891,7 @@ async function buildElectron(inlineConfig = {}) {
4891
4891
  const config = await resolveConfig({ ...inlineConfig, target: "electron" }, "build");
4892
4892
  const startTime = performance.now();
4893
4893
  assertElectronVersion(config);
4894
- console.log(pc9.cyan("\n\u26A1 nasti build (electron)") + pc9.dim(` v${"2.0.2"}`));
4894
+ console.log(pc9.cyan("\n\u26A1 nasti build (electron)") + pc9.dim(` v${"2.1.0"}`));
4895
4895
  console.log(pc9.dim(` root: ${config.root}`));
4896
4896
  console.log(pc9.dim(` mode: ${config.mode}`));
4897
4897
  console.log(pc9.dim(` target: electron (\u2265 ${config.electron.minVersion})`));
@@ -5049,7 +5049,7 @@ async function startElectronDev(inlineConfig = {}) {
5049
5049
  const { noSpawn, ...rest } = inlineConfig;
5050
5050
  const config = await resolveConfig({ ...rest, target: "electron" }, "serve");
5051
5051
  warnElectronVersion(config);
5052
- console.log(pc10.cyan("\n\u26A1 nasti electron dev") + pc10.dim(` v${"2.0.2"}`));
5052
+ console.log(pc10.cyan("\n\u26A1 nasti electron dev") + pc10.dim(` v${"2.1.0"}`));
5053
5053
  const { createServer: createServer2 } = await Promise.resolve().then(() => (init_server(), server_exports));
5054
5054
  const server = await createServer2({ ...rest, target: "electron" });
5055
5055
  await server.listen();
@@ -5173,7 +5173,7 @@ async function compileNode(config, entry, opts) {
5173
5173
  transform(code, id) {
5174
5174
  if (!shouldTransform(id)) return null;
5175
5175
  const result = transformCode(id, code, {
5176
- sourcemap: !!config.build.sourcemap,
5176
+ sourcemap: true,
5177
5177
  jsxRuntime: "automatic",
5178
5178
  jsxImportSource: config.framework === "vue" ? "vue" : "react"
5179
5179
  });
@@ -5190,7 +5190,7 @@ async function compileNode(config, entry, opts) {
5190
5190
  await bundle2.write({
5191
5191
  file: opts.outFile,
5192
5192
  format: opts.format === "cjs" ? "cjs" : "esm",
5193
- sourcemap: false,
5193
+ sourcemap: true,
5194
5194
  minify: false,
5195
5195
  // rolldown 已弃用 inlineDynamicImports,改用 codeSplitting:false 表达
5196
5196
  // 同样语义(单 chunk、内联 dynamic import)
@@ -5394,7 +5394,7 @@ cli.command("preview [root]", "Preview production build").option("--port <port>"
5394
5394
  const host = options.host === true ? "0.0.0.0" : options.host ?? "localhost";
5395
5395
  http2.createServer(app).listen(port, host, () => {
5396
5396
  logger.info(`
5397
- ${pc11.cyan(pc11.bold("NASTI"))} ${pc11.cyan(`v${"2.0.2"}`)} ${pc11.dim("preview")}
5397
+ ${pc11.cyan(pc11.bold("NASTI"))} ${pc11.cyan(`v${"2.1.0"}`)} ${pc11.dim("preview")}
5398
5398
  `);
5399
5399
  printServerUrls2(
5400
5400
  {
@@ -5411,6 +5411,6 @@ cli.command("preview [root]", "Preview production build").option("--port <port>"
5411
5411
  }
5412
5412
  });
5413
5413
  cli.help();
5414
- cli.version("2.0.2");
5414
+ cli.version("2.1.0");
5415
5415
  cli.parse();
5416
5416
  //# sourceMappingURL=cli.js.map