Skip to content

Commit

Permalink
fix(cli): compatible for Node.js 10x
Browse files Browse the repository at this point in the history
  • Loading branch information
Brooooooklyn committed Feb 9, 2022
1 parent 2e68612 commit 5f359df
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/zig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ jobs:
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 16
# Testing for compatibility with node v12.x
node-version: 12
check-latest: true
cache: 'yarn'
- name: Install
Expand Down
1 change: 1 addition & 0 deletions cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@types/lodash-es": "^4.17.5",
"clipanion": "^3.1.0",
"colorette": "^2.0.16",
"core-js": "^3.21.0",
"debug": "^4.3.3",
"env-paths": "^3.0.0",
"fdir": "^5.2.0",
Expand Down
2 changes: 2 additions & 0 deletions cli/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'core-js/es/string/replace-all'

import { Cli } from 'clipanion'

import { version } from '../package.json'
Expand Down
3 changes: 3 additions & 0 deletions rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ export default {
NAPI_VERSION,
NAPI_DERIVE_VERSION,
NAPI_BUILD_VERSION,
'node:path': 'path',
'node:os': 'os',
'node:process': 'process',
preventAssignment: true,
}),
alias({
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -954,6 +954,7 @@ __metadata:
"@types/lodash-es": ^4.17.5
clipanion: ^3.1.0
colorette: ^2.0.16
core-js: ^3.21.0
debug: ^4.3.3
env-paths: ^3.0.0
fdir: ^5.2.0
Expand Down Expand Up @@ -2899,6 +2900,13 @@ __metadata:
languageName: node
linkType: hard

"core-js@npm:^3.21.0":
version: 3.21.0
resolution: "core-js@npm:3.21.0"
checksum: 87df49aa2c5d0a521c52102b6669842dd30b334742e86dd4e0173c51230bc48d610060ab6de0f149766d188325b8c1b84598f901cf455674fe6c03ccc5c8026f
languageName: node
linkType: hard

"core-util-is@npm:1.0.2":
version: 1.0.2
resolution: "core-util-is@npm:1.0.2"
Expand Down

0 comments on commit 5f359df

Please sign in to comment.