@taujs/create-taujs 0.6.0 → 0.7.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/index.js +4 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -433,7 +433,7 @@ function generatePackageJson(projectName, framework) {
|
|
|
433
433
|
}
|
|
434
434
|
function generateBuildTs() {
|
|
435
435
|
return `import path from "node:path";
|
|
436
|
-
import { taujsBuild } from "@taujs/server";
|
|
436
|
+
import { taujsBuild } from "@taujs/server/build";
|
|
437
437
|
import config from "./taujs.config.ts";
|
|
438
438
|
|
|
439
439
|
await taujsBuild({
|
|
@@ -1294,7 +1294,9 @@ function generateServerIndex() {
|
|
|
1294
1294
|
import config from '../../taujs.config.ts';
|
|
1295
1295
|
import { serviceRegistry } from './services/registry.ts';
|
|
1296
1296
|
|
|
1297
|
-
|
|
1297
|
+
// Development is requested explicitly, exactly as \u03C4js derives its own runtime mode: every other
|
|
1298
|
+
// value - production, test, staging, unset - is production. Do not invert this check.
|
|
1299
|
+
const isDev = process.env.NODE_ENV === "development";
|
|
1298
1300
|
|
|
1299
1301
|
const { app, net } = await createServer({
|
|
1300
1302
|
config,
|