@mkappelhof/ts-config 1.0.3 → 1.0.4
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/.turbo/turbo-build.log +10 -0
- package/CHANGELOG.md +6 -0
- package/README.md +15 -0
- package/dist/CHANGELOG.md +7 -0
- package/dist/base.json +39 -0
- package/dist/next.json +17 -0
- package/dist/node.json +10 -0
- package/dist/package.json +16 -0
- package/dist/react.json +11 -0
- package/package.json +1 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
$ rollup -c
|
|
2
|
+
[36m
|
|
3
|
+
[1m./base.json[22m → [1m./dist/base.json[22m...[39m
|
|
4
|
+
[1m[33m(!) Mixing named and default exports[39m[22m
|
|
5
|
+
[90mhttps://rollupjs.org/configuration-options/#output-exports[39m
|
|
6
|
+
[1mThe following entry modules are using named and default exports together:[22m
|
|
7
|
+
base.json
|
|
8
|
+
|
|
9
|
+
Consumers of your bundle will have to use chunk.default to access their default export, which may not be what you want. Use `output.exports: "named"` to disable this warning.
|
|
10
|
+
[32mcreated [1m./dist/base.json[22m in [1m24ms[22m[39m
|
package/CHANGELOG.md
CHANGED
package/README.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
# Shared Typescript configurations
|
|
2
|
+
|
|
3
|
+
## Installation
|
|
4
|
+
|
|
5
|
+
Add the package as a local dev dependency
|
|
6
|
+
|
|
7
|
+
`yarn add @mkappelhof/ts-config`
|
|
8
|
+
|
|
9
|
+
Then create a `.tsconfig.json` config file with the following content:
|
|
10
|
+
|
|
11
|
+
```JSON
|
|
12
|
+
{
|
|
13
|
+
"extends": "@mkappelhof/ts-config/next.json",
|
|
14
|
+
}
|
|
15
|
+
```
|
package/dist/base.json
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var $schema = "https://json.schemastore.org/tsconfig";
|
|
6
|
+
var display = "Default";
|
|
7
|
+
var compilerOptions = {
|
|
8
|
+
allowJs: true,
|
|
9
|
+
composite: false,
|
|
10
|
+
declaration: true,
|
|
11
|
+
declarationMap: true,
|
|
12
|
+
esModuleInterop: true,
|
|
13
|
+
forceConsistentCasingInFileNames: true,
|
|
14
|
+
inlineSources: false,
|
|
15
|
+
isolatedModules: true,
|
|
16
|
+
moduleResolution: "node",
|
|
17
|
+
noEmit: true,
|
|
18
|
+
noUnusedLocals: false,
|
|
19
|
+
noUnusedParameters: false,
|
|
20
|
+
preserveWatchOutput: true,
|
|
21
|
+
resolveJsonModule: true,
|
|
22
|
+
skipLibCheck: true,
|
|
23
|
+
strict: true
|
|
24
|
+
};
|
|
25
|
+
var exclude = [
|
|
26
|
+
"node_modules"
|
|
27
|
+
];
|
|
28
|
+
var base = {
|
|
29
|
+
$schema: $schema,
|
|
30
|
+
display: display,
|
|
31
|
+
compilerOptions: compilerOptions,
|
|
32
|
+
exclude: exclude
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
exports.$schema = $schema;
|
|
36
|
+
exports.compilerOptions = compilerOptions;
|
|
37
|
+
exports.default = base;
|
|
38
|
+
exports.display = display;
|
|
39
|
+
exports.exclude = exclude;
|
package/dist/next.json
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"display": "React Library",
|
|
4
|
+
"extends": "./base.json",
|
|
5
|
+
"compilerOptions": {
|
|
6
|
+
"incremental": true,
|
|
7
|
+
"jsx": "preserve",
|
|
8
|
+
"lib": ["dom", "ES2015"],
|
|
9
|
+
"module": "ESNext",
|
|
10
|
+
"target": "es6"
|
|
11
|
+
},
|
|
12
|
+
"plugins": [
|
|
13
|
+
{
|
|
14
|
+
"name": "next"
|
|
15
|
+
}
|
|
16
|
+
]
|
|
17
|
+
}
|
package/dist/node.json
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@mkappelhof/ts-config",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"main": "base.json",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"build": "rollup -c",
|
|
8
|
+
"test": "echo 'No test step'"
|
|
9
|
+
},
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"typescript": "5.1.6"
|
|
12
|
+
},
|
|
13
|
+
"devDependencies": {
|
|
14
|
+
"@rollup/plugin-json": "6.0.0"
|
|
15
|
+
}
|
|
16
|
+
}
|
package/dist/react.json
ADDED