create-newt-app 0.33.0 → 0.33.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/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { existsSync, promises } from "fs";
|
|
|
11
11
|
import path from "path";
|
|
12
12
|
import https from "node:https";
|
|
13
13
|
//#region package.json
|
|
14
|
-
var version = "0.33.
|
|
14
|
+
var version = "0.33.2";
|
|
15
15
|
var engines = { "node": ">=24.0.0" };
|
|
16
16
|
//#endregion
|
|
17
17
|
//#region src/templates/root/index.ts
|
|
@@ -1143,6 +1143,7 @@ var package_json_sqlite_default = {
|
|
|
1143
1143
|
"name": "@<%= projectName %>/db",
|
|
1144
1144
|
"version": "0.0.0",
|
|
1145
1145
|
"private": true,
|
|
1146
|
+
"type": "module",
|
|
1146
1147
|
"exports": {
|
|
1147
1148
|
".": "./src/index.ts"
|
|
1148
1149
|
},
|
|
@@ -1172,6 +1173,7 @@ var package_json_postgres_default = {
|
|
|
1172
1173
|
"name": "@<%= projectName %>/db",
|
|
1173
1174
|
"version": "0.0.0",
|
|
1174
1175
|
"private": true,
|
|
1176
|
+
"type": "module",
|
|
1175
1177
|
"exports": {
|
|
1176
1178
|
".": "./src/index.ts"
|
|
1177
1179
|
},
|
|
@@ -11330,7 +11332,9 @@ export default {
|
|
|
11330
11332
|
rootDir: 'src',
|
|
11331
11333
|
testRegex: '.*\\\\.spec\\\\.ts$',
|
|
11332
11334
|
transform: {
|
|
11333
|
-
|
|
11335
|
+
// Under nodenext ts-jest follows each package's "type", so it would emit
|
|
11336
|
+
// packages/db as ESM, which jest's CommonJS runtime can't require
|
|
11337
|
+
'^.+\\\\.(t|j)s$': ['ts-jest', { tsconfig: { module: 'commonjs' } }],
|
|
11334
11338
|
},
|
|
11335
11339
|
collectCoverageFrom: ['**/*.(t|j)s'],
|
|
11336
11340
|
coverageDirectory: '../coverage',
|
|
@@ -12239,7 +12243,7 @@ import { AppService } from './app.service';
|
|
|
12239
12243
|
// serves apps/web's static export; the api runs from apps/api
|
|
12240
12244
|
ServeStaticModule.forRoot({
|
|
12241
12245
|
rootPath: join(process.cwd(), '../web/out'),
|
|
12242
|
-
exclude: ['/api/{*splat}'],
|
|
12246
|
+
exclude: ['/api/{*splat}', '/{*path}.:ext'],
|
|
12243
12247
|
}),
|
|
12244
12248
|
AuthModule.forRoot({ auth }),
|
|
12245
12249
|
],
|
|
@@ -12553,7 +12557,7 @@ import { TodosModule } from './todos/todos.module';
|
|
|
12553
12557
|
// serves apps/web's static export; the api runs from apps/api
|
|
12554
12558
|
ServeStaticModule.forRoot({
|
|
12555
12559
|
rootPath: join(process.cwd(), '../web/out'),
|
|
12556
|
-
exclude: ['/api/{*splat}'],
|
|
12560
|
+
exclude: ['/api/{*splat}', '/{*path}.:ext'],
|
|
12557
12561
|
}),
|
|
12558
12562
|
AuthModule.forRoot({ auth }),
|
|
12559
12563
|
TodosModule,
|
|
@@ -14149,6 +14153,10 @@ async function doInit(options) {
|
|
|
14149
14153
|
console.log("Next steps:");
|
|
14150
14154
|
console.log();
|
|
14151
14155
|
console.log(chalk.blue(` cd ${name}`));
|
|
14156
|
+
if (!options.install) {
|
|
14157
|
+
console.log(chalk.blue(` pnpm install`));
|
|
14158
|
+
console.log(chalk.blue(` pnpm format`));
|
|
14159
|
+
}
|
|
14152
14160
|
console.log(chalk.blue(` pnpm dev`));
|
|
14153
14161
|
console.log();
|
|
14154
14162
|
await reportRun({
|