@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.cjs +8 -8
- package/dist/cli.cjs.map +1 -1
- package/dist/cli.js +8 -8
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +6 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli.cjs
CHANGED
|
@@ -4036,7 +4036,7 @@ async function build(inlineConfig = {}) {
|
|
|
4036
4036
|
const startTime = performance.now();
|
|
4037
4037
|
logger.info(
|
|
4038
4038
|
import_picocolors6.default.cyan(`
|
|
4039
|
-
nasti v${"2.0
|
|
4039
|
+
nasti v${"2.1.0"} `) + import_picocolors6.default.green(`building for ${config.mode}...`)
|
|
4040
4040
|
);
|
|
4041
4041
|
debug5?.(`root: ${config.root}`);
|
|
4042
4042
|
const buildableNames = Object.keys(config.environments).filter(
|
|
@@ -4755,7 +4755,7 @@ async function createServer(inlineConfig = {}) {
|
|
|
4755
4755
|
const readyIn = Math.ceil(performance.now() - startTime);
|
|
4756
4756
|
logger.info(
|
|
4757
4757
|
`
|
|
4758
|
-
${import_picocolors8.default.cyan(import_picocolors8.default.bold("NASTI"))} ${import_picocolors8.default.cyan(`v${"2.0
|
|
4758
|
+
${import_picocolors8.default.cyan(import_picocolors8.default.bold("NASTI"))} ${import_picocolors8.default.cyan(`v${"2.1.0"}`)} ${import_picocolors8.default.dim("ready in")} ${import_picocolors8.default.bold(readyIn)} ${import_picocolors8.default.dim("ms")}
|
|
4759
4759
|
`
|
|
4760
4760
|
);
|
|
4761
4761
|
printServerUrls(
|
|
@@ -4889,7 +4889,7 @@ async function buildElectron(inlineConfig = {}) {
|
|
|
4889
4889
|
const config = await resolveConfig({ ...inlineConfig, target: "electron" }, "build");
|
|
4890
4890
|
const startTime = performance.now();
|
|
4891
4891
|
assertElectronVersion(config);
|
|
4892
|
-
console.log(import_picocolors9.default.cyan("\n\u26A1 nasti build (electron)") + import_picocolors9.default.dim(` v${"2.0
|
|
4892
|
+
console.log(import_picocolors9.default.cyan("\n\u26A1 nasti build (electron)") + import_picocolors9.default.dim(` v${"2.1.0"}`));
|
|
4893
4893
|
console.log(import_picocolors9.default.dim(` root: ${config.root}`));
|
|
4894
4894
|
console.log(import_picocolors9.default.dim(` mode: ${config.mode}`));
|
|
4895
4895
|
console.log(import_picocolors9.default.dim(` target: electron (\u2265 ${config.electron.minVersion})`));
|
|
@@ -5045,7 +5045,7 @@ async function startElectronDev(inlineConfig = {}) {
|
|
|
5045
5045
|
const { noSpawn, ...rest } = inlineConfig;
|
|
5046
5046
|
const config = await resolveConfig({ ...rest, target: "electron" }, "serve");
|
|
5047
5047
|
warnElectronVersion(config);
|
|
5048
|
-
console.log(import_picocolors10.default.cyan("\n\u26A1 nasti electron dev") + import_picocolors10.default.dim(` v${"2.0
|
|
5048
|
+
console.log(import_picocolors10.default.cyan("\n\u26A1 nasti electron dev") + import_picocolors10.default.dim(` v${"2.1.0"}`));
|
|
5049
5049
|
const { createServer: createServer2 } = await Promise.resolve().then(() => (init_server(), server_exports));
|
|
5050
5050
|
const server = await createServer2({ ...rest, target: "electron" });
|
|
5051
5051
|
await server.listen();
|
|
@@ -5169,7 +5169,7 @@ async function compileNode(config, entry, opts) {
|
|
|
5169
5169
|
transform(code, id) {
|
|
5170
5170
|
if (!shouldTransform(id)) return null;
|
|
5171
5171
|
const result = transformCode(id, code, {
|
|
5172
|
-
sourcemap:
|
|
5172
|
+
sourcemap: true,
|
|
5173
5173
|
jsxRuntime: "automatic",
|
|
5174
5174
|
jsxImportSource: config.framework === "vue" ? "vue" : "react"
|
|
5175
5175
|
});
|
|
@@ -5186,7 +5186,7 @@ async function compileNode(config, entry, opts) {
|
|
|
5186
5186
|
await bundle2.write({
|
|
5187
5187
|
file: opts.outFile,
|
|
5188
5188
|
format: opts.format === "cjs" ? "cjs" : "esm",
|
|
5189
|
-
sourcemap:
|
|
5189
|
+
sourcemap: true,
|
|
5190
5190
|
minify: false,
|
|
5191
5191
|
// rolldown 已弃用 inlineDynamicImports,改用 codeSplitting:false 表达
|
|
5192
5192
|
// 同样语义(单 chunk、内联 dynamic import)
|
|
@@ -5398,7 +5398,7 @@ cli.command("preview [root]", "Preview production build").option("--port <port>"
|
|
|
5398
5398
|
const host = options.host === true ? "0.0.0.0" : options.host ?? "localhost";
|
|
5399
5399
|
http2.createServer(app).listen(port, host, () => {
|
|
5400
5400
|
logger.info(`
|
|
5401
|
-
${import_picocolors11.default.cyan(import_picocolors11.default.bold("NASTI"))} ${import_picocolors11.default.cyan(`v${"2.0
|
|
5401
|
+
${import_picocolors11.default.cyan(import_picocolors11.default.bold("NASTI"))} ${import_picocolors11.default.cyan(`v${"2.1.0"}`)} ${import_picocolors11.default.dim("preview")}
|
|
5402
5402
|
`);
|
|
5403
5403
|
printServerUrls2(
|
|
5404
5404
|
{
|
|
@@ -5415,6 +5415,6 @@ cli.command("preview [root]", "Preview production build").option("--port <port>"
|
|
|
5415
5415
|
}
|
|
5416
5416
|
});
|
|
5417
5417
|
cli.help();
|
|
5418
|
-
cli.version("2.0
|
|
5418
|
+
cli.version("2.1.0");
|
|
5419
5419
|
cli.parse();
|
|
5420
5420
|
//# sourceMappingURL=cli.cjs.map
|