@celljs/cli 3.7.7 → 3.8.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.
Files changed (129) hide show
  1. package/lib/build/build-manager.d.ts.map +1 -1
  2. package/lib/build/build-manager.js.map +1 -1
  3. package/lib/build/build.d.ts +1 -1
  4. package/lib/build/build.d.ts.map +1 -1
  5. package/lib/build/build.js.map +1 -1
  6. package/lib/cell.js +8 -5
  7. package/lib/cell.js.map +1 -1
  8. package/lib/config/config.d.ts +1 -1
  9. package/lib/config/config.d.ts.map +1 -1
  10. package/lib/config/config.js.map +1 -1
  11. package/lib/deploy/deploy.d.ts +1 -1
  12. package/lib/deploy/deploy.d.ts.map +1 -1
  13. package/lib/deploy/deploy.js +4 -1
  14. package/lib/deploy/deploy.js.map +1 -1
  15. package/lib/index.d.ts +1 -0
  16. package/lib/index.js +2 -0
  17. package/lib/info/info.d.ts +1 -1
  18. package/lib/info/info.d.ts.map +1 -1
  19. package/lib/info/info.js.map +1 -1
  20. package/lib/init/init-manager.d.ts.map +1 -1
  21. package/lib/init/init-manager.js +5 -2
  22. package/lib/init/init-manager.js.map +1 -1
  23. package/lib/init/init.d.ts +1 -1
  24. package/lib/init/init.d.ts.map +1 -1
  25. package/lib/init/init.js.map +1 -1
  26. package/lib/init/templates.d.ts.map +1 -1
  27. package/lib/init/templates.js +0 -2
  28. package/lib/init/templates.js.map +1 -1
  29. package/lib/package.spec.d.ts +1 -0
  30. package/lib/package.spec.js +5 -2
  31. package/lib/package.spec.js.map +1 -1
  32. package/lib/props/props.d.ts +1 -1
  33. package/lib/props/props.d.ts.map +1 -1
  34. package/lib/props/props.js +6 -3
  35. package/lib/props/props.js.map +1 -1
  36. package/lib/serve/serve-manager.d.ts.map +1 -1
  37. package/lib/serve/serve-manager.js.map +1 -1
  38. package/lib/serve/serve.d.ts +1 -1
  39. package/lib/serve/serve.d.ts.map +1 -1
  40. package/lib/serve/serve.js.map +1 -1
  41. package/lib/update/update.d.ts +1 -1
  42. package/lib/update/update.d.ts.map +1 -1
  43. package/lib/update/update.js.map +1 -1
  44. package/lib/utils/banner-util.js.map +1 -1
  45. package/package.json +9 -12
  46. package/src/cell.ts +1 -1
  47. package/src/init/init-manager.ts +1 -1
  48. package/src/init/templates.ts +0 -2
  49. package/src/package.spec.ts +1 -0
  50. package/src/props/props.ts +1 -1
  51. package/templates/accounts/tsconfig.json +7 -4
  52. package/templates/admin-app/tsconfig.json +7 -4
  53. package/templates/backend-app/package.json +3 -3
  54. package/templates/backend-app/test/home-controller.spec.ts +12 -9
  55. package/templates/backend-app/tsconfig.json +8 -5
  56. package/templates/cell-component/README.md +5 -14
  57. package/templates/cell-component/package.json +6 -6
  58. package/templates/cell-component/src/package.spec.ts +1 -0
  59. package/templates/cell-component/tsconfig.json +27 -1
  60. package/templates/database-app/tsconfig.json +7 -4
  61. package/templates/docker-app/tsconfig.json +7 -4
  62. package/templates/file-service/tsconfig.json +7 -4
  63. package/templates/jwt-app/package.json +3 -3
  64. package/templates/jwt-app/test/home-controller.spec.ts +12 -9
  65. package/templates/jwt-app/tsconfig.json +8 -5
  66. package/templates/microservice/examples/backend-app/tsconfig.json +7 -4
  67. package/templates/microservice/package.json +8 -11
  68. package/templates/microservice/packages/api/tsconfig.json +7 -4
  69. package/templates/microservice/packages/serviceA/tsconfig.json +7 -4
  70. package/templates/microservice/packages/serviceB/tsconfig.json +7 -4
  71. package/templates/microservice/tsconfig.json +7 -4
  72. package/templates/mycli/package.json +1 -1
  73. package/templates/mycli/tsconfig.json +7 -4
  74. package/templates/nest-app/test/app.e2e-spec.ts +1 -1
  75. package/templates/nest-app/tsconfig.build.json +9 -1
  76. package/templates/nest-app/tsconfig.json +7 -3
  77. package/templates/sample-app/tsconfig.json +7 -4
  78. package/templates/schedule/tsconfig.json +7 -4
  79. package/templates/standalone-app/tsconfig.json +7 -4
  80. package/templates/vue-app/tsconfig.json +6 -4
  81. package/LICENSE +0 -21
  82. package/templates/cell-component/.eslintrc.js +0 -10
  83. package/templates/microservice/lerna.json +0 -19
  84. package/templates/monorepo/.editorconfig +0 -12
  85. package/templates/monorepo/.eslintrc.js +0 -18
  86. package/templates/monorepo/.yarnrc +0 -1
  87. package/templates/monorepo/CHANGELOG.md +0 -5
  88. package/templates/monorepo/README.md +0 -0
  89. package/templates/monorepo/apps/sample-app/cell.yml +0 -0
  90. package/templates/monorepo/apps/sample-app/package.json +0 -33
  91. package/templates/monorepo/apps/sample-app/src/browser/assets/logo.png +0 -0
  92. package/templates/monorepo/apps/sample-app/src/browser/css-shims.d.ts +0 -30
  93. package/templates/monorepo/apps/sample-app/src/browser/hello.view.tsx +0 -31
  94. package/templates/monorepo/apps/sample-app/src/browser/module.ts +0 -3
  95. package/templates/monorepo/apps/sample-app/src/browser/style/hello.module.scss +0 -4
  96. package/templates/monorepo/apps/sample-app/src/common/welcome-protocol.ts +0 -5
  97. package/templates/monorepo/apps/sample-app/src/node/module.ts +0 -3
  98. package/templates/monorepo/apps/sample-app/src/node/welcome-server.ts +0 -9
  99. package/templates/monorepo/apps/sample-app/tsconfig.json +0 -30
  100. package/templates/monorepo/configs/root-compilation.tsconfig.json +0 -14
  101. package/templates/monorepo/configs/typedoc-tsconfig.json +0 -6
  102. package/templates/monorepo/configs/typedoc.json +0 -23
  103. package/templates/monorepo/lerna.json +0 -17
  104. package/templates/monorepo/package.json +0 -46
  105. package/templates/monorepo/packages/core/.eslintrc.js +0 -10
  106. package/templates/monorepo/packages/core/README.md +0 -1
  107. package/templates/monorepo/packages/core/cell.yml +0 -0
  108. package/templates/monorepo/packages/core/package.json +0 -40
  109. package/templates/monorepo/packages/core/src/browser/index.ts +0 -0
  110. package/templates/monorepo/packages/core/src/browser/module.ts +0 -4
  111. package/templates/monorepo/packages/core/src/common/index.ts +0 -0
  112. package/templates/monorepo/packages/core/src/common/module.ts +0 -4
  113. package/templates/monorepo/packages/core/src/node/index.ts +0 -0
  114. package/templates/monorepo/packages/core/src/node/module.ts +0 -4
  115. package/templates/monorepo/packages/core/src/package.spec.ts +0 -4
  116. package/templates/monorepo/packages/core/tsconfig.json +0 -13
  117. package/templates/monorepo/scripts/check-publish.js +0 -40
  118. package/templates/monorepo/scripts/compile-references.js +0 -286
  119. package/templates/monorepo/tsconfig.json +0 -20
  120. package/templates/monorepo/tsfmt.json +0 -3
  121. package/templates/puppeteer/.github/workflows/deploy.yml +0 -25
  122. package/templates/puppeteer/.vscode/launch.json +0 -23
  123. package/templates/puppeteer/README.md +0 -92
  124. package/templates/puppeteer/cell.yml +0 -11
  125. package/templates/puppeteer/package.json +0 -31
  126. package/templates/puppeteer/src/home-controller.ts +0 -11
  127. package/templates/puppeteer/src/module.ts +0 -5
  128. package/templates/puppeteer/src/puppeteer-controller.ts +0 -26
  129. package/templates/puppeteer/tsconfig.json +0 -29
@@ -10,9 +10,8 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "jsx": "react",
17
16
  "target": "ES2017",
18
17
  "lib": [
@@ -21,7 +20,11 @@
21
20
  ],
22
21
  "sourceMap": true,
23
22
  "rootDir": "src",
24
- "outDir": "lib"
23
+ "outDir": "lib",
24
+ "strict": false,
25
+ "types": [
26
+ "node"
27
+ ]
25
28
  },
26
29
  "include": [
27
30
  "src"
@@ -10,9 +10,8 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "jsx": "react",
17
16
  "target": "ES2017",
18
17
  "lib": [
@@ -21,7 +20,11 @@
21
20
  ],
22
21
  "sourceMap": true,
23
22
  "rootDir": "src",
24
- "outDir": "lib"
23
+ "outDir": "lib",
24
+ "strict": false,
25
+ "types": [
26
+ "node"
27
+ ]
25
28
  },
26
29
  "include": [
27
30
  "src"
@@ -15,14 +15,14 @@
15
15
  },
16
16
  "devDependencies": {
17
17
  "@celljs/cli": "{{ version }}",
18
- "@celljs/component": "{{ version }}",
19
18
  "@celljs/testing": "{{ version }}",
20
19
  "@types/supertest": "^2.0.12",
21
- "supertest": "^6.2.4"
20
+ "supertest": "^6.2.4",
21
+ "@types/bun": "^1.3.11"
22
22
  },
23
23
  "scripts": {
24
24
  "clean": "rimraf lib dist .cell",
25
- "test": "cell-component test",
25
+ "test": "bun test ./test",
26
26
  "build": "cell build",
27
27
  "start": "cell serve",
28
28
  "deploy": "cell deploy -m scf -m test",
@@ -1,16 +1,19 @@
1
+ import { beforeAll, describe, it } from 'bun:test';
1
2
  import { Test } from '@celljs/testing';
2
- import * as request from 'supertest';
3
+ import request from 'supertest';
3
4
 
4
- describe('HomeController (e2e)', function () {
5
+ describe('HomeController (e2e)', () => {
5
6
  let server: string;
6
7
 
7
- before(async function () {
8
- this.timeout(20000);
8
+ beforeAll(async () => {
9
9
  server = await Test.createHttpServer();
10
- });
10
+ }, 20000);
11
11
 
12
- it('/ (GET)', () => request(server)
13
- .get('/')
14
- .expect(200)
15
- .expect('Welcome to Cell'));
12
+ // bun:test only awaits native promises, so await supertest's thenable explicitly.
13
+ it('/ (GET)', async () => {
14
+ await request(server)
15
+ .get('/')
16
+ .expect(200)
17
+ .expect('Welcome to Cell');
18
+ });
16
19
  });
@@ -10,9 +10,8 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "jsx": "react",
17
16
  "target": "ES2017",
18
17
  "lib": [
@@ -21,9 +20,13 @@
21
20
  ],
22
21
  "sourceMap": true,
23
22
  "rootDir": "src",
24
- "outDir": "lib"
23
+ "outDir": "lib",
24
+ "strict": false,
25
+ "types": [
26
+ "node"
27
+ ]
25
28
  },
26
29
  "include": [
27
30
  "src"
28
31
  ]
29
- }
32
+ }
@@ -1,36 +1,27 @@
1
1
  # Cell Component
2
2
 
3
- Cell 组件本质上是一个 npm 包,为了统一组件项目风格,Cell 提供了一个 `@celljs/component` 组件,帮助开发者标准化组件开发流程。`@celljs/component` 主要提供一套通用的配置,包括编译、代码风格检查、单元测试等配置,并且提供了相应的命令行工具 `cell-component`。
4
-
5
- ## 代码风格检查
6
-
7
- ```bash
8
- cell-component lint
9
- ```
3
+ Cell 组件本质上是一个 npm 包:用 TypeScript(`tsc -b`)编译到 `lib`,用 `bun test` 运行单元测试。
10
4
 
11
5
  ## 代码构建
12
6
 
13
7
  ```bash
14
- cell-component build
8
+ npm run build
15
9
  ```
16
10
 
17
11
  ## Watch 代码
18
12
 
19
13
  ```bash
20
- cell-component watch
14
+ npm run watch
21
15
  ```
22
16
 
23
17
  ## 代码测试
24
18
 
25
19
  ```bash
26
- cell-component test
20
+ npm test
27
21
  ```
28
22
 
29
23
  ## 清理文件
30
24
 
31
25
  ```bash
32
- cell-component clean
26
+ npm run clean
33
27
  ```
34
-
35
-
36
-
@@ -8,7 +8,8 @@
8
8
  "@celljs/core": "{{ version }}"
9
9
  },
10
10
  "devDependencies": {
11
- "@celljs/component": "{{ version }}"
11
+ "@types/bun": "^1.3.11",
12
+ "typescript": "^7.0.2"
12
13
  },
13
14
  "keywords": [
14
15
  "cell-component"
@@ -20,10 +21,9 @@
20
21
  "cell.yml"
21
22
  ],
22
23
  "scripts": {
23
- "lint": "cell-component lint",
24
- "build": "cell-component build",
25
- "watch": "cell-component watch",
26
- "clean": "cell-component clean",
27
- "test": "cell-component test"
24
+ "build": "tsc -b",
25
+ "watch": "tsc -b -w --preserveWatchOutput",
26
+ "clean": "tsc -b --clean",
27
+ "test": "bun test ./src"
28
28
  }
29
29
  }
@@ -1,3 +1,4 @@
1
+ import { describe, it } from 'bun:test';
1
2
  describe('cell-component package', () => {
2
3
 
3
4
  it('support code coverage statistics', () => {});
@@ -1,6 +1,32 @@
1
1
  {
2
- "extends":"@celljs/style-guide/typescript",
3
2
  "compilerOptions": {
3
+ "skipLibCheck": true,
4
+ "declaration": true,
5
+ "declarationMap": true,
6
+ "noImplicitAny": true,
7
+ "noImplicitOverride": true,
8
+ "noEmitOnError": false,
9
+ "noImplicitThis": true,
10
+ "noUnusedLocals": true,
11
+ "strictNullChecks": true,
12
+ "experimentalDecorators": true,
13
+ "emitDecoratorMetadata": true,
14
+ "resolveJsonModule": true,
15
+ "module": "node16",
16
+ "moduleResolution": "node16",
17
+ "target": "ES2018",
18
+ "jsx": "react",
19
+ "lib": [
20
+ "ES2018",
21
+ "ES2020.Promise",
22
+ "dom"
23
+ ],
24
+ "sourceMap": true,
25
+ "strict": false,
26
+ "types": [
27
+ "node",
28
+ "bun"
29
+ ],
4
30
  "composite": true,
5
31
  "rootDir": "src",
6
32
  "outDir": "lib"
@@ -10,9 +10,8 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "jsx": "react",
17
16
  "target": "ES2017",
18
17
  "lib": [
@@ -21,7 +20,11 @@
21
20
  ],
22
21
  "sourceMap": true,
23
22
  "rootDir": "src",
24
- "outDir": "lib"
23
+ "outDir": "lib",
24
+ "strict": false,
25
+ "types": [
26
+ "node"
27
+ ]
25
28
  },
26
29
  "include": [
27
30
  "src"
@@ -11,9 +11,8 @@
11
11
  "strictNullChecks": true,
12
12
  "experimentalDecorators": true,
13
13
  "emitDecoratorMetadata": true,
14
- "downlevelIteration": true,
15
- "module": "commonjs",
16
- "moduleResolution": "node",
14
+ "module": "node16",
15
+ "moduleResolution": "node16",
17
16
  "jsx": "react",
18
17
  "target": "ES2017",
19
18
  "lib": [
@@ -22,7 +21,11 @@
22
21
  ],
23
22
  "sourceMap": true,
24
23
  "rootDir": "src",
25
- "outDir": "lib"
24
+ "outDir": "lib",
25
+ "strict": false,
26
+ "types": [
27
+ "node"
28
+ ]
26
29
  },
27
30
  "include": [
28
31
  "src"
@@ -10,9 +10,8 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "jsx": "react",
17
16
  "target": "ES2017",
18
17
  "lib": [
@@ -21,7 +20,11 @@
21
20
  ],
22
21
  "sourceMap": true,
23
22
  "rootDir": "src",
24
- "outDir": "lib"
23
+ "outDir": "lib",
24
+ "strict": false,
25
+ "types": [
26
+ "node"
27
+ ]
25
28
  },
26
29
  "include": [
27
30
  "src"
@@ -18,14 +18,14 @@
18
18
  },
19
19
  "devDependencies": {
20
20
  "@celljs/cli": "{{ version }}",
21
- "@celljs/component": "{{ version }}",
22
21
  "@celljs/testing": "{{ version }}",
23
22
  "@types/supertest": "^2.0.12",
24
- "supertest": "^6.2.4"
23
+ "supertest": "^6.2.4",
24
+ "@types/bun": "^1.3.11"
25
25
  },
26
26
  "scripts": {
27
27
  "clean": "rimraf lib dist .cell",
28
- "test": "cell-component test",
28
+ "test": "bun test ./test",
29
29
  "build": "cell build",
30
30
  "start": "cell serve",
31
31
  "deploy": "cell deploy -m scf -m test",
@@ -1,16 +1,19 @@
1
+ import { beforeAll, describe, it } from 'bun:test';
1
2
  import { Test } from '@celljs/testing';
2
- import * as request from 'supertest';
3
+ import request from 'supertest';
3
4
 
4
- describe('HomeController (e2e)', function () {
5
+ describe('HomeController (e2e)', () => {
5
6
  let server: string;
6
7
 
7
- before(async function () {
8
- this.timeout(20000);
8
+ beforeAll(async () => {
9
9
  server = await Test.createHttpServer();
10
- });
10
+ }, 20000);
11
11
 
12
- it('/ (GET)', () => request(server)
13
- .get('/')
14
- .expect(200)
15
- .expect('Welcome to Cell'));
12
+ // bun:test only awaits native promises, so await supertest's thenable explicitly.
13
+ it('/ (GET)', async () => {
14
+ await request(server)
15
+ .get('/')
16
+ .expect(200)
17
+ .expect('Welcome to Cell');
18
+ });
16
19
  });
@@ -10,9 +10,8 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "jsx": "react",
17
16
  "target": "ES2017",
18
17
  "lib": [
@@ -21,9 +20,13 @@
21
20
  ],
22
21
  "sourceMap": true,
23
22
  "rootDir": "src",
24
- "outDir": "lib"
23
+ "outDir": "lib",
24
+ "strict": false,
25
+ "types": [
26
+ "node"
27
+ ]
25
28
  },
26
29
  "include": [
27
30
  "src"
28
31
  ]
29
- }
32
+ }
@@ -10,9 +10,8 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "jsx": "react",
17
16
  "target": "ES2017",
18
17
  "lib": [
@@ -21,7 +20,11 @@
21
20
  ],
22
21
  "sourceMap": true,
23
22
  "rootDir": "src",
24
- "outDir": "lib"
23
+ "outDir": "lib",
24
+ "strict": false,
25
+ "types": [
26
+ "node"
27
+ ]
25
28
  },
26
29
  "include": [
27
30
  "src"
@@ -3,18 +3,15 @@
3
3
  "name": "@microservice/monorepo",
4
4
  "version": "0.0.0",
5
5
  "license": "MIT",
6
- "devDependencies": {
7
- "lerna": "^2.2.0"
8
- },
9
6
  "scripts": {
10
- "prepare": "yarn run build",
11
- "clean": "lerna run clean",
12
- "build": "lerna run build",
13
- "start": "lerna run start --scope backend-app",
14
- "deploy": "lerna run deploy -m test",
15
- "deploy:test": "lerna run deploy -m test",
16
- "deploy:pre": "lerna run deplop -m pre",
17
- "deploy:prod": "lerna run deploy -m prod"
7
+ "prepare": "npm run build",
8
+ "clean": "npm run clean --workspaces --if-present",
9
+ "build": "npm run build --workspaces --if-present",
10
+ "start": "npm run start -w backend-app",
11
+ "deploy": "npm run deploy --workspaces --if-present",
12
+ "deploy:test": "npm run deploy:test --workspaces --if-present",
13
+ "deploy:pre": "npm run deploy:pre --workspaces --if-present",
14
+ "deploy:prod": "npm run deploy:prod --workspaces --if-present"
18
15
  },
19
16
  "workspaces": [
20
17
  "packages/*",
@@ -10,16 +10,19 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "target": "ES2017",
17
16
  "lib": [
18
17
  "ES2017"
19
18
  ],
20
19
  "sourceMap": true,
21
20
  "rootDir": "src",
22
- "outDir": "lib"
21
+ "outDir": "lib",
22
+ "strict": false,
23
+ "types": [
24
+ "node"
25
+ ]
23
26
  },
24
27
  "include": [
25
28
  "src"
@@ -10,16 +10,19 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "target": "ES2017",
17
16
  "lib": [
18
17
  "ES2017"
19
18
  ],
20
19
  "sourceMap": true,
21
20
  "rootDir": "src",
22
- "outDir": "lib"
21
+ "outDir": "lib",
22
+ "strict": false,
23
+ "types": [
24
+ "node"
25
+ ]
23
26
  },
24
27
  "include": [
25
28
  "src"
@@ -10,16 +10,19 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "target": "ES2017",
17
16
  "lib": [
18
17
  "ES2017"
19
18
  ],
20
19
  "sourceMap": true,
21
20
  "rootDir": "src",
22
- "outDir": "lib"
21
+ "outDir": "lib",
22
+ "strict": false,
23
+ "types": [
24
+ "node"
25
+ ]
23
26
  },
24
27
  "include": [
25
28
  "src"
@@ -10,9 +10,8 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "jsx": "react",
17
16
  "target": "ES2017",
18
17
  "lib": [
@@ -21,7 +20,11 @@
21
20
  ],
22
21
  "sourceMap": true,
23
22
  "rootDir": "src",
24
- "outDir": "lib"
23
+ "outDir": "lib",
24
+ "strict": false,
25
+ "types": [
26
+ "node"
27
+ ]
25
28
  },
26
29
  "include": [
27
30
  "src"
@@ -25,7 +25,7 @@
25
25
  "typescript": "~5.4.5"
26
26
  },
27
27
  "scripts": {
28
- "prepare": "yarn run clean & yarn run build",
28
+ "prepare": "npm run clean && npm run build",
29
29
  "clean": "rimraf lib",
30
30
  "build": "tsc",
31
31
  "watch": "tsc -w"
@@ -10,9 +10,8 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "jsx": "react",
17
16
  "target": "ES2017",
18
17
  "lib": [
@@ -21,7 +20,11 @@
21
20
  ],
22
21
  "sourceMap": true,
23
22
  "rootDir": "src",
24
- "outDir": "lib"
23
+ "outDir": "lib",
24
+ "strict": false,
25
+ "types": [
26
+ "node"
27
+ ]
25
28
  },
26
29
  "include": [
27
30
  "src"
@@ -1,6 +1,6 @@
1
1
  import { Test, TestingModule } from '@nestjs/testing';
2
2
  import { INestApplication } from '@nestjs/common';
3
- import * as request from 'supertest';
3
+ import request from 'supertest';
4
4
  import { AppModule } from '../src/app.module';
5
5
 
6
6
  describe('AppController (e2e)', () => {
@@ -1,4 +1,12 @@
1
1
  {
2
2
  "extends": "./tsconfig.json",
3
- "exclude": ["node_modules", "test", "dist", "**/*spec.ts"]
3
+ "exclude": [
4
+ "node_modules",
5
+ "test",
6
+ "dist",
7
+ "**/*spec.ts"
8
+ ],
9
+ "compilerOptions": {
10
+ "strict": false
11
+ }
4
12
  }
@@ -9,13 +9,17 @@
9
9
  "target": "ES2021",
10
10
  "sourceMap": true,
11
11
  "outDir": "./dist",
12
- "baseUrl": "./",
13
12
  "incremental": true,
14
13
  "skipLibCheck": true,
15
14
  "strictNullChecks": false,
16
15
  "noImplicitAny": false,
17
16
  "strictBindCallApply": false,
18
17
  "forceConsistentCasingInFileNames": false,
19
- "noFallthroughCasesInSwitch": false
18
+ "noFallthroughCasesInSwitch": false,
19
+ "strict": false,
20
+ "types": [
21
+ "node",
22
+ "jest"
23
+ ]
20
24
  }
21
- }
25
+ }
@@ -10,9 +10,8 @@
10
10
  "strictNullChecks": true,
11
11
  "experimentalDecorators": true,
12
12
  "emitDecoratorMetadata": true,
13
- "downlevelIteration": true,
14
- "module": "commonjs",
15
- "moduleResolution": "node",
13
+ "module": "node16",
14
+ "moduleResolution": "node16",
16
15
  "jsx": "react",
17
16
  "target": "ES2017",
18
17
  "lib": [
@@ -21,7 +20,11 @@
21
20
  ],
22
21
  "sourceMap": true,
23
22
  "rootDir": "src",
24
- "outDir": "lib"
23
+ "outDir": "lib",
24
+ "strict": false,
25
+ "types": [
26
+ "node"
27
+ ]
25
28
  },
26
29
  "include": [
27
30
  "src"