@checkdigit/typescript-config 3.2.0-PR.23-dcac → 3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- package/LICENSE.txt +1 -1
- package/README.md +3 -4
- package/package.json +41 -1
- package/tsconfig.json +3 -4
- package/src/module-directory/index.ts +0 -3
- package/src/module.ts +0 -9
package/LICENSE.txt
CHANGED
package/README.md
CHANGED
@@ -2,16 +2,15 @@
|
|
2
2
|
|
3
3
|
[![MIT License](https://img.shields.io/github/license/checkdigit/typescript-config)](https://github.com/checkdigit/typescript-config/blob/master/LICENSE.txt)
|
4
4
|
|
5
|
-
Copyright (c) 2023 [Check Digit, LLC](https://checkdigit.com)
|
5
|
+
Copyright (c) 2022-2023 [Check Digit, LLC](https://checkdigit.com)
|
6
6
|
|
7
7
|
### Introduction
|
8
8
|
|
9
9
|
This module contains the standard Check Digit Typescript configuration.
|
10
10
|
|
11
|
-
- requires Node
|
11
|
+
- requires Node 16 or above
|
12
12
|
- emits ES2022
|
13
|
-
- uses `
|
14
|
-
- uses the `moduleResoltion` of `bundler`
|
13
|
+
- uses the `module` type of `commonjs`.
|
15
14
|
- all compiler options set for maximum strictness
|
16
15
|
|
17
16
|
#### A note about versioning
|
package/package.json
CHANGED
@@ -1 +1,41 @@
|
|
1
|
-
{
|
1
|
+
{
|
2
|
+
"name": "@checkdigit/typescript-config",
|
3
|
+
"version": "3.3.0",
|
4
|
+
"description": "Check Digit standard Typescript configuration",
|
5
|
+
"prettier": "@checkdigit/prettier-config",
|
6
|
+
"engines": {
|
7
|
+
"node": ">=16"
|
8
|
+
},
|
9
|
+
"peerDependencies": {
|
10
|
+
"@types/node": ">=16",
|
11
|
+
"typescript": ">=5.0.2 <5.1"
|
12
|
+
},
|
13
|
+
"repository": {
|
14
|
+
"type": "git",
|
15
|
+
"url": "git+https://github.com/checkdigit/typescript-config.git"
|
16
|
+
},
|
17
|
+
"author": "Check Digit, LLC",
|
18
|
+
"license": "MIT",
|
19
|
+
"bugs": {
|
20
|
+
"url": "https://github.com/checkdigit/typescript-config/issues"
|
21
|
+
},
|
22
|
+
"homepage": "https://github.com/checkdigit/typescript-config#readme",
|
23
|
+
"scripts": {
|
24
|
+
"preversion": "npm test",
|
25
|
+
"postversion": "git push && git push --tags",
|
26
|
+
"prettier": "prettier --list-different .",
|
27
|
+
"prettier:fix": "prettier --write .",
|
28
|
+
"test": "npm run ci:compile && npm run ci:test && npm run ci:style",
|
29
|
+
"ci:compile": "tsc --noEmit",
|
30
|
+
"ci:test": "tsc && node build/index.js | grep -q 'complete' && rimraf build",
|
31
|
+
"ci:style": "npm run prettier"
|
32
|
+
},
|
33
|
+
"devDependencies": {
|
34
|
+
"@checkdigit/prettier-config": "^3.3.0",
|
35
|
+
"rimraf": "^4.4.0"
|
36
|
+
},
|
37
|
+
"files": [
|
38
|
+
"tsconfig.json",
|
39
|
+
"SECURITY.md"
|
40
|
+
]
|
41
|
+
}
|
package/tsconfig.json
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"compilerOptions": {
|
3
|
-
"
|
4
|
-
"
|
5
|
-
"moduleResolution": "bundler",
|
3
|
+
"module": "commonjs",
|
4
|
+
"target": "es2022",
|
6
5
|
"lib": ["esnext", "dom", "webworker"],
|
7
6
|
"sourceMap": true,
|
8
7
|
"inlineSources": true,
|
@@ -19,7 +18,7 @@
|
|
19
18
|
"noUnusedLocals": true,
|
20
19
|
"noUnusedParameters": true,
|
21
20
|
"alwaysStrict": true,
|
22
|
-
"verbatimModuleSyntax":
|
21
|
+
"verbatimModuleSyntax": false,
|
23
22
|
"noFallthroughCasesInSwitch": true,
|
24
23
|
"forceConsistentCasingInFileNames": true,
|
25
24
|
"emitDecoratorMetadata": true,
|