Skip to content

Commit aae4588

Browse files
committed
feat: add TypeScript v4.7 support
1 parent beecd93 commit aae4588

File tree

386 files changed

+3655
-2825
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

386 files changed

+3655
-2825
lines changed

.github/workflows/workflow.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ jobs:
1010

1111
strategy:
1212
matrix:
13-
os: [windows-latest, macos-latest, ubuntu-18.04]
14-
node: [14, 16, 17]
13+
os: [windows-latest, macos-latest, ubuntu-latest]
14+
node: [14.19.0, 16, 17, 18]
1515

1616
steps:
1717
- name: Checkout code

package.json

Lines changed: 54 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,12 @@
1212
"test": "ava",
1313
"prebuild": "pnpm run clean",
1414
"build": "pnpm run prebuild && pnpm run rollup",
15-
"prewatch": "pnpm run clean",
16-
"watch": "pnpm run prewatch && pnpm run rollup -- --watch",
17-
"rollup": "ts-node rollup.config.ts",
15+
"rollup": "ts-node --esm rollup.config.ts",
1816
"preversion": "npm run lint && pnpm run build",
1917
"version": "pnpm run preversion && pnpm run generate:all && git add .",
2018
"release": "np --no-cleanup --no-yarn --no-tests",
21-
"update:check": "pnpx npm-check-updates -x typescript-*,ava,chalk --dep dev,prod",
22-
"update:commit": "pnpx npm-check-updates -u -x typescript-*,ava,chalk --dep dev,prod && pnpm update && pnpm install"
19+
"update:check": "pnpx npm-check-updates -x typescript-*,ava --dep dev,prod",
20+
"update:commit": "pnpx npm-check-updates -u -x typescript-*,ava --dep dev,prod && pnpm update && pnpm install"
2321
},
2422
"keywords": [
2523
"rollup",
@@ -50,43 +48,44 @@
5048
"license": "MIT",
5149
"devDependencies": {
5250
"@rollup/plugin-alias": "^3.1.9",
53-
"@rollup/plugin-commonjs": "^21.0.3",
51+
"@rollup/plugin-commonjs": "^22.0.0",
5452
"@rollup/plugin-json": "^4.1.0",
5553
"@rollup/plugin-multi-entry": "^4.1.0",
5654
"@types/babel__core": "^7.1.19",
57-
"@types/node": "^17.0.23",
58-
"@types/prettier": "^2.6.0",
55+
"@types/node": "^17.0.36",
56+
"@types/prettier": "^2.6.3",
5957
"@types/semver": "^7.3.9",
60-
"@typescript-eslint/eslint-plugin": "^5.19.0",
61-
"@typescript-eslint/parser": "^5.19.0",
58+
"@typescript-eslint/eslint-plugin": "^5.26.0",
59+
"@typescript-eslint/parser": "^5.26.0",
6260
"@wessberg/ts-config": "^2.0.2",
63-
"@babel/core": "7.17.9",
64-
"@babel/runtime": "7.17.9",
65-
"@babel/preset-env": "7.16.11",
66-
"@babel/plugin-transform-runtime": "7.17.0",
67-
"@swc/core": "1.2.165",
68-
"@swc/helpers": "0.3.8",
61+
"@wessberg/prettier-config": "^1.0.0",
62+
"@babel/core": "7.18.2",
63+
"@babel/runtime": "7.18.3",
64+
"@babel/preset-env": "7.18.2",
65+
"@babel/plugin-transform-runtime": "7.18.2",
66+
"@swc/core": "1.2.194",
67+
"@swc/helpers": "0.3.16",
6968
"ava": "3.15.0",
70-
"babel-preset-minify": "^0.5.1",
71-
"eslint": "^8.13.0",
69+
"babel-preset-minify": "^0.5.2",
70+
"eslint": "^8.16.0",
7271
"eslint-config-prettier": "^8.5.0",
7372
"eslint-plugin-import": "^2.26.0",
74-
"eslint-plugin-jsdoc": "^39.2.0",
73+
"eslint-plugin-jsdoc": "^39.3.2",
7574
"helpertypes": "^0.0.18",
76-
"husky": "^7.0.4",
77-
"memfs": "^3.4.1",
75+
"husky": "^8.0.1",
76+
"memfs": "^3.4.4",
7877
"np": "7.6.1",
79-
"npm-check-updates": "12.5.9",
80-
"pnpm": "^6.32.6",
78+
"npm-check-updates": "13.0.3",
79+
"pnpm": "^7.1.7",
8180
"prettier": "^2.6.2",
8281
"pretty-quick": "^3.1.3",
8382
"rimraf": "^3.0.2",
84-
"rollup": "^2.70.1",
85-
"sandhog": "^1.0.43",
83+
"rollup": "^2.75.3",
84+
"sandhog": "^2.0.1",
8685
"semver": "7.3.7",
8786
"standard-changelog": "^2.0.27",
88-
"ts-node": "10.7.0",
89-
"typescript": "^4.6.3",
87+
"ts-node": "10.8.0",
88+
"typescript": "^4.7.2",
9089
"typescript-3-4-1": "npm:[email protected]",
9190
"typescript-3-5-1": "npm:[email protected]",
9291
"typescript-3-6-2": "npm:[email protected]",
@@ -98,19 +97,20 @@
9897
"typescript-4-2-4": "npm:[email protected]",
9998
"typescript-4-3-5": "npm:[email protected]",
10099
"typescript-4-4-2": "npm:[email protected]",
101-
"typescript-4-5-4": "npm:[email protected]"
100+
"typescript-4-5-4": "npm:[email protected]",
101+
"typescript-4-6-4": "npm:[email protected]"
102102
},
103103
"dependencies": {
104-
"@rollup/pluginutils": "^4.2.0",
104+
"@rollup/pluginutils": "^4.2.1",
105105
"@wessberg/stringutil": "^1.0.19",
106-
"browserslist": "^4.20.2",
106+
"browserslist": "^4.20.3",
107107
"browserslist-generator": "^1.0.66",
108-
"chalk": "4.1.2",
109-
"compatfactory": "^0.0.13",
110-
"crosspath": "1.0.0",
111-
"magic-string": "^0.26.1",
112-
"ts-clone-node": "^0.3.32",
113-
"tslib": "^2.3.1"
108+
"chalk": "5.0.1",
109+
"compatfactory": "^1.0.1",
110+
"crosspath": "2.0.0",
111+
"magic-string": "^0.26.2",
112+
"ts-clone-node": "^1.0.0",
113+
"tslib": "^2.4.0"
114114
},
115115
"peerDependencies": {
116116
"@babel/core": ">=6.x || >=7.x",
@@ -142,12 +142,14 @@
142142
"optional": true
143143
}
144144
},
145-
"main": "./dist/cjs/index.js",
146-
"module": "./dist/esm/index.js",
147-
"browser": "./dist/esm/index.js",
145+
"exports": {
146+
"import": "./dist/esm/index.js",
147+
"require": "./dist/cjs/index.cjs"
148+
},
149+
"type": "module",
148150
"types": "./dist/esm/index.d.ts",
149-
"typings": "./dist/esm/index.d.ts",
150-
"es2015": "./dist/esm/index.js",
151+
"main": "./dist/cjs/index.cjs",
152+
"module": "./dist/esm/index.js",
151153
"funding": {
152154
"type": "github",
153155
"url": "https://github.com/wessberg/rollup-plugin-ts?sponsor=1"
@@ -160,26 +162,29 @@
160162
"url": "https://github.com/wessberg/rollup-plugin-ts/issues"
161163
},
162164
"engines": {
163-
"node": ">=10.0.0",
165+
"node": ">=14.9.0",
164166
"npm": ">=7.0.0",
165167
"yarn": ">=1.13",
166168
"pnpm": ">=3.2.0"
167169
},
170+
"prettier": "@wessberg/prettier-config",
168171
"ava": {
169172
"files": [
170173
"test/**.test.ts"
171174
],
172175
"verbose": true,
173176
"timeout": "400s",
174-
"extensions": [
175-
"ts"
177+
"nonSemVerExperiments": {
178+
"configurableModuleFormat": true
179+
},
180+
"extensions": {
181+
"ts": "module"
182+
},
183+
"nodeArguments": [
184+
"--loader=ts-node/esm"
176185
],
177186
"environmentVariables": {
178-
"NODE_OPTIONS": "--max_old_space_size=6144",
179187
"FORCE_COLOR": "3"
180-
},
181-
"require": [
182-
"ts-node/register/transpile-only"
183-
]
188+
}
184189
}
185190
}

0 commit comments

Comments
 (0)