@temir.ra/create-ts-lib 0.5.0 → 0.6.0
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 -0
- package/README.md +9 -5
- package/buildinfo.txt +1 -1
- package/package.json +2 -2
- package/template/package.json +1 -1
- package/template/tsconfig.json +38 -36
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -73,15 +73,16 @@ See the typescriptlang documentation on [tsconfig.json](https://www.typescriptla
|
|
|
73
73
|
|
|
74
74
|
"compilerOptions": {
|
|
75
75
|
|
|
76
|
-
// ECMAScript version of emitted output
|
|
77
|
-
"
|
|
76
|
+
// ECMAScript version of emitted output; ESNext targets the latest JS version supported by the TypeScript compiler
|
|
77
|
+
// if the package must support older runtimes or browsers, pin to a specific year (e.g. "ES2022", "ES2024")
|
|
78
|
+
"target": "ESNext",
|
|
78
79
|
|
|
79
80
|
// output module format; ESNext passes ES module syntax through unchanged
|
|
80
81
|
"module": "ESNext",
|
|
81
82
|
|
|
82
83
|
// type definitions for built-in APIs
|
|
83
84
|
"lib": [
|
|
84
|
-
"
|
|
85
|
+
"ESNext", // standard JavaScript runtime APIs
|
|
85
86
|
"DOM" // browser globals for bundled output
|
|
86
87
|
],
|
|
87
88
|
|
|
@@ -116,6 +117,9 @@ See the typescriptlang documentation on [tsconfig.json](https://www.typescriptla
|
|
|
116
117
|
// do not type-check `.d.ts` files in `node_modules/`
|
|
117
118
|
"skipLibCheck": true,
|
|
118
119
|
|
|
120
|
+
// TS6 defaults types to [] — @types/* packages must be listed explicitly
|
|
121
|
+
"types": ["bun"],
|
|
122
|
+
|
|
119
123
|
// enforce consistent casing across import statements
|
|
120
124
|
"forceConsistentCasingInFileNames": true,
|
|
121
125
|
|
|
@@ -133,7 +137,7 @@ See the typescriptlang documentation on [tsconfig.json](https://www.typescriptla
|
|
|
133
137
|
// output directory for emitted files
|
|
134
138
|
"outDir": "./dist",
|
|
135
139
|
|
|
136
|
-
// root directory mirrored into outDir; set to project root during development, overridden to src/ in tsconfig.build.json
|
|
140
|
+
// root directory mirrored into outDir; set to project root during development, overridden to src/ in tsconfig.build.json (TS6 default — not set in actual config)
|
|
137
141
|
"rootDir": ".",
|
|
138
142
|
|
|
139
143
|
},
|
|
@@ -272,7 +276,7 @@ See npmjs documentation on [package.json](https://docs.npmjs.com/cli/v11/configu
|
|
|
272
276
|
},
|
|
273
277
|
"devDependencies": {
|
|
274
278
|
"@types/bun": "latest",
|
|
275
|
-
"typescript": "^
|
|
279
|
+
"typescript": "^6.0.2"
|
|
276
280
|
}
|
|
277
281
|
}
|
|
278
282
|
```
|
package/buildinfo.txt
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.
|
|
1
|
+
0.6.0+bf23035
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@temir.ra/create-ts-lib",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.0",
|
|
4
4
|
"description": "Typescript library template",
|
|
5
5
|
"author": "temir.ra",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,6 +39,6 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@types/bun": "latest",
|
|
42
|
-
"typescript": "^
|
|
42
|
+
"typescript": "^6.0.2"
|
|
43
43
|
}
|
|
44
44
|
}
|
package/template/package.json
CHANGED
package/template/tsconfig.json
CHANGED
|
@@ -1,37 +1,39 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"target": "
|
|
4
|
-
"module": "ESNext",
|
|
5
|
-
"lib": [
|
|
6
|
-
"
|
|
7
|
-
"DOM"
|
|
8
|
-
],
|
|
9
|
-
"moduleResolution": "bundler",
|
|
10
|
-
"strict": true,
|
|
11
|
-
"verbatimModuleSyntax": true,
|
|
12
|
-
"noUncheckedIndexedAccess": true,
|
|
13
|
-
"exactOptionalPropertyTypes": true,
|
|
14
|
-
"noImplicitOverride": true,
|
|
15
|
-
"isolatedDeclarations": true,
|
|
16
|
-
"esModuleInterop": true,
|
|
17
|
-
"composite": true,
|
|
18
|
-
"skipLibCheck": true,
|
|
19
|
-
"
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ESNext",
|
|
4
|
+
"module": "ESNext",
|
|
5
|
+
"lib": [
|
|
6
|
+
"ESNext",
|
|
7
|
+
"DOM"
|
|
8
|
+
],
|
|
9
|
+
"moduleResolution": "bundler",
|
|
10
|
+
"strict": true,
|
|
11
|
+
"verbatimModuleSyntax": true,
|
|
12
|
+
"noUncheckedIndexedAccess": true,
|
|
13
|
+
"exactOptionalPropertyTypes": true,
|
|
14
|
+
"noImplicitOverride": true,
|
|
15
|
+
"isolatedDeclarations": true,
|
|
16
|
+
"esModuleInterop": true,
|
|
17
|
+
"composite": true,
|
|
18
|
+
"skipLibCheck": true,
|
|
19
|
+
"types": [
|
|
20
|
+
"bun"
|
|
21
|
+
],
|
|
22
|
+
"forceConsistentCasingInFileNames": true,
|
|
23
|
+
"resolveJsonModule": true,
|
|
24
|
+
"declaration": true,
|
|
25
|
+
"declarationMap": true,
|
|
26
|
+
"emitDeclarationOnly": true,
|
|
27
|
+
"outDir": "./dist",
|
|
28
|
+
},
|
|
29
|
+
"include": [
|
|
30
|
+
"src/**/*.ts",
|
|
31
|
+
"tests/**/*.ts",
|
|
32
|
+
"scripts/**/*.ts",
|
|
33
|
+
"scripts/**/*.json"
|
|
34
|
+
],
|
|
35
|
+
"exclude": [
|
|
36
|
+
"node_modules",
|
|
37
|
+
"dist"
|
|
38
|
+
]
|
|
37
39
|
}
|