@naturalcycles/dev-lib 19.32.0 → 19.33.1

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,12 @@
1
+ //
2
+ // @naturalcycles/dev-lib/cfg/tsconfig.backend.json
3
+ //
4
+ // Shared tsconfig for Backend services
5
+ //
6
+ {
7
+ "extends": "./tsconfig.json",
8
+ "compilerOptions": {}
9
+ // Need to be specified in the project tsconfig
10
+ // "include": ["src"],
11
+ // "exclude": ["**/__exclude"]
12
+ }
@@ -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,18 @@
1
+ //
2
+ // @naturalcycles/dev-lib/cfg/tsconfig.frontend.json
3
+ //
4
+ // Shared tsconfig for Frontend applications
5
+ //
6
+ {
7
+ "extends": "./tsconfig.json",
8
+ "compilerOptions": {
9
+ "noEmit": true,
10
+ "target": "es2023", // es2023+ browsers, adjust to your requirements!
11
+ "lib": ["esnext", "dom", "dom.iterable"],
12
+ "module": "esnext",
13
+ "moduleResolution": "bundler"
14
+ }
15
+ // Need to be specified in the project tsconfig
16
+ // "include": ["src"],
17
+ // "exclude": ["**/__exclude"]
18
+ }
package/cfg/tsconfig.json CHANGED
@@ -5,10 +5,12 @@
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
-
11
+ "paths": {
12
+ "@src/*": ["${configDir}/src/*"]
13
+ },
12
14
  // Target/module
13
15
  "target": "es2023",
14
16
  "lib": ["esnext"], // add "dom" if needed
@@ -45,17 +47,11 @@
45
47
  "noUncheckedSideEffectImports": true,
46
48
  "noPropertyAccessFromIndexSignature": true,
47
49
 
48
- // todo: monitor if we should have it default or not
49
50
  // Enabled should be faster, but will catch less errors
50
51
  // "skipLibCheck": true,
51
52
 
52
- // Need to be specified in the project tsconfig
53
- // "typeRoots": [
54
- // "node_modules/@types",
55
- // "src/@types"
56
- // ],
57
-
58
53
  // Other
54
+ "jsx": "preserve",
59
55
  "incremental": true,
60
56
  "tsBuildInfoFile": "${configDir}/node_modules/.cache/src.tsbuildinfo",
61
57
  "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.1",
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
  }