Skip to content

Commit

Permalink
perf: update engine
Browse files Browse the repository at this point in the history
BREAKING CHANGE: remove support for node.js <20
  • Loading branch information
pviti committed Feb 22, 2024
1 parent 2acb8fa commit 2b41c33
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 25 deletions.
6 changes: 6 additions & 0 deletions bin/dev.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env node_modules/.bin/ts-node
// eslint-disable-next-line node/shebang, unicorn/prefer-top-level-await
;(async () => {
const oclif = await import('@oclif/core')
await oclif.execute({development: true, dir: __dirname})
})()
File renamed without changes.
3 changes: 3 additions & 0 deletions bin/old/dev.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\dev" %*
File renamed without changes.
3 changes: 3 additions & 0 deletions bin/old/run.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
@echo off

node "%~dp0\run" %*
7 changes: 7 additions & 0 deletions bin/run.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env node

// eslint-disable-next-line unicorn/prefer-top-level-await
(async () => {
const oclif = await import('@oclif/core')
await oclif.execute({development: false, dir: __dirname})
})()
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"repository": "commercelayer/commercelayer-cli-plugin-microstore",
"bugs": "https://github.com/commercelayer/commercelayer-cli-plugin-microstore/issues",
"engines": {
"node": ">=20.0.0"
"node": ">=20.10.0"
},
"files": [
"/bin",
"/bin/run.*",
"/lib",
"/npm-shrinkwrap.json",
"/oclif.manifest.json"
Expand Down Expand Up @@ -55,7 +55,7 @@
"devDependencies": {
"@commercelayer/cli-dev": "beta",
"@commercelayer/eslint-config-ts": "^1.3.0",
"@oclif/plugin-help": "^6.0.13",
"@oclif/plugin-help": "^6.0.14",
"@oclif/test": "^3.2.0",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
Expand Down
44 changes: 22 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2b41c33

Please sign in to comment.