chore: upgrade dependencies (#1349)

This commit is contained in:
LongYinan 2022-10-23 23:03:18 +08:00 committed by GitHub
parent 77060adb3d
commit 1037e6f14d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 2158 additions and 1911 deletions

View file

@ -33,9 +33,7 @@ jobs:
toolchain: stable
profile: minimal
override: true
- name: Install aarch64 toolchain
run: rustup target add aarch64-unknown-linux-gnu
target: aarch64-unknown-linux-gnu
- name: Cache cargo
uses: actions/cache@v3

View file

@ -29,8 +29,7 @@ jobs:
- name: Setup node
uses: actions/setup-node@v3
with:
# Testing for compatibility with node v12.x
node-version: 12
node-version: 16
check-latest: true
cache: 'yarn'
- name: Install
@ -63,6 +62,12 @@ jobs:
run: yarn install --immutable --mode=skip-build
- name: 'Build TypeScript'
run: yarn build
- name: Setup node
uses: actions/setup-node@v3
with:
# Testing for compatibility with node v12.x
node-version: 12
check-latest: true
- name: Cross build native tests
run: |
yarn workspace compat-mode-examples build --target ${{ matrix.target }} --zig

File diff suppressed because one or more lines are too long

801
.yarn/releases/yarn-3.2.4.cjs vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -1,3 +1,3 @@
nodeLinker: node-modules
yarnPath: .yarn/releases/yarn-3.2.1.cjs
yarnPath: .yarn/releases/yarn-3.2.4.cjs

View file

@ -7,7 +7,7 @@ const configuration = {
environmentVariables: {
TS_NODE_PROJECT: './examples/tsconfig.json',
},
timeout: '1m',
timeout: '2m',
workerThreads: true,
concurrency: process.env.CI ? 2 : cpus().length,
failFast: false,

View file

@ -40,22 +40,22 @@
"url": "https://github.com/napi-rs/napi-rs/issues"
},
"devDependencies": {
"@octokit/rest": "^19.0.4",
"@types/inquirer": "^9.0.1",
"@octokit/rest": "^19.0.5",
"@types/inquirer": "^9.0.2",
"@types/js-yaml": "^4.0.5",
"@types/lodash-es": "^4.17.6",
"clipanion": "^3.1.0",
"colorette": "^2.0.19",
"core-js": "^3.24.1",
"core-js": "^3.25.5",
"debug": "^4.3.4",
"env-paths": "^3.0.0",
"fdir": "^5.2.0",
"inquirer": "^9.1.0",
"fdir": "^5.3.0",
"inquirer": "^9.1.4",
"js-yaml": "^4.1.0",
"lodash-es": "4.17.21",
"toml": "^3.0.0",
"tslib": "^2.4.0",
"typanion": "^3.9.0"
"typanion": "^3.12.1"
},
"funding": {
"type": "github",

View file

@ -13,7 +13,7 @@
"build-release": "node ../../cli/scripts/index.js build --js false --release"
},
"dependencies": {
"@types/lodash": "^4.14.184",
"@types/lodash": "^4.14.186",
"lodash": "^4.17.21"
}
}

View file

@ -27,7 +27,7 @@
"build:test:android": "yarn workspace compat-mode-examples build --target aarch64-linux-android && yarn workspace examples build --target aarch64-linux-android",
"build:test:android:armv7": "yarn workspace compat-mode-examples build --target armv7-linux-androideabi && yarn workspace examples build --target armv7-linux-androideabi",
"build:test:armv7": "yarn workspace compat-mode-examples build-armv7 && yarn workspace examples build-armv7",
"bundle": "rollup -c rollup.config.js",
"bundle": "rollup -c rollup.config.mjs",
"format": "run-p format:prettier format:rs format:toml",
"format:prettier": "prettier . -w",
"format:rs": "cargo fmt",
@ -72,41 +72,41 @@
}
},
"devDependencies": {
"@rollup/plugin-alias": "^3.1.9",
"@rollup/plugin-commonjs": "^22.0.2",
"@rollup/plugin-json": "^4.1.0",
"@rollup/plugin-node-resolve": "^13.3.0",
"@rollup/plugin-replace": "^4.0.0",
"@taplo/cli": "^0.4.2",
"@rollup/plugin-alias": "^4.0.2",
"@rollup/plugin-commonjs": "^23.0.2",
"@rollup/plugin-json": "^5.0.1",
"@rollup/plugin-node-resolve": "^15.0.1",
"@rollup/plugin-replace": "^5.0.1",
"@taplo/cli": "^0.5.2",
"@types/debug": "^4.1.7",
"@types/lodash-es": "^4.17.6",
"@types/node": "^18.7.11",
"@types/node": "^18.11.3",
"@types/sinon": "^10.0.13",
"@typescript-eslint/eslint-plugin": "^5.34.0",
"@typescript-eslint/parser": "^5.34.0",
"ava": "^4.3.1",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"ava": "^5.0.1",
"benny": "^3.7.1",
"c8": "^7.12.0",
"colorette": "^2.0.19",
"cross-env": "^7.0.3",
"electron": "^20.0.3",
"esbuild": "^0.15.5",
"eslint": "^8.22.0",
"electron": "20.3.3",
"esbuild": "^0.15.12",
"eslint": "^8.26.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.1",
"lerna": "^5.4.3",
"lerna": "^6.0.1",
"lint-staged": "^13.0.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"rollup": "^2.78.1",
"rollup": "^3.2.3",
"shx": "^0.3.4",
"sinon": "^14.0.0",
"sinon": "^14.0.1",
"source-map-support": "^0.5.21",
"ts-node": "^10.9.1",
"tslib": "^2.4.0",
"typescript": "^4.7.4"
"typescript": "^4.8.4"
},
"packageManager": "yarn@3.2.1"
"packageManager": "yarn@3.2.4"
}

View file

@ -1,5 +1,6 @@
import { readFileSync } from 'fs'
import { join } from 'path'
import { fileURLToPath } from 'url'
import alias from '@rollup/plugin-alias'
import commonjs from '@rollup/plugin-commonjs'
@ -8,6 +9,8 @@ import nodeResolve from '@rollup/plugin-node-resolve'
import replace from '@rollup/plugin-replace'
import toml from 'toml'
const __dirname = join(fileURLToPath(import.meta.url), '..')
const NAPI_CARGO_TOML = readFileSync(
join(__dirname, 'crates', 'napi', 'Cargo.toml'),
'utf8',
@ -37,12 +40,12 @@ console.info('napi-build version: ', NAPI_BUILD_VERSION)
export default {
input: './scripts/cli/src/index.js',
inlineDynamicImports: true,
output: {
banner: '#!/usr/bin/env node',
file: './cli/scripts/index.js',
format: 'cjs',
sourcemap: 'inline',
inlineDynamicImports: true,
},
plugins: [
replace({

2408
yarn.lock

File diff suppressed because it is too large Load diff