@4mbl/tsconfig 0.0.0-beta.9ca1891 → 0.0.0-beta.a033250

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/package.json CHANGED
@@ -1,22 +1,33 @@
1
1
  {
2
2
  "name": "@4mbl/tsconfig",
3
- "version": "0.0.0-beta.9ca1891",
3
+ "version": "0.0.0-beta.a033250",
4
4
  "description": "Strict TypeScript configuration for various environments.",
5
5
  "type": "module",
6
6
  "author": "4mbl",
7
7
  "license": "MIT",
8
- "homepage": "https://github.com/4mbl/tsconfig#readme",
8
+ "homepage": "https://github.com/4mbl/config/tree/main/packages/tsconfig#readme",
9
+ "exports": {
10
+ "./browser": "./dist/browser.json",
11
+ "./next": "./dist/next.json",
12
+ "./node": "./dist/node.json",
13
+ "./vite-react/app": "./dist/vite-react/app.json",
14
+ "./vite-react/node": "./dist/vite-react/node.json"
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "package.json",
19
+ "README.md",
20
+ "CHANGELOG.md"
21
+ ],
9
22
  "repository": {
10
23
  "type": "git",
11
- "url": "git+https://github.com/4mbl/tsconfig.git"
24
+ "url": "git+https://github.com/4mbl/config.git",
25
+ "directory": "packages/tsconfig"
12
26
  },
13
27
  "keywords": [
14
28
  "typescript",
15
29
  "tsconfig"
16
30
  ],
17
- "scripts": {
18
- "build": "cp -r templates/* ."
19
- },
20
31
  "peerDependencies": {
21
32
  "typescript": ">=5.8.0"
22
33
  },
@@ -24,5 +35,8 @@
24
35
  "typescript": {
25
36
  "optional": true
26
37
  }
38
+ },
39
+ "scripts": {
40
+ "build": "rm -rf dist && mkdir dist && cp -r templates/* dist/ && node scripts/generate-exports.mjs"
27
41
  }
28
- }
42
+ }
package/base.json DELETED
@@ -1,43 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "display": "Base",
4
- "compilerOptions": {
5
- /* Base Options */
6
- "lib": ["ESNext"],
7
- "allowJs": true,
8
- "skipLibCheck": true,
9
- "resolveJsonModule": true,
10
- "moduleDetection": "force",
11
- "paths": {
12
- "@/*": ["${configDir}/src/*"]
13
- },
14
-
15
- /* Output */
16
- "target": "ES6",
17
- "outDir": "${configDir}/dist",
18
- "sourceMap": true,
19
- "declarationMap": true,
20
- "declaration": true,
21
- "incremental": true,
22
- "isolatedModules": true,
23
- "esModuleInterop": true,
24
- "tsBuildInfoFile": "${configDir}/node_modules/.tmp/tsconfig.tsbuildinfo",
25
- "verbatimModuleSyntax": true,
26
-
27
- /* Linting */
28
- "strict": true,
29
- "checkJs": true,
30
- "erasableSyntaxOnly": true,
31
- "forceConsistentCasingInFileNames": true,
32
- "allowSyntheticDefaultImports": true,
33
- "noFallthroughCasesInSwitch": true,
34
- "noImplicitAny": true,
35
- "noImplicitOverride": true,
36
- "noImplicitReturns": false,
37
- "noUnusedLocals": true,
38
- "noUnusedParameters": true,
39
- "noUncheckedIndexedAccess": true
40
- },
41
- "include": ["${configDir}/src/**/*"],
42
- "exclude": ["${configDir}/node_modules"]
43
- }
package/browser.json DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "display": "Browser",
4
- "extends": "./base.json",
5
- "compilerOptions": {
6
- "lib": ["DOM", "DOM.Iterable", "ESNext"],
7
- "jsx": "react-jsx",
8
- "module": "ESNext",
9
- "moduleResolution": "Bundler",
10
- "baseUrl": "${configDir}/src",
11
- "noEmit": true,
12
- "sourceMap": true
13
- }
14
- }
package/next.json DELETED
@@ -1,35 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "display": "Next.js",
4
- "extends": "./base.json",
5
- "compilerOptions": {
6
- "target": "ES2017",
7
- "lib": ["dom", "dom.iterable", "esnext"],
8
- "allowJs": true,
9
- "skipLibCheck": true,
10
- "strict": true,
11
- "noEmit": true,
12
- "esModuleInterop": true,
13
- "module": "preserve",
14
- "moduleResolution": "bundler",
15
- "resolveJsonModule": true,
16
- "isolatedModules": true,
17
- "jsx": "preserve",
18
- "incremental": true,
19
- "plugins": [
20
- {
21
- "name": "next"
22
- }
23
- ],
24
- "paths": {
25
- "@/*": ["${configDir}/src/*"]
26
- }
27
- },
28
- "include": [
29
- "${configDir}/next-env.d.ts",
30
- "${configDir}/**/*.ts",
31
- "${configDir}/**/*.tsx",
32
- "${configDir}/.next/types/**/*.ts"
33
- ],
34
- "exclude": ["${configDir}/node_modules"]
35
- }
package/node.json DELETED
@@ -1,11 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "display": "Node",
4
- "extends": "./base.json",
5
- "compilerOptions": {
6
- "target": "ESNext",
7
- "moduleResolution": "NodeNext",
8
- "module": "NodeNext",
9
- "baseUrl": "${configDir}/src"
10
- }
11
- }
@@ -1,22 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "display": "Vite React (App)",
4
- "extends": "../base.json",
5
- "compilerOptions": {
6
- "tsBuildInfoFile": "${configDir}/node_modules/.tmp/tsconfig.app.tsbuildinfo",
7
- "target": "ES2022",
8
- "useDefineForClassFields": true,
9
- "lib": ["ES2022", "DOM", "DOM.Iterable"],
10
- "module": "ESNext",
11
-
12
- /* Bundler mode */
13
- "moduleResolution": "bundler",
14
- "allowImportingTsExtensions": true,
15
- "noEmit": true,
16
- "jsx": "react-jsx",
17
-
18
- /* Linting */
19
- "noUncheckedSideEffectImports": true
20
- },
21
- "include": ["${configDir}/src"]
22
- }
@@ -1,20 +0,0 @@
1
- {
2
- "$schema": "https://json.schemastore.org/tsconfig",
3
- "display": "Vite React (Node)",
4
- "extends": "../base.json",
5
- "compilerOptions": {
6
- "tsBuildInfoFile": "${configDir}/node_modules/.tmp/tsconfig.node.tsbuildinfo",
7
- "target": "ES2023",
8
- "lib": ["ES2023"],
9
- "module": "ESNext",
10
-
11
- /* Bundler mode */
12
- "moduleResolution": "bundler",
13
- "allowImportingTsExtensions": true,
14
- "noEmit": true,
15
-
16
- /* Linting */
17
- "noUncheckedSideEffectImports": true
18
- },
19
- "include": ["${configDir}/vite.config.ts"]
20
- }