@2bad/tsconfig 1.5.1 → 2.0.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.
package/README.md CHANGED
@@ -16,8 +16,26 @@ $ npm install --save-dev @2bad/tsconfig
16
16
  {
17
17
  "extends": "@2bad/tsconfig",
18
18
  "compilerOptions": {
19
- "outDir": "build"
19
+ "outDir": "build",
20
+ "baseUrl": "source"
21
+ }
22
+ }
23
+ ```
24
+
25
+ If you're willing to use path mapping, you should install [tsc-alias](https://github.com/justkey007/tsc-alias) and update the configuration accordingly.
26
+
27
+ ```json
28
+ {
29
+ "extends": "@2bad/tsconfig",
30
+ "compilerOptions": {
31
+ "outDir": "build",
32
+ "baseUrl": "source",
33
+ "paths": {
34
+ "~/*": ["./*"]
35
+ }
20
36
  },
21
- "include": ["source", "test"]
37
+ "tsc-alias": {
38
+ "resolveFullPaths": true
39
+ }
22
40
  }
23
41
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@2bad/tsconfig",
3
- "version": "1.5.1",
3
+ "version": "2.0.1",
4
4
  "description": "Shared TypeScript config",
5
5
  "keywords": [
6
6
  "tsconfig",
@@ -28,5 +28,11 @@
28
28
  "main": "tsconfig.json",
29
29
  "files": [
30
30
  "tsconfig.json"
31
- ]
31
+ ],
32
+ "engines": {
33
+ "node": ">=18"
34
+ },
35
+ "volta": {
36
+ "node": "20.5.1"
37
+ }
32
38
  }
package/tsconfig.json CHANGED
@@ -11,7 +11,7 @@
11
11
  // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
12
12
 
13
13
  /* Language and Environment */
14
- "target": "esnext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
14
+ "target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15
15
  // "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16
16
  // "jsx": "preserve", /* Specify what JSX code is generated. */
17
17
  // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
@@ -25,9 +25,9 @@
25
25
  // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
26
26
 
27
27
  /* Modules */
28
- "module": "esnext", /* Specify what module code is generated. */
28
+ "module": "NodeNext", /* Specify what module code is generated. */
29
29
  // "rootDir": "./", /* Specify the root folder within your source files. */
30
- "moduleResolution": "node", /* Specify how TypeScript looks up a file from a given module specifier. */
30
+ "moduleResolution": "NodeNext", /* Specify how TypeScript looks up a file from a given module specifier. */
31
31
  // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32
32
  // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
33
33
  // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
@@ -59,7 +59,7 @@
59
59
  // "removeComments": true, /* Disable emitting comments. */
60
60
  // "noEmit": true, /* Disable emitting files from a compilation. */
61
61
  // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */
62
- // "importsNotUsedAsValues": "error", /* Specify emit/checking behavior for imports that are only used for types. */
62
+ // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */
63
63
  // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */
64
64
  // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */
65
65
  // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */