Skip to content

Commit

Permalink
fix: lock file maintenance (#101)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: nodejs >= 18
  • Loading branch information
renovate[bot] authored Jan 30, 2024
1 parent 8d4f6f6 commit ae48214
Show file tree
Hide file tree
Showing 7 changed files with 4,400 additions and 4,495 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ jobs:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: true
ref: ${{ github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.head.ref || '' }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 20
- run: git config --global user.email "actions@github.com"
Expand All @@ -38,11 +38,11 @@ jobs:
needs: cancel-existing
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
lfs: true
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: yarn --frozen-lockfile
Expand All @@ -61,8 +61,6 @@ jobs:
strategy:
matrix:
include:
- node: 16
os: ubuntu-latest
- node: 18
os: ubuntu-latest
- node: 20
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deprecated-dependencies.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
lfs: true
- continue-on-error: true
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: micnncim/action-label-syncer@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: jaid/action-sync-node-meta@v2.0.0
with:
approve: false
Expand Down
15 changes: 7 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,28 +28,27 @@
"dependencies": {
"@babel/core": "^7.10.2",
"@dword-design/suppress-babel-register-esm-warning": "^1.1.10",
"@nuxt/kit": "^3.7.0",
"@rollup/plugin-babel": "^6.0.3",
"@vitejs/plugin-vue": "^4.2.3",
"@vitejs/plugin-vue": "^5.0.3",
"@vue/compiler-sfc": "^3.3.4",
"depcheck-package-name": "^3.0.1",
"execa": "^7.1.1",
"execa": "^8.0.1",
"suppress-experimental-warnings": "^1.1.17",
"vite-plugin-babel": "^1.1.3",
"vue-sfc-descriptor-to-string": "^2.0.0"
},
"devDependencies": {
"@babel/plugin-proposal-pipeline-operator": "^7.22.5",
"@dword-design/base": "^10.1.2",
"@dword-design/base": "^11.0.2",
"@dword-design/functions": "^5.0.22",
"@dword-design/puppeteer": "^6.0.10",
"@dword-design/puppeteer": "^7.0.0",
"@dword-design/tester": "^2.0.19",
"@dword-design/tester-plugin-puppeteer": "^2.1.68",
"@dword-design/tester-plugin-puppeteer": "^3.0.0",
"@dword-design/tester-plugin-tmp-dir": "^2.1.26",
"axios": "^1.4.0",
"fs-extra": "^11.1.1",
"nuxt": "^3.7.0",
"nuxt-dev-ready": "^2.0.1",
"nuxt-dev-ready": "^3.0.0",
"output-files": "^2.0.0",
"port-ready": "^0.1.0",
"tree-kill-promise": "^3.0.14"
Expand All @@ -58,7 +57,7 @@
"nuxi": "^3"
},
"engines": {
"node": ">=16"
"node": ">=18"
},
"publishConfig": {
"access": "public"
Expand Down
16 changes: 2 additions & 14 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
import { transform } from '@babel/core'
import { loadNuxtConfig } from '@nuxt/kit'
import { babel as rollupPluginBabel } from '@rollup/plugin-babel'
import { parseVueRequest } from '@vitejs/plugin-vue'
import { parse } from '@vue/compiler-sfc'
import { runCommand } from 'nuxi'
import vitePluginBabel from 'vite-plugin-babel'
import vueSfcDescriptorToString from 'vue-sfc-descriptor-to-string'

export default async (command, args) => {
command = command === 'dev' ? '_dev' : command
if (command === '_dev') {
const nuxtConfig = await loadNuxtConfig()
process.env._PORT =
process.env.NUXT_PORT ||
process.env.NITRO_PORT ||
process.env.PORT ||
nuxtConfig.devServer.port.toString()
}

return runCommand(command, args, {
export default (command, args) =>
runCommand(command, args, {
overrides: {
nitro: {
rollupConfig: {
Expand Down Expand Up @@ -62,4 +51,3 @@ export default async (command, args) => {
},
},
})
}
Loading

0 comments on commit ae48214

Please sign in to comment.