@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 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 ttsc --declaration -p tsconfig.dist.json
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 ttsc -b `find ./packages -maxdepth 2 -name tsconfig.dist.json`
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 ttsc --declaration -p tsconfig.dist.json
117
+ yarn tspc --declaration -p tsconfig.dist.json
118
118
  ```
119
119
 
120
120
  ## Usage: Prettier
@@ -4,7 +4,7 @@ function buildPresets(api) {
4
4
  '@babel/preset-env',
5
5
  {
6
6
  targets: {
7
- node: api.env('test') ? 'current' : '12',
7
+ node: api.env('test') ? 'current' : '18',
8
8
  },
9
9
  },
10
10
  ],
@@ -0,0 +1,8 @@
1
+ {
2
+ "extends": "./typescript-node20",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "composite": true,
6
+ "incremental": true
7
+ }
8
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "extends": "./typescript",
3
+ "compilerOptions": {
4
+ "target": "ES2022",
5
+ "lib": ["ES2023"]
6
+ }
7
+ }
@@ -22,9 +22,8 @@
22
22
  },
23
23
  "plugins": [
24
24
  {
25
- "name": "ts-transform-paths",
26
- "transform": "ts-transform-paths",
27
- "exclude": ["*"]
25
+ "name": "typescript-transform-paths",
26
+ "transform": "typescript-transform-paths"
28
27
  }
29
28
  ]
30
29
  }
@@ -1,2 +1,2 @@
1
- import { LogFunc } from "./types";
1
+ import { LogFunc } from '~/src/types';
2
2
  export declare function readJsonFileForCli(file: string, log: LogFunc): Promise<any>;
@@ -1,4 +1,4 @@
1
- import { LogFunc, PackageInfo } from "./types";
1
+ import { LogFunc, PackageInfo } from '~/src/types';
2
2
  export declare function readMonorepoPackagesForCli(options: {
3
3
  rootDir: string;
4
4
  log: LogFunc;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jupiterone/typescript-tools",
3
- "version": "18.1.1",
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
- "compile": "yarn ttsc --declaration -p tsconfig.json",
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.20.7",
30
- "@babel/core": "^7.20.7",
31
- "@babel/preset-env": "^7.20.2",
32
- "@babel/preset-typescript": "^7.18.6",
33
- "@commitlint/cli": "17.3.0",
34
- "@commitlint/config-lerna-scopes": "17.2.1",
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.3.1",
38
+ "babel-jest": "^29.6.2",
38
39
  "babel-plugin-module-resolver": "^5.0.0",
39
- "eslint": "^8.30.0",
40
- "husky": "^8.0.2",
41
- "jest": "^29.3.1",
42
- "lint-staged": "^13.1.0",
43
- "prettier": "^2.8.1",
44
- "prettier-plugin-organize-imports": "^3.2.1",
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
- "ttypescript": "^1.5.15",
47
- "typescript": "^4.9.4",
48
+ "typescript": "^5.1.6",
49
+ "typescript-transform-paths": "^3.4.6",
48
50
  "yalc": "^1.0.0-pre.53",
49
- "yargs": "^17.6.2"
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
+ }