@napi-rs/cli 3.0.0-alpha.2 → 3.0.0-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -71,7 +71,7 @@ jobs:
71
71
  sudo apt-get update
72
72
  sudo apt-get install gcc-arm-linux-gnueabihf -y
73
73
  build: |
74
- yarn build --platform --target armv7-unknown-linux-gnueabihf
74
+ yarn build --platform --target armv7-unknown-linux-gnueabihf --cross-compile
75
75
  arm-linux-gnueabihf-strip *.node
76
76
  - host: ubuntu-latest
77
77
  target: 'aarch64-linux-android'
@@ -237,7 +237,7 @@ jobs:
237
237
  target: 'x86_64-apple-darwin'
238
238
  - host: windows-latest
239
239
  target: 'x86_64-pc-windows-msvc'
240
- node: ['14', '16', '18']
240
+ node: ['16', '18']
241
241
  runs-on: \${{ matrix.settings.host }}
242
242
 
243
243
  steps:
@@ -273,7 +273,7 @@ jobs:
273
273
  strategy:
274
274
  fail-fast: false
275
275
  matrix:
276
- node: ['14', '16', '18']
276
+ node: ['16', '18']
277
277
  runs-on: ubuntu-latest
278
278
 
279
279
  steps:
@@ -309,7 +309,7 @@ jobs:
309
309
  strategy:
310
310
  fail-fast: false
311
311
  matrix:
312
- node: ['14', '16', '18']
312
+ node: ['16', '18']
313
313
  runs-on: ubuntu-latest
314
314
 
315
315
  steps:
@@ -347,7 +347,7 @@ jobs:
347
347
  strategy:
348
348
  fail-fast: false
349
349
  matrix:
350
- node: ['14', '16', '18']
350
+ node: ['16', '18']
351
351
  runs-on: ubuntu-latest
352
352
 
353
353
  steps:
@@ -433,7 +433,7 @@ jobs:
433
433
  strategy:
434
434
  fail-fast: false
435
435
  matrix:
436
- node: ['14', '16', '18']
436
+ node: ['16', '18']
437
437
  runs-on: ubuntu-latest
438
438
 
439
439
  steps:
@@ -493,15 +493,15 @@ jobs:
493
493
  uses: actions/download-artifact@v3
494
494
  with:
495
495
  name: bindings-x86_64-apple-darwin
496
- path: artifacts
496
+ path: .
497
497
  - name: Download macOS arm64 artifact
498
498
  uses: actions/download-artifact@v3
499
499
  with:
500
500
  name: bindings-aarch64-apple-darwin
501
- path: artifacts
501
+ path: .
502
502
 
503
503
  - name: Combine binaries
504
- run: yarn universal
504
+ run: yarn napi universalize
505
505
 
506
506
  - name: Upload artifact
507
507
  uses: actions/upload-artifact@v3
@@ -15,12 +15,11 @@ export const createPackageJson = ({ name, binaryName, targets, license, engineRe
15
15
  ]
16
16
  },
17
17
  "scripts": {
18
- "test": "yarn build:debug --platform && node -e \\"assert(require('.').sum(1, 2) === 3)\\"",
18
+ "test": "node -e \\"assert(require('.').sum(1, 2) === 3)\\"",
19
19
  "build": "napi build --release --platform --strip",
20
20
  "build:debug": "napi build",
21
21
  "prepublishOnly": "napi prepublish -t npm",
22
22
  "artifacts": "napi artifacts",
23
- "universal": "napi universal",
24
23
  "version": "napi version"
25
24
  },
26
25
  "devDependencies": {
package/dist/index.cjs CHANGED
@@ -18807,7 +18807,7 @@ jobs:
18807
18807
  sudo apt-get update
18808
18808
  sudo apt-get install gcc-arm-linux-gnueabihf -y
18809
18809
  build: |
18810
- yarn build --platform --target armv7-unknown-linux-gnueabihf
18810
+ yarn build --platform --target armv7-unknown-linux-gnueabihf --cross-compile
18811
18811
  arm-linux-gnueabihf-strip *.node
18812
18812
  - host: ubuntu-latest
18813
18813
  target: 'aarch64-linux-android'
@@ -18976,7 +18976,7 @@ jobs:
18976
18976
  target: 'x86_64-apple-darwin'
18977
18977
  - host: windows-latest
18978
18978
  target: 'x86_64-pc-windows-msvc'
18979
- node: ['14', '16', '18']
18979
+ node: ['16', '18']
18980
18980
  runs-on: \${{ matrix.settings.host }}
18981
18981
 
18982
18982
  steps:
@@ -19012,7 +19012,7 @@ jobs:
19012
19012
  strategy:
19013
19013
  fail-fast: false
19014
19014
  matrix:
19015
- node: ['14', '16', '18']
19015
+ node: ['16', '18']
19016
19016
  runs-on: ubuntu-latest
19017
19017
 
19018
19018
  steps:
@@ -19048,7 +19048,7 @@ jobs:
19048
19048
  strategy:
19049
19049
  fail-fast: false
19050
19050
  matrix:
19051
- node: ['14', '16', '18']
19051
+ node: ['16', '18']
19052
19052
  runs-on: ubuntu-latest
19053
19053
 
19054
19054
  steps:
@@ -19086,7 +19086,7 @@ jobs:
19086
19086
  strategy:
19087
19087
  fail-fast: false
19088
19088
  matrix:
19089
- node: ['14', '16', '18']
19089
+ node: ['16', '18']
19090
19090
  runs-on: ubuntu-latest
19091
19091
 
19092
19092
  steps:
@@ -19172,7 +19172,7 @@ jobs:
19172
19172
  strategy:
19173
19173
  fail-fast: false
19174
19174
  matrix:
19175
- node: ['14', '16', '18']
19175
+ node: ['16', '18']
19176
19176
  runs-on: ubuntu-latest
19177
19177
 
19178
19178
  steps:
@@ -19232,15 +19232,15 @@ jobs:
19232
19232
  uses: actions/download-artifact@v3
19233
19233
  with:
19234
19234
  name: bindings-x86_64-apple-darwin
19235
- path: artifacts
19235
+ path: .
19236
19236
  - name: Download macOS arm64 artifact
19237
19237
  uses: actions/download-artifact@v3
19238
19238
  with:
19239
19239
  name: bindings-aarch64-apple-darwin
19240
- path: artifacts
19240
+ path: .
19241
19241
 
19242
19242
  - name: Combine binaries
19243
- run: yarn universal
19243
+ run: yarn napi universalize
19244
19244
 
19245
19245
  - name: Upload artifact
19246
19246
  uses: actions/upload-artifact@v3
@@ -19415,12 +19415,11 @@ var createPackageJson = ({ name, binaryName, targets, license, engineRequirement
19415
19415
  ]
19416
19416
  },
19417
19417
  "scripts": {
19418
- "test": "yarn build:debug --platform && node -e \\"assert(require('.').sum(1, 2) === 3)\\"",
19418
+ "test": "node -e \\"assert(require('.').sum(1, 2) === 3)\\"",
19419
19419
  "build": "napi build --release --platform --strip",
19420
19420
  "build:debug": "napi build",
19421
19421
  "prepublishOnly": "napi prepublish -t npm",
19422
19422
  "artifacts": "napi artifacts",
19423
- "universal": "napi universal",
19424
19423
  "version": "napi version"
19425
19424
  },
19426
19425
  "devDependencies": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@napi-rs/cli",
3
- "version": "3.0.0-alpha.2",
3
+ "version": "3.0.0-alpha.3",
4
4
  "description": "Cli tools for napi-rs",
5
5
  "author": "LongYinan <lynweklm@gmail.com>",
6
6
  "homepage": "https://github.com/napi-rs/napi-rs",
@@ -96,5 +96,5 @@
96
96
  "build:cjs": "node ./esbuild.mjs",
97
97
  "test": "ava"
98
98
  },
99
- "gitHead": "c3b49f0ca6a199029c4a8a893594d0b76c2a6d01"
99
+ "gitHead": "b5c3c0575559f9c99d7747f3163476afe7e89a6c"
100
100
  }
@@ -71,7 +71,7 @@ jobs:
71
71
  sudo apt-get update
72
72
  sudo apt-get install gcc-arm-linux-gnueabihf -y
73
73
  build: |
74
- yarn build --platform --target armv7-unknown-linux-gnueabihf
74
+ yarn build --platform --target armv7-unknown-linux-gnueabihf --cross-compile
75
75
  arm-linux-gnueabihf-strip *.node
76
76
  - host: ubuntu-latest
77
77
  target: 'aarch64-linux-android'
@@ -237,7 +237,7 @@ jobs:
237
237
  target: 'x86_64-apple-darwin'
238
238
  - host: windows-latest
239
239
  target: 'x86_64-pc-windows-msvc'
240
- node: ['14', '16', '18']
240
+ node: ['16', '18']
241
241
  runs-on: \${{ matrix.settings.host }}
242
242
 
243
243
  steps:
@@ -273,7 +273,7 @@ jobs:
273
273
  strategy:
274
274
  fail-fast: false
275
275
  matrix:
276
- node: ['14', '16', '18']
276
+ node: ['16', '18']
277
277
  runs-on: ubuntu-latest
278
278
 
279
279
  steps:
@@ -309,7 +309,7 @@ jobs:
309
309
  strategy:
310
310
  fail-fast: false
311
311
  matrix:
312
- node: ['14', '16', '18']
312
+ node: ['16', '18']
313
313
  runs-on: ubuntu-latest
314
314
 
315
315
  steps:
@@ -347,7 +347,7 @@ jobs:
347
347
  strategy:
348
348
  fail-fast: false
349
349
  matrix:
350
- node: ['14', '16', '18']
350
+ node: ['16', '18']
351
351
  runs-on: ubuntu-latest
352
352
 
353
353
  steps:
@@ -433,7 +433,7 @@ jobs:
433
433
  strategy:
434
434
  fail-fast: false
435
435
  matrix:
436
- node: ['14', '16', '18']
436
+ node: ['16', '18']
437
437
  runs-on: ubuntu-latest
438
438
 
439
439
  steps:
@@ -493,15 +493,15 @@ jobs:
493
493
  uses: actions/download-artifact@v3
494
494
  with:
495
495
  name: bindings-x86_64-apple-darwin
496
- path: artifacts
496
+ path: .
497
497
  - name: Download macOS arm64 artifact
498
498
  uses: actions/download-artifact@v3
499
499
  with:
500
500
  name: bindings-aarch64-apple-darwin
501
- path: artifacts
501
+ path: .
502
502
 
503
503
  - name: Combine binaries
504
- run: yarn universal
504
+ run: yarn napi universalize
505
505
 
506
506
  - name: Upload artifact
507
507
  uses: actions/upload-artifact@v3
@@ -29,12 +29,11 @@ export const createPackageJson = ({
29
29
  ]
30
30
  },
31
31
  "scripts": {
32
- "test": "yarn build:debug --platform && node -e \\"assert(require('.').sum(1, 2) === 3)\\"",
32
+ "test": "node -e \\"assert(require('.').sum(1, 2) === 3)\\"",
33
33
  "build": "napi build --release --platform --strip",
34
34
  "build:debug": "napi build",
35
35
  "prepublishOnly": "napi prepublish -t npm",
36
36
  "artifacts": "napi artifacts",
37
- "universal": "napi universal",
38
37
  "version": "napi version"
39
38
  },
40
39
  "devDependencies": {