create-newt-app 0.26.1 → 0.27.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/index.js +23 -21
- package/dist/index.js.map +1 -1
- package/package.json +13 -3
package/dist/index.js
CHANGED
|
@@ -10,8 +10,8 @@ import ejs from "ejs";
|
|
|
10
10
|
import { existsSync, promises } from "fs";
|
|
11
11
|
import path from "path";
|
|
12
12
|
//#region package.json
|
|
13
|
-
var version = "0.
|
|
14
|
-
var engines = { "node": ">=
|
|
13
|
+
var version = "0.27.0";
|
|
14
|
+
var engines = { "node": ">=24.0.0" };
|
|
15
15
|
//#endregion
|
|
16
16
|
//#region src/templates/root/index.ts
|
|
17
17
|
const root$2 = { templates: [
|
|
@@ -36,7 +36,7 @@ const root$2 = { templates: [
|
|
|
36
36
|
},
|
|
37
37
|
"packageManager": "pnpm@9.0.0",
|
|
38
38
|
"engines": {
|
|
39
|
-
"node": ">=
|
|
39
|
+
"node": ">=24.0.0"
|
|
40
40
|
}
|
|
41
41
|
}`
|
|
42
42
|
},
|
|
@@ -819,14 +819,14 @@ const api$2 = { templates: [
|
|
|
819
819
|
"noFallthroughCasesInSwitch": false,
|
|
820
820
|
"types": [<% if (testing === 'jest') { %>"jest", <% } %><% if (testing === 'vitest') { %>"vitest/globals", <% } %>"node"]
|
|
821
821
|
},
|
|
822
|
-
"exclude": ["vitest.config.
|
|
822
|
+
"exclude": ["vitest.config.mts", "vitest.config.e2e.mts", "node_modules", "dist"]
|
|
823
823
|
}`
|
|
824
824
|
},
|
|
825
825
|
{
|
|
826
826
|
filename: "apps/api/tsconfig.build.json",
|
|
827
827
|
template: `{
|
|
828
828
|
"extends": "./tsconfig.json",
|
|
829
|
-
"exclude": ["node_modules", "test", "dist", "**/*spec.ts", "vitest.config.
|
|
829
|
+
"exclude": ["node_modules", "test", "dist", "**/*spec.ts", "vitest.config.mts", "vitest.config.e2e.mts", "jest.config.ts"]
|
|
830
830
|
}`
|
|
831
831
|
},
|
|
832
832
|
{
|
|
@@ -1508,12 +1508,12 @@ const versions = {
|
|
|
1508
1508
|
"@types/better-sqlite3": "^7.6.13",
|
|
1509
1509
|
"@types/express": "^5.0.0",
|
|
1510
1510
|
"@types/jest": "^30.0.0",
|
|
1511
|
-
"@types/node": "^
|
|
1511
|
+
"@types/node": "^24.13.3",
|
|
1512
1512
|
"@types/pg": "^8.11.13",
|
|
1513
1513
|
"@types/react": "19.2.14",
|
|
1514
1514
|
"@types/react-dom": "19.2.3",
|
|
1515
1515
|
"@types/supertest": "^6.0.2",
|
|
1516
|
-
"@vitest/coverage-v8": "^
|
|
1516
|
+
"@vitest/coverage-v8": "^4.1.10",
|
|
1517
1517
|
"auth": "^1.5.5",
|
|
1518
1518
|
"better-auth": "^1.2.8",
|
|
1519
1519
|
"better-sqlite3": "^12.11.1",
|
|
@@ -1564,7 +1564,7 @@ const versions = {
|
|
|
1564
1564
|
"typescript": "6.0.2",
|
|
1565
1565
|
"typescript-eslint": "^8.50.0",
|
|
1566
1566
|
"unplugin-swc": "^1.5.9",
|
|
1567
|
-
"vitest": "^
|
|
1567
|
+
"vitest": "^4.1.10"
|
|
1568
1568
|
};
|
|
1569
1569
|
//#endregion
|
|
1570
1570
|
//#region src/templates/shadcn-ui/index.ts
|
|
@@ -10411,13 +10411,15 @@ export default {
|
|
|
10411
10411
|
{
|
|
10412
10412
|
filename: "apps/api/test/jest-e2e.json",
|
|
10413
10413
|
template: `{
|
|
10414
|
-
"moduleFileExtensions": ["js", "json", "ts"],
|
|
10414
|
+
"moduleFileExtensions": ["js", "mjs", "json", "ts"],
|
|
10415
10415
|
"rootDir": ".",
|
|
10416
10416
|
"testEnvironment": "node",
|
|
10417
10417
|
"testRegex": ".e2e-spec.ts$",
|
|
10418
|
+
"extensionsToTreatAsEsm": [".ts"],
|
|
10418
10419
|
"transform": {
|
|
10419
|
-
"^.+\\\\.
|
|
10420
|
-
}
|
|
10420
|
+
"^.+\\\\.ts$": ["ts-jest", { "useESM": true, "tsconfig": { "module": "esnext" } }]
|
|
10421
|
+
},
|
|
10422
|
+
"transformIgnorePatterns": ["node_modules/(?!.*\\\\.mjs$)"]
|
|
10421
10423
|
}`
|
|
10422
10424
|
},
|
|
10423
10425
|
{
|
|
@@ -10440,11 +10442,11 @@ describe('AppController (e2e)', () => {
|
|
|
10440
10442
|
await app.init();
|
|
10441
10443
|
});
|
|
10442
10444
|
|
|
10443
|
-
it('/ (GET)', () => {
|
|
10445
|
+
it('/hello (GET)', () => {
|
|
10444
10446
|
return request(app.getHttpServer())
|
|
10445
|
-
.get('/')
|
|
10447
|
+
.get('/hello')
|
|
10446
10448
|
.expect(200)
|
|
10447
|
-
.expect('Hello
|
|
10449
|
+
.expect({ message: 'Hello from Nest' });
|
|
10448
10450
|
});
|
|
10449
10451
|
});`
|
|
10450
10452
|
},
|
|
@@ -10519,7 +10521,7 @@ module.exports = {
|
|
|
10519
10521
|
{
|
|
10520
10522
|
module: "apps/api",
|
|
10521
10523
|
name: "test:e2e",
|
|
10522
|
-
script: "jest --config ./test/jest-e2e.json"
|
|
10524
|
+
script: "NODE_OPTIONS=--experimental-vm-modules jest --config ./test/jest-e2e.json"
|
|
10523
10525
|
}
|
|
10524
10526
|
]
|
|
10525
10527
|
};
|
|
@@ -10528,7 +10530,7 @@ module.exports = {
|
|
|
10528
10530
|
const testingVitest = {
|
|
10529
10531
|
templates: [
|
|
10530
10532
|
{
|
|
10531
|
-
filename: "apps/api/vitest.config.
|
|
10533
|
+
filename: "apps/api/vitest.config.mts",
|
|
10532
10534
|
template: `import swc from 'unplugin-swc';
|
|
10533
10535
|
import { defineConfig } from 'vitest/config';
|
|
10534
10536
|
|
|
@@ -10545,7 +10547,7 @@ export default defineConfig({
|
|
|
10545
10547
|
});`
|
|
10546
10548
|
},
|
|
10547
10549
|
{
|
|
10548
|
-
filename: "apps/api/vitest.config.e2e.
|
|
10550
|
+
filename: "apps/api/vitest.config.e2e.mts",
|
|
10549
10551
|
template: `import swc from 'unplugin-swc';
|
|
10550
10552
|
import { defineConfig } from 'vitest/config';
|
|
10551
10553
|
|
|
@@ -10579,11 +10581,11 @@ describe('AppController (e2e)', () => {
|
|
|
10579
10581
|
await app.init();
|
|
10580
10582
|
});
|
|
10581
10583
|
|
|
10582
|
-
it('/ (GET)', () => {
|
|
10584
|
+
it('/hello (GET)', () => {
|
|
10583
10585
|
return request(app.getHttpServer())
|
|
10584
|
-
.get('/')
|
|
10586
|
+
.get('/hello')
|
|
10585
10587
|
.expect(200)
|
|
10586
|
-
.expect('Hello
|
|
10588
|
+
.expect({ message: 'Hello from Nest' });
|
|
10587
10589
|
});
|
|
10588
10590
|
});`
|
|
10589
10591
|
}
|
|
@@ -10638,7 +10640,7 @@ describe('AppController (e2e)', () => {
|
|
|
10638
10640
|
{
|
|
10639
10641
|
module: "apps/api",
|
|
10640
10642
|
name: "test:e2e",
|
|
10641
|
-
script: "vitest run --config ./vitest.config.e2e.
|
|
10643
|
+
script: "vitest run --config ./vitest.config.e2e.mts"
|
|
10642
10644
|
}
|
|
10643
10645
|
]
|
|
10644
10646
|
};
|