Skip to content

Commit 45832d9

Browse files
committed
feat: require nodejs 16 or above
BREAKING CHANGE: require nodejs 16 or above
1 parent e2e70e8 commit 45832d9

File tree

4 files changed

+6
-9
lines changed

4 files changed

+6
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
strategy:
1414
matrix:
1515
os: [ubuntu-latest, windows-latest]
16-
node-version: [14.x, 16.x]
16+
node-version: [16.x, 18.x]
1717

1818
runs-on: ${{ matrix.os }}
1919

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,6 @@
8888
}
8989
},
9090
"engines": {
91-
"node": ">=14.18"
91+
"node": ">=16.14"
9292
}
9393
}

src/index.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ const normalizeOptions = async (
122122
}
123123

124124
if (!options.target) {
125-
options.target = 'node14'
125+
options.target = 'node16'
126126
}
127127

128128
return options as NormalizedOptions
@@ -238,12 +238,9 @@ export async function build(_options: Options) {
238238
// .d.ts files are removed in the `dtsTask` instead
239239
// `dtsTask` is a separate process, which might start before `mainTasks`
240240
if (options.dts) {
241-
extraPatterns.unshift('!**/*.d.ts');
241+
extraPatterns.unshift('!**/*.d.ts')
242242
}
243-
await removeFiles(
244-
['**/*', ...extraPatterns],
245-
options.outDir
246-
)
243+
await removeFiles(['**/*', ...extraPatterns], options.outDir)
247244
logger.info('CLI', 'Cleaning output folder')
248245
}
249246

src/options.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ export type Options = {
9797
/**
9898
* Compile target
9999
*
100-
* default to `node14`
100+
* default to `node16`
101101
*/
102102
target?: Target | Target[]
103103
minify?: boolean | 'terser'

0 commit comments

Comments
 (0)