@tsed/cli-plugin-jest 4.5.2 → 4.5.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tsed/cli-plugin-jest",
3
- "version": "4.5.2",
3
+ "version": "4.5.4",
4
4
  "description": "Ts.ED CLI plugin. Add Jest support",
5
5
  "source": "./src/index.ts",
6
6
  "main": "./lib/cjs/index.js",
@@ -13,13 +13,21 @@
13
13
  "default": "./lib/esm/index.js"
14
14
  },
15
15
  "scripts": {
16
- "build": "yarn run build:esm && yarn run build:cjs",
17
- "build:cjs": "tsc --build tsconfig.compile.json",
18
- "build:esm": "tsc --build tsconfig.compile.esm.json"
16
+ "build": "yarn build:ts",
17
+ "build:ts": "tsc --build tsconfig.json && tsc --build tsconfig.esm.json && cp scripts/templateDir.esm.js lib/esm/utils/templateDir.js",
18
+ "lint": "eslint '**/*.{ts,js}'",
19
+ "lint:fix": "eslint '**/*.{ts,js}' --fix",
20
+ "test": "cross-env NODE_ENV=test yarn jest --max-workers=2 --passWithNoTests && jest-coverage-thresholds-bumper"
19
21
  },
20
22
  "devDependencies": {
21
- "@tsed/cli": "4.5.2",
22
- "@tsed/cli-core": "4.5.2"
23
+ "@tsed/cli": "4.5.4",
24
+ "@tsed/cli-core": "4.5.4",
25
+ "@tsed/eslint": "4.5.4",
26
+ "@tsed/jest-config": "4.5.4",
27
+ "@tsed/typescript": "4.5.4",
28
+ "cross-env": "7.0.3",
29
+ "eslint": "8.22.0",
30
+ "jest": "29.5.0"
23
31
  },
24
32
  "dependencies": {
25
33
  "tslib": "2.3.1"
@@ -0,0 +1,5 @@
1
+ import {getTemplateDirectory} from "@tsed/cli-core";
2
+ import path from "node:path";
3
+ import {fileURLToPath} from "node:url";
4
+
5
+ export const TEMPLATE_DIR = getTemplateDirectory(path.dirname(fileURLToPath(import.meta.url)));
@@ -0,0 +1,39 @@
1
+ {
2
+ "extends": "@tsed/typescript/tsconfig.node.json",
3
+ "compilerOptions": {
4
+ "baseUrl": ".",
5
+ "module": "ES2020",
6
+ "rootDir": "src",
7
+ "outDir": "./lib/esm",
8
+ "declaration": true,
9
+ "declarationDir": "./lib/types",
10
+ "composite": true,
11
+ "noEmit": false
12
+ },
13
+ "include": [
14
+ "src",
15
+ "src/**/*.json"
16
+ ],
17
+ "exclude": [
18
+ "node_modules",
19
+ "test",
20
+ "lib",
21
+ "benchmark",
22
+ "coverage",
23
+ "spec",
24
+ "**/*.benchmark.ts",
25
+ "**/*.spec.ts",
26
+ "keys",
27
+ "jest.config.js",
28
+ "**/__mock__/**",
29
+ "webpack.config.js"
30
+ ],
31
+ "references": [
32
+ {
33
+ "path": "../cli"
34
+ },
35
+ {
36
+ "path": "../cli-core"
37
+ }
38
+ ]
39
+ }
@@ -1,12 +0,0 @@
1
- {
2
- "extends": "./tsconfig.compile.json",
3
- "compilerOptions": {
4
- "baseUrl": ".",
5
- "module": "ES2020",
6
- "rootDir": "src",
7
- "outDir": "./lib/esm",
8
- "declaration": true,
9
- "declarationDir": "./lib/types"
10
- },
11
- "exclude": ["node_modules", "test", "lib", "coverage", ".nyc_output", "**/*.spec.ts", "jest.config.js"]
12
- }