@omnific/tsconfig 0.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 +24 -0
- package/base.json +24 -0
- package/browser.json +8 -0
- package/node.json +10 -0
- package/package.json +33 -0
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @omnific/tsconfig
|
|
2
|
+
|
|
3
|
+
Shared TypeScript configuration presets for Omnific packages.
|
|
4
|
+
|
|
5
|
+
## Presets
|
|
6
|
+
|
|
7
|
+
- `@omnific/tsconfig/browser.json`
|
|
8
|
+
- `@omnific/tsconfig/node.json`
|
|
9
|
+
|
|
10
|
+
## Notes
|
|
11
|
+
|
|
12
|
+
- `@omnific/tsconfig/browser.json` does not require extra global type packages.
|
|
13
|
+
- Projects that extend `@omnific/tsconfig/node.json` should install `@types/node` in the consuming workspace.
|
|
14
|
+
- If a preset references additional entries in `compilerOptions.types`, the consuming project is responsible for providing those packages.
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```json
|
|
19
|
+
{
|
|
20
|
+
"extends": "@omnific/tsconfig/browser.json",
|
|
21
|
+
"include": ["./**/*.ts"],
|
|
22
|
+
"exclude": ["./dist"]
|
|
23
|
+
}
|
|
24
|
+
```
|
package/base.json
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json.schemastore.org/tsconfig",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"target": "ES2022",
|
|
5
|
+
"module": "ESNext",
|
|
6
|
+
"moduleDetection": "force",
|
|
7
|
+
"strict": true,
|
|
8
|
+
"declaration": true,
|
|
9
|
+
"noEmit": true,
|
|
10
|
+
"isolatedDeclarations": false,
|
|
11
|
+
"isolatedModules": true,
|
|
12
|
+
"verbatimModuleSyntax": true,
|
|
13
|
+
"exactOptionalPropertyTypes": true,
|
|
14
|
+
"noUncheckedIndexedAccess": true,
|
|
15
|
+
"noImplicitOverride": true,
|
|
16
|
+
"noImplicitReturns": true,
|
|
17
|
+
"esModuleInterop": true,
|
|
18
|
+
"allowSyntheticDefaultImports": true,
|
|
19
|
+
"forceConsistentCasingInFileNames": true,
|
|
20
|
+
"skipLibCheck": true,
|
|
21
|
+
"resolveJsonModule": true,
|
|
22
|
+
"noFallthroughCasesInSwitch": true
|
|
23
|
+
}
|
|
24
|
+
}
|
package/browser.json
ADDED
package/node.json
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@omnific/tsconfig",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Shared TypeScript configuration presets for Omnific packages",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"typescript",
|
|
9
|
+
"tsconfig"
|
|
10
|
+
],
|
|
11
|
+
"author": "monhan-97",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/monhan-97/omnific.git",
|
|
15
|
+
"directory": "packages/tsconfig"
|
|
16
|
+
},
|
|
17
|
+
"bugs": {
|
|
18
|
+
"url": "https://github.com/monhan-97/omnific.git/issues"
|
|
19
|
+
},
|
|
20
|
+
"files": [
|
|
21
|
+
"base.json",
|
|
22
|
+
"browser.json",
|
|
23
|
+
"node.json",
|
|
24
|
+
"README.md"
|
|
25
|
+
],
|
|
26
|
+
"exports": {
|
|
27
|
+
"./browser.json": "./browser.json",
|
|
28
|
+
"./node.json": "./node.json"
|
|
29
|
+
},
|
|
30
|
+
"peerDependencies": {
|
|
31
|
+
"typescript": ">=6.0.0"
|
|
32
|
+
}
|
|
33
|
+
}
|