@naturalcycles/dev-lib 19.32.0 → 19.33.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.
@@ -2,6 +2,7 @@
2
2
  // tsconfig.json for /scripts
3
3
  //
4
4
  {
5
- "extends": "@naturalcycles/dev-lib/scripts/tsconfig.json",
5
+ "extends": "@naturalcycles/dev-lib/cfg/tsconfig.scripts.json",
6
+ "compilerOptions": {},
6
7
  "exclude": ["**/__exclude"]
7
8
  }
@@ -0,0 +1,15 @@
1
+ //
2
+ // @naturalcycles/dev-lib/cfg/tsconfig.backend.json
3
+ //
4
+ // Shared tsconfig for Backend services
5
+ //
6
+ {
7
+ "compilerOptions": {
8
+ "paths": {
9
+ "@src/*": ["${configDir}/src/*"]
10
+ }
11
+ }
12
+ // Need to be specified in the project tsconfig
13
+ // "include": ["src"],
14
+ // "exclude": ["**/__exclude"]
15
+ }
@@ -0,0 +1,14 @@
1
+ //
2
+ // @naturalcycles/dev-lib/cfg/tsconfig.e2e.json
3
+ //
4
+ {
5
+ "extends": "./tsconfig.json",
6
+ "compilerOptions": {
7
+ "rootDir": "${configDir}/..",
8
+ "baseUrl": "${configDir}",
9
+ "outDir": "${configDir}/../dist/e2e",
10
+ "noEmit": true,
11
+ "tsBuildInfoFile": "${configDir}/../node_modules/.cache/e2e.tsbuildinfo"
12
+ },
13
+ "exclude": ["**/__exclude"]
14
+ }
@@ -0,0 +1,17 @@
1
+ //
2
+ // @naturalcycles/dev-lib/cfg/tsconfig.frontend.json
3
+ //
4
+ // Shared tsconfig for Frontend applications
5
+ //
6
+ {
7
+ "compilerOptions": {
8
+ "noEmit": true,
9
+ "target": "es2023", // es2023+ browsers, adjust to your requirements!
10
+ "lib": ["esnext", "dom", "dom.iterable"],
11
+ "module": "esnext",
12
+ "moduleResolution": "bundler"
13
+ }
14
+ // Need to be specified in the project tsconfig
15
+ // "include": ["src"],
16
+ // "exclude": ["**/__exclude"]
17
+ }
package/cfg/tsconfig.json CHANGED
@@ -5,10 +5,9 @@
5
5
  //
6
6
  {
7
7
  "compilerOptions": {
8
- // ${configDir} is supported since ts 5.5
9
8
  "rootDir": "${configDir}/src",
9
+ "baseUrl": "${configDir}/src",
10
10
  "outDir": "${configDir}/dist",
11
-
12
11
  // Target/module
13
12
  "target": "es2023",
14
13
  "lib": ["esnext"], // add "dom" if needed
@@ -45,17 +44,11 @@
45
44
  "noUncheckedSideEffectImports": true,
46
45
  "noPropertyAccessFromIndexSignature": true,
47
46
 
48
- // todo: monitor if we should have it default or not
49
47
  // Enabled should be faster, but will catch less errors
50
48
  // "skipLibCheck": true,
51
49
 
52
- // Need to be specified in the project tsconfig
53
- // "typeRoots": [
54
- // "node_modules/@types",
55
- // "src/@types"
56
- // ],
57
-
58
50
  // Other
51
+ "jsx": "preserve",
59
52
  "incremental": true,
60
53
  "tsBuildInfoFile": "${configDir}/node_modules/.cache/src.tsbuildinfo",
61
54
  "pretty": true,
@@ -0,0 +1,14 @@
1
+ //
2
+ // @naturalcycles/dev-lib/cfg/tsconfig.scripts.json
3
+ //
4
+ {
5
+ "extends": "./tsconfig.json",
6
+ "compilerOptions": {
7
+ "rootDir": "${configDir}/..",
8
+ "baseUrl": "${configDir}",
9
+ "outDir": "${configDir}/../dist/scripts",
10
+ "noEmit": true,
11
+ "tsBuildInfoFile": "${configDir}/../node_modules/.cache/scripts.tsbuildinfo"
12
+ },
13
+ "exclude": ["**/__exclude"]
14
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "19.32.0",
4
+ "version": "19.33.0",
5
5
  "dependencies": {
6
6
  "@biomejs/biome": "^2",
7
7
  "@commitlint/cli": "^19",
@@ -53,8 +53,11 @@
53
53
  "./cfg/prettier.config.js": "./cfg/prettier.config.js",
54
54
  "./cfg/stylelint.config.js": "./cfg/stylelint.config.js",
55
55
  "./cfg/tsconfig.json": "./cfg/tsconfig.json",
56
+ "./cfg/tsconfig.scripts.json": "./cfg/tsconfig.scripts.json",
57
+ "./cfg/tsconfig.e2e.json": "./cfg/tsconfig.e2e.json",
58
+ "./cfg/tsconfig.backend.json": "./cfg/tsconfig.backend.json",
59
+ "./cfg/tsconfig.frontend.json": "./cfg/tsconfig.frontend.json",
56
60
  "./cfg/vitest.config.js": "./cfg/vitest.config.js",
57
- "./scripts/tsconfig.json": "./scripts/tsconfig.json",
58
61
  ".": "./dist/index.js",
59
62
  "./testing": "./dist/testing/index.js",
60
63
  "./testing/time": "./dist/testing/time.js",
@@ -2,12 +2,7 @@
2
2
  // tsconfig.json for /scripts
3
3
  //
4
4
  {
5
- "extends": "../cfg/tsconfig.json",
6
- "compilerOptions": {
7
- "rootDir": "${configDir}/..",
8
- "outDir": "${configDir}/../dist/scripts",
9
- "noEmit": true,
10
- "tsBuildInfoFile": "${configDir}/../node_modules/.cache/scripts.tsbuildinfo"
11
- },
5
+ "extends": "../cfg/tsconfig.scripts.json",
6
+ "compilerOptions": {},
12
7
  "exclude": ["**/__exclude"]
13
8
  }