Skip to content

Commit

Permalink
fix(cli): incorrect new project template content
Browse files Browse the repository at this point in the history
  • Loading branch information
forehalo committed Apr 7, 2023
1 parent c3b49f0 commit 7fcd68f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
18 changes: 9 additions & 9 deletions cli/src/api/templates/ci-template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ jobs:
sudo apt-get update
sudo apt-get install gcc-arm-linux-gnueabihf -y
build: |
yarn build --platform --target armv7-unknown-linux-gnueabihf
yarn build --platform --target armv7-unknown-linux-gnueabihf --cross-compile
arm-linux-gnueabihf-strip *.node
- host: ubuntu-latest
target: 'aarch64-linux-android'
Expand Down Expand Up @@ -237,7 +237,7 @@ jobs:
target: 'x86_64-apple-darwin'
- host: windows-latest
target: 'x86_64-pc-windows-msvc'
node: ['14', '16', '18']
node: ['16', '18']
runs-on: \${{ matrix.settings.host }}
steps:
Expand Down Expand Up @@ -273,7 +273,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['14', '16', '18']
node: ['16', '18']
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -309,7 +309,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['14', '16', '18']
node: ['16', '18']
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -347,7 +347,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['14', '16', '18']
node: ['16', '18']
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -433,7 +433,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: ['14', '16', '18']
node: ['16', '18']
runs-on: ubuntu-latest
steps:
Expand Down Expand Up @@ -493,15 +493,15 @@ jobs:
uses: actions/download-artifact@v3
with:
name: bindings-x86_64-apple-darwin
path: artifacts
path: .
- name: Download macOS arm64 artifact
uses: actions/download-artifact@v3
with:
name: bindings-aarch64-apple-darwin
path: artifacts
path: .
- name: Combine binaries
run: yarn universal
run: yarn napi universalize
- name: Upload artifact
uses: actions/upload-artifact@v3
Expand Down
3 changes: 1 addition & 2 deletions cli/src/api/templates/package.json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,11 @@ export const createPackageJson = ({
]
},
"scripts": {
"test": "yarn build:debug --platform && node -e \\"assert(require('.').sum(1, 2) === 3)\\"",
"test": "node -e \\"assert(require('.').sum(1, 2) === 3)\\"",
"build": "napi build --release --platform --strip",
"build:debug": "napi build",
"prepublishOnly": "napi prepublish -t npm",
"artifacts": "napi artifacts",
"universal": "napi universal",
"version": "napi version"
},
"devDependencies": {
Expand Down

0 comments on commit 7fcd68f

Please sign in to comment.