@jupiterone/typescript-tools 18.1.1 → 19.0.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 +6 -1
- package/README.md +2 -2
- package/config/babel-util.js +1 -1
- package/config/typescript-node20-monorepo.json +8 -0
- package/config/typescript-node20.json +7 -0
- package/config/typescript.json +2 -3
- package/dist/src/readJsonFileForCli.d.ts +1 -1
- package/dist/src/readMonorepoPackagesForCli.d.ts +1 -1
- package/package.json +21 -19
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
|
6
6
|
and this project adheres to
|
|
7
7
|
[Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
8
8
|
|
|
9
|
+
# 19.0.0
|
|
10
|
+
|
|
11
|
+
- Upgrade to typescript v5
|
|
12
|
+
- **BREAKING:** Use `tspc` instead of `ttsc`
|
|
13
|
+
|
|
9
14
|
## 18.0.0
|
|
10
15
|
|
|
11
16
|
- Add support for Node 18 typescript and eslint configuration
|
|
@@ -128,7 +133,7 @@ If you are building a shareable package use the following command to compile
|
|
|
128
133
|
your typescript files:
|
|
129
134
|
|
|
130
135
|
```sh
|
|
131
|
-
yarn
|
|
136
|
+
yarn tspc --declaration -p tsconfig.dist.json
|
|
132
137
|
```
|
|
133
138
|
|
|
134
139
|
If you are building a lambda function and you don't need the `*.d.ts` files then
|
package/README.md
CHANGED
|
@@ -106,7 +106,7 @@ yarn check-tsconfig --monorepo --repair
|
|
|
106
106
|
|
|
107
107
|
# Now compile all packages using project references which allows the
|
|
108
108
|
# typescript compiler to compile your packages in the correct order
|
|
109
|
-
yarn
|
|
109
|
+
yarn tspc -b `find ./packages -maxdepth 2 -name tsconfig.dist.json`
|
|
110
110
|
```
|
|
111
111
|
|
|
112
112
|
**For non-monorepo:**
|
|
@@ -114,7 +114,7 @@ yarn ttsc -b `find ./packages -maxdepth 2 -name tsconfig.dist.json`
|
|
|
114
114
|
```sh
|
|
115
115
|
# It is recommended to have a tsconfig.dist.json that excludes all test files
|
|
116
116
|
# and use that to compile your typescript files
|
|
117
|
-
yarn
|
|
117
|
+
yarn tspc --declaration -p tsconfig.dist.json
|
|
118
118
|
```
|
|
119
119
|
|
|
120
120
|
## Usage: Prettier
|
package/config/babel-util.js
CHANGED
package/config/typescript.json
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LogFunc } from
|
|
1
|
+
import { LogFunc } from '~/src/types';
|
|
2
2
|
export declare function readJsonFileForCli(file: string, log: LogFunc): Promise<any>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jupiterone/typescript-tools",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "19.0.0",
|
|
4
4
|
"main": "./index.js",
|
|
5
5
|
"repository": "https://github.com/jupiterone/typescript-tools",
|
|
6
6
|
"author": "Development <development@jupiterone.com>",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"format-code": "prettier --write '**/*.{js,ts,md,json}'",
|
|
13
13
|
"lint": "eslint --ext .ts,.tsx,.js,.jsx .",
|
|
14
|
-
"
|
|
14
|
+
"format": "prettier --write '**/*.{js,jsx,ts,tsx,md,json,yaml}'",
|
|
15
|
+
"compile": "yarn tspc --declaration -p tsconfig.json",
|
|
15
16
|
"clean": "rm -rf ./dist",
|
|
16
17
|
"build": "yarn clean && yarn compile",
|
|
17
18
|
"yalc:publish": "yarn build && node ./dist/bin/yalc-publish $@",
|
|
@@ -26,27 +27,28 @@
|
|
|
26
27
|
"yalc-check": "./dist/bin/yalc-check.js"
|
|
27
28
|
},
|
|
28
29
|
"dependencies": {
|
|
29
|
-
"@babel/cli": "^7.
|
|
30
|
-
"@babel/core": "^7.
|
|
31
|
-
"@babel/preset-env": "^7.
|
|
32
|
-
"@babel/preset-typescript": "^7.
|
|
33
|
-
"@commitlint/cli": "17.
|
|
34
|
-
"@commitlint/config-lerna-scopes": "17.
|
|
30
|
+
"@babel/cli": "^7.22.10",
|
|
31
|
+
"@babel/core": "^7.22.10",
|
|
32
|
+
"@babel/preset-env": "^7.22.10",
|
|
33
|
+
"@babel/preset-typescript": "^7.22.5",
|
|
34
|
+
"@commitlint/cli": "^17.7.0",
|
|
35
|
+
"@commitlint/config-lerna-scopes": "^17.7.0",
|
|
35
36
|
"@jupiterone/eslint-config": "^2.1.0",
|
|
36
37
|
"@philidem/rewrite-relative-paths": "^1.2.3",
|
|
37
|
-
"babel-jest": "^29.
|
|
38
|
+
"babel-jest": "^29.6.2",
|
|
38
39
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
39
|
-
"eslint": "^8.
|
|
40
|
-
"husky": "^8.0.
|
|
41
|
-
"jest": "^29.
|
|
42
|
-
"lint-staged": "^13.
|
|
43
|
-
"prettier": "^
|
|
44
|
-
"prettier-plugin-organize-imports": "^3.2.
|
|
40
|
+
"eslint": "^8.46.0",
|
|
41
|
+
"husky": "^8.0.3",
|
|
42
|
+
"jest": "^29.6.2",
|
|
43
|
+
"lint-staged": "^13.2.3",
|
|
44
|
+
"prettier": "^3.0.1",
|
|
45
|
+
"prettier-plugin-organize-imports": "^3.2.3",
|
|
46
|
+
"ts-patch": "^3.0.2",
|
|
45
47
|
"ts-transform-paths": "^3.0.0",
|
|
46
|
-
"
|
|
47
|
-
"typescript": "^4.
|
|
48
|
+
"typescript": "^5.1.6",
|
|
49
|
+
"typescript-transform-paths": "^3.4.6",
|
|
48
50
|
"yalc": "^1.0.0-pre.53",
|
|
49
|
-
"yargs": "^17.
|
|
51
|
+
"yargs": "^17.7.2"
|
|
50
52
|
},
|
|
51
53
|
"files": [
|
|
52
54
|
"LICENSE",
|
|
@@ -55,4 +57,4 @@
|
|
|
55
57
|
"config/**/*",
|
|
56
58
|
"dist/**/*"
|
|
57
59
|
]
|
|
58
|
-
}
|
|
60
|
+
}
|