@4mbl/tsconfig 0.0.0-beta.1ef7e27 → 0.0.0-beta.3e77447
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/CHANGELOG.md +4 -1
- package/README.md +17 -0
- package/base.json +0 -2
- package/browser.json +1 -0
- package/next.json +1 -3
- package/node.json +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
# @4mbl/tsconfig Changelog
|
|
2
2
|
|
|
3
|
+
## 4.0.1
|
|
4
|
+
|
|
5
|
+
* Move `baseUrl` definition from the base template to child templates to improve Next.js support.
|
|
6
|
+
|
|
3
7
|
## 4.0.0
|
|
4
8
|
|
|
5
9
|
* Migrated from versioned templates to a single template per type. The package version is now used to determine the template version. This simplifies both the maintenance and usage of the package.
|
|
6
10
|
* Enabled the following options in the base template:
|
|
7
11
|
* `declarationMap`
|
|
8
|
-
* `composite`
|
|
9
12
|
* `tsBuildInfoFile` set to `node_modules/.tmp/tsbuildinfo`
|
|
10
13
|
* `verbatimModuleSyntax`
|
|
11
14
|
* `allowSyntheticDefaultImports`
|
package/README.md
CHANGED
|
@@ -39,6 +39,23 @@ Extends the base template with settings specific to browser and React applicatio
|
|
|
39
39
|
|
|
40
40
|
Extends the base template with settings from the Next.js app template.
|
|
41
41
|
|
|
42
|
+
[Next.js does not yet support tsconfig template variables](https://github.com/vercel/next.js/issues/70912), so you need to configure the path settings manually on the `tsconfig.json` file of your project.
|
|
43
|
+
|
|
44
|
+
```jsonc
|
|
45
|
+
{
|
|
46
|
+
"extends": "@4mbl/tsconfig/next",
|
|
47
|
+
"compilerOptions": {
|
|
48
|
+
"paths": {
|
|
49
|
+
"@/*": ["./src/*"]
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
|
|
53
|
+
"exclude": ["node_modules"]
|
|
54
|
+
}
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
The Next.js template should work without extra configuration as soon as Next.js supports tsconfig template variables. Until then, you need to set the paths settings manually.
|
|
58
|
+
|
|
42
59
|
## Versioning
|
|
43
60
|
|
|
44
61
|
As of version 4.0.0, the package migrated to a single template per type. The package version is now used to determine the template version. This simplifies both the maintenance and usage of the package.
|
package/base.json
CHANGED
|
@@ -8,7 +8,6 @@
|
|
|
8
8
|
"skipLibCheck": true,
|
|
9
9
|
"resolveJsonModule": true,
|
|
10
10
|
"moduleDetection": "force",
|
|
11
|
-
"baseUrl": "${configDir}/src",
|
|
12
11
|
"paths": {
|
|
13
12
|
"@/*": ["${configDir}/src/*"]
|
|
14
13
|
},
|
|
@@ -18,7 +17,6 @@
|
|
|
18
17
|
"outDir": "${configDir}/dist",
|
|
19
18
|
"sourceMap": true,
|
|
20
19
|
"declarationMap": true,
|
|
21
|
-
"composite": true,
|
|
22
20
|
"declaration": true,
|
|
23
21
|
"incremental": true,
|
|
24
22
|
"isolatedModules": true,
|
package/browser.json
CHANGED
package/next.json
CHANGED
package/node.json
CHANGED