@athenna/tsconfig 4.1.0 → 4.3.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/config/tsconfig.app-slim.json +12 -0
- package/config/tsconfig.app.json +20 -0
- package/{tsconfig.base.json → config/tsconfig.base.json} +5 -5
- package/config/tsconfig.lib.build.json +14 -0
- package/config/tsconfig.lib.json +14 -0
- package/package.json +10 -8
- package/src/index.js +13 -0
- package/tsconfig.app.json +0 -20
- package/tsconfig.lib.json +0 -14
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": false,
|
|
5
|
+
"sourceMap": true,
|
|
6
|
+
"paths": {
|
|
7
|
+
"#app/*": ["../../../../app/*.ts"],
|
|
8
|
+
"#bootstrap/*": ["../../../../bootstrap/*.ts"],
|
|
9
|
+
"#config/*": ["../../../../config/*.ts"],
|
|
10
|
+
"#database/*": ["../../../../database/*.ts"],
|
|
11
|
+
"#lang/*": ["../../../../lang/*.ts"],
|
|
12
|
+
"#providers/*": ["../../../../providers/*.ts"],
|
|
13
|
+
"#facades/*": ["../../../../facades/*.ts"],
|
|
14
|
+
"#resources/*": ["../../../../resources/*.ts"],
|
|
15
|
+
"#routes/*": ["../../../../routes/*.ts"],
|
|
16
|
+
"#storage/*": ["../../../../storage/*.ts"],
|
|
17
|
+
"#tests/*": ["../../../../tests/*.ts"]
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
},
|
|
7
7
|
"compilerOptions": {
|
|
8
8
|
"strict": false,
|
|
9
|
-
"rootDir": "
|
|
10
|
-
"baseUrl": "
|
|
11
|
-
"outDir": "build",
|
|
9
|
+
"rootDir": "../../../../",
|
|
10
|
+
"baseUrl": "../../../../",
|
|
11
|
+
"outDir": "../../../../build",
|
|
12
12
|
"module": "NodeNext",
|
|
13
13
|
"target": "ESNext",
|
|
14
14
|
"moduleResolution": "NodeNext",
|
|
@@ -22,6 +22,6 @@
|
|
|
22
22
|
"verbatimModuleSyntax": true,
|
|
23
23
|
"forceConsistentCasingInFileNames": true
|
|
24
24
|
},
|
|
25
|
-
"include": ["
|
|
26
|
-
"exclude": ["build", "node_modules"]
|
|
25
|
+
"include": ["../../../../**/*"],
|
|
26
|
+
"exclude": ["../../../../build", "../../../../node_modules"]
|
|
27
27
|
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "../../../../tsconfig.json",
|
|
3
|
+
"include": [
|
|
4
|
+
"../../../../src",
|
|
5
|
+
"../../../../templates",
|
|
6
|
+
"../../../../configurer"
|
|
7
|
+
],
|
|
8
|
+
"exclude": [
|
|
9
|
+
"../../../../bin",
|
|
10
|
+
"../../../../build",
|
|
11
|
+
"../../../../tests",
|
|
12
|
+
"../../../../node_modules"
|
|
13
|
+
]
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "./tsconfig.base.json",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"declaration": false,
|
|
5
|
+
"sourceMap": true,
|
|
6
|
+
"paths": {
|
|
7
|
+
"#bin/*": ["../../../../bin/*.ts"],
|
|
8
|
+
"#src/*": ["../../../../src/*.ts"],
|
|
9
|
+
"#tests/*": ["../../../../tests/*.ts"],
|
|
10
|
+
"#src/types": ["../../../../src/types/index.ts"],
|
|
11
|
+
"#src/debug": ["../../../../src/debug/index.ts"],
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@athenna/tsconfig",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.3.0",
|
|
4
4
|
"description": "Exports the base TypeScript configuration for Athena applications and packages.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "João Lenon <lenon@athenna.io>",
|
|
@@ -14,17 +14,19 @@
|
|
|
14
14
|
"typescript"
|
|
15
15
|
],
|
|
16
16
|
"files": [
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"tsconfig.base.json"
|
|
17
|
+
"config/**",
|
|
18
|
+
"src/**"
|
|
20
19
|
],
|
|
21
20
|
"scripts": {},
|
|
21
|
+
"type": "module",
|
|
22
22
|
"exports": {
|
|
23
|
+
".": "./src/index.js",
|
|
23
24
|
"./package.json": "./package.json",
|
|
24
|
-
"./tsconfig.app.json": "./tsconfig.app.json",
|
|
25
|
-
"./tsconfig.app
|
|
26
|
-
"./tsconfig.base.json": "./tsconfig.base.json",
|
|
27
|
-
"./tsconfig.lib.json": "./tsconfig.lib.json"
|
|
25
|
+
"./tsconfig.app.json": "./config/tsconfig.app.json",
|
|
26
|
+
"./tsconfig.app-slim.json": "./config/tsconfig.app.slim.json",
|
|
27
|
+
"./tsconfig.base.json": "./config/tsconfig.base.json",
|
|
28
|
+
"./tsconfig.lib.json": "./config/tsconfig.lib.json",
|
|
29
|
+
"./tsconfig.lib.build.json": "./config/tsconfig.lib.build.json"
|
|
28
30
|
},
|
|
29
31
|
"devDependencies": {
|
|
30
32
|
"commitizen": "^4.2.6",
|
package/src/index.js
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @athenna/tsconfig
|
|
3
|
+
*
|
|
4
|
+
* (c) João Lenon <lenon@athenna.io>
|
|
5
|
+
*
|
|
6
|
+
* For the full copyright and license information, please view the LICENSE
|
|
7
|
+
* file that was distributed with this source code.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import { register } from 'node:module'
|
|
11
|
+
import { pathToFileURL } from 'node:url'
|
|
12
|
+
|
|
13
|
+
register('ts-node/esm', pathToFileURL('./'))
|
package/tsconfig.app.json
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": false,
|
|
5
|
-
"sourceMap": true,
|
|
6
|
-
"paths": {
|
|
7
|
-
"#app/*": ["./app/*.ts"],
|
|
8
|
-
"#bootstrap/*": ["./bootstrap/*.ts"],
|
|
9
|
-
"#config/*": ["./config/*.ts"],
|
|
10
|
-
"#database/*": ["./database/*.ts"],
|
|
11
|
-
"#lang/*": ["./lang/*.ts"],
|
|
12
|
-
"#providers/*": ["./providers/*.ts"],
|
|
13
|
-
"#facades/*": ["./facades/*.ts"],
|
|
14
|
-
"#resources/*": ["./resources/*.ts"],
|
|
15
|
-
"#routes/*": ["./routes/*.ts"],
|
|
16
|
-
"#storage/*": ["./storage/*.ts"],
|
|
17
|
-
"#tests/*": ["./tests/*.ts"]
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
package/tsconfig.lib.json
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.base.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"declaration": false,
|
|
5
|
-
"sourceMap": true,
|
|
6
|
-
"paths": {
|
|
7
|
-
"#bin/*": ["./bin/*.ts"],
|
|
8
|
-
"#src/*": ["./src/*.ts"],
|
|
9
|
-
"#tests/*": ["./tests/*.ts"],
|
|
10
|
-
"#src/types": ["./src/types/index.ts"],
|
|
11
|
-
"#src/debug": ["./src/debug/index.ts"],
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|