0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00

chore: enable Node 18

This commit is contained in:
Gao Sun 2022-11-06 00:29:28 +08:00
parent e3c3515409
commit cbf75359c8
No known key found for this signature in database
GPG key ID: 13EBE123E4773688
14 changed files with 31 additions and 8 deletions

View file

@ -46,6 +46,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
node_version: [16, 18]
runs-on: ${{ matrix.os }}
@ -69,6 +70,7 @@ jobs:
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v2
with:
node-version: ${{ matrix.node_version }}
run-install: false
# Setup integration test

View file

@ -47,11 +47,17 @@ jobs:
main-test:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [16, 18]
steps:
- uses: actions/checkout@v3
- name: Setup Node and pnpm
uses: silverhand-io/actions-node-pnpm-run-steps@v2
with:
node-version: ${{ matrix.node_version }}
- name: Prepack
run: pnpm prepack

View file

@ -33,8 +33,8 @@
]
},
"engines": {
"node": ">=14.15.0",
"pnpm": ">=6"
"node": "^16.13.0 || ^18.12.0",
"pnpm": "^7.14.0"
},
"alias": {
"html-parse-stringify": "html-parse-stringify/dist/html-parse-stringify.module.js",

View file

@ -34,7 +34,7 @@
"prepack": "pnpm build"
},
"engines": {
"node": "^16.0.0"
"node": "^16.13.0 || ^18.12.0"
},
"bugs": {
"url": "https://github.com/logto-io/logto/issues"

View file

@ -84,6 +84,9 @@
"typescript": "^4.7.4",
"zod": "^3.19.1"
},
"engines": {
"node": "^16.13.0 || ^18.12.0"
},
"alias": {
"@/*": "./src/$1",
"@mdx/components/*": "./src/mdx-components/$1"

View file

@ -100,7 +100,7 @@
"typescript": "^4.7.4"
},
"engines": {
"node": "^16.0.0"
"node": "^16.13.0 || ^18.12.0"
},
"_moduleAliases": {
"@": "./build"

View file

@ -11,7 +11,7 @@
},
"scripts": {},
"engines": {
"node": "^16.0.0"
"node": "^16.13.0 || ^18.12.0"
},
"dependencies": {
"@logto/cli": "workspace:^"

View file

@ -44,6 +44,9 @@
"stylelint": "^14.9.1",
"typescript": "^4.7.4"
},
"engines": {
"node": "^16.13.0 || ^18.12.0"
},
"alias": {
"@/*": "./src/$1"
},

View file

@ -39,6 +39,9 @@
"ts-node": "^10.9.1",
"typescript": "^4.7.4"
},
"engines": {
"node": "^16.13.0 || ^18.12.0"
},
"eslintConfig": {
"extends": "@silverhand"
},

View file

@ -44,6 +44,9 @@
"prettier": "^2.7.1",
"typescript": "^4.7.4"
},
"engines": {
"node": "^16.13.0 || ^18.12.0"
},
"eslintConfig": {
"extends": "@silverhand"
},

View file

@ -25,7 +25,7 @@
"prepack": "pnpm build"
},
"engines": {
"node": "^16.0.0"
"node": "^16.13.0 || ^18.12.0"
},
"bugs": {
"url": "https://github.com/logto-io/logto/issues"

View file

@ -27,7 +27,7 @@
"test:ci": "jest"
},
"engines": {
"node": "^16.0.0"
"node": "^16.13.0 || ^18.12.0"
},
"devDependencies": {
"@silverhand/eslint-config": "1.3.0",

View file

@ -33,7 +33,7 @@
"typescript": "^4.7.4"
},
"engines": {
"node": "^16.0.0"
"node": "^16.13.0 || ^18.12.0"
},
"eslintConfig": {
"extends": "@silverhand",

View file

@ -71,6 +71,9 @@
"typescript": "^4.7.4",
"use-debounced-loader": "^0.1.1"
},
"engines": {
"node": "^16.13.0 || ^18.12.0"
},
"alias": {
"@/*": "./src/$1"
},