Skip to content

Commit

Permalink
💥 (neo) require node14
Browse files Browse the repository at this point in the history
  • Loading branch information
JiangWeixian committed Aug 7, 2022
1 parent 2d2ffec commit d68bb42
Show file tree
Hide file tree
Showing 4 changed files with 121 additions and 243 deletions.
5 changes: 5 additions & 0 deletions .changeset/strong-geckos-battle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@aiou/neo": minor
---

require node14
5 changes: 3 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"assets"
],
"engines": {
"node": ">=12"
"node": ">=14"
},
"scripts": {
"clean": "rimraf lib compiled",
Expand Down Expand Up @@ -72,6 +72,7 @@
"consola": "^2.15.3",
"cosmiconfig": "^7.0.1",
"debug": "4.3.3",
"esbuild": "^0.14.53",
"esno": "^0.13.0",
"execa": "^6.0.0",
"find-up": "^6.2.0",
Expand All @@ -89,9 +90,9 @@
"read-yaml-file": "^2.1.0",
"rimraf": "3.0.2",
"rollup": "^2.64.0",
"rollup-plugin-esbuild": "^4.9.1",
"rollup-plugin-size": "^0.2.2",
"rollup-plugin-terser": "^7.0.2",
"rollup-plugin-typescript2": "^0.31.1",
"semver": "^7.3.7",
"tempy": "^2.0.0",
"terminal-link": "^3.0.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/core/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { nodeResolve } from '@rollup/plugin-node-resolve'
import json from '@rollup/plugin-json'
import { defineConfig } from 'rollup'
import size from 'rollup-plugin-size'
import ts from 'rollup-plugin-typescript2'
import esbuild from 'rollup-plugin-esbuild'
import { terser } from 'rollup-plugin-terser'

export default defineConfig([
Expand All @@ -19,9 +19,9 @@ export default defineConfig([
preserveEntrySignatures: 'strict',
external: ['readable-stream'],
plugins: [
ts({
check: false,
tsconfig: './tsconfig.build.json',
esbuild({
target: 'es2020',
minify: true,
}),
// TODO: external or include
// fix: https://github.com/rollup/rollup/issues/1507
Expand Down

0 comments on commit d68bb42

Please sign in to comment.