Commit graph

444 commits

Author SHA1 Message Date
LongYinan
0c6656d192
chore(cli): update ci template (#1771) 2023-11-01 18:02:55 +08:00
LongYinan
2e03db1fec
test: refactor the example tests to esm, add bun:test => ava polyfill (#1730) 2023-09-20 01:18:01 -07:00
LongYinan
5d0240e8ad
fix(cli): set RANLIB while building android targets 2023-08-16 12:36:22 +08:00
renovate[bot]
c5f7213a27
chore(deps): update dependency esbuild to ^0.19.0 (#1691)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-09 01:22:11 +00:00
LongYinan
f2f4b48e8a
fix(cli): pick right android tools while cross compiling (#1675) 2023-07-30 11:53:34 +08:00
LongYinan
9ebe404e9a
feat(cli): add provenance to ci template (#1671) 2023-07-27 10:31:58 +08:00
LongYinan
a528ecf5a7
style(cli): remove semicolon 2023-07-25 11:28:07 +08:00
Vinicius Lourenço
3ee6be4e5f
perf(cli): improve musl verification (#1660) 2023-07-25 11:26:55 +08:00
LongYinan
cbed8fceb2
chore(release): publish
- @napi-rs/cli@3.0.0-alpha.5
 - @napi-rs/triples@2.0.0-alpha.3
2023-07-18 11:07:16 +08:00
LongYinan
092f9d5290
ci: add release npm cli 2023-07-18 11:06:45 +08:00
LongYinan
4e0c9b14e4
fix(cli): created template missing macOS testing (#1659) 2023-07-18 10:49:20 +08:00
LongYinan
6d62b3f714
chore: upgrade dependencies (#1657) 2023-07-17 14:56:02 +08:00
renovate[bot]
f610129b11
fix(deps): update dependency @octokit/rest to v20 (#1653)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-07-13 18:13:49 +08:00
liuyi
8aef51a51a
fix cli watch build and remove unused --esm option (#1631)
* fix(cli): watch mode

* chore(cli): remove useless option

* Delete more esm option codes

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2023-06-21 19:35:08 +08:00
LongYinan
53cf696cf8
ci: reduce the complex of CI config (#1628) 2023-06-17 17:03:57 +08:00
liuyi
fb22a5ae07
fix(cli): incorrect behaviors (#1626)
* fix(cli): target selector is not available in interactive mode

* fix(cli): js binding file should export

* fix(cli): wrong node engine requirements syntax

* feat(cli): support esm module

* restore js binding implementation in v2

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2023-06-17 12:49:30 +08:00
renovate[bot]
e742e810ae
chore(deps): update dependency esbuild to ^0.18.0 (#1623)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-06-14 16:12:01 +08:00
LongYinan
e60b1a599b
fix(cli): add back override cargo by env (#1605) 2023-05-27 12:08:59 +08:00
LongYinan
c7d6ee6e4b
refactor(cli): --profile flag (#1604) 2023-05-27 12:00:43 +08:00
LongYinan
82c2113c24
fix(cli): revert back js-binding file (#1603) 2023-05-27 11:22:44 +08:00
Lucas Fernandes Nogueira
85836034ff
feat(cli): detect Cargo --profile argument (#1598) 2023-05-27 10:19:16 +08:00
kxxt
173553c037 ci: add riscv64gc-unknown-linux-gnu 2023-05-26 09:48:19 +08:00
kxxt
72fcd03d98 feat(target): riscv64gc-unknown-linux-gnu 2023-05-25 23:38:09 +08:00
Boshen
58600883dd
feat(cli): add --use-cross command for building with cross (#1584)
closes #1582
2023-05-09 09:30:30 +08:00
LongYinan
1d78f6c294
chore: upgrade npm dependencies (#1557) 2023-04-11 10:47:52 +08:00
LongYinan
a57a59f735
ci: remove depracated action (#1555) 2023-04-08 23:37:28 +08:00
forehal
b5c3c05755
chore: publish
- @napi-rs/cli@3.0.0-alpha.3
2023-04-07 15:00:31 +08:00
forehal
7fcd68f14d
fix(cli): incorrect new project template content 2023-04-07 14:58:12 +08:00
forehal
c3b49f0ca6
chore: publish
- @napi-rs/cli@3.0.0-alpha.2
2023-04-06 19:22:39 +08:00
liuyi
c9f5ee14b7
fast patches for napi/cli 3.0-alpha (#1553)
* fix(cli): use new napi config field

* fix(cli): avoid using node experimental feature to read self version

* fix(cli): correct linker environment

* fix(cli): missing wasi register env

* fix(cli): remove useless linker preset
2023-04-06 19:21:06 +08:00
forehal
5daf558ead
chore: publish
- @napi-rs/cli@3.0.0-alpha.1
 - @napi-rs/triples@2.0.0-alpha.1
2023-04-06 15:35:37 +08:00
forehal
e4c4a5fe5d
fix(cli): missing shebang prefix in cli entries 2023-04-06 15:34:07 +08:00
forehal
885d03d3ad chore: publish
- @napi-rs/cli@3.0.0-alpha.0
 - @napi-rs/triples@2.0.0-alpha.0
2023-04-06 11:06:13 +08:00
forehal
a781a4f27e feat(cli): brand new cli tool with both cli and programmatical usage (#1492)
BREAKING CHANGE: requires node >= 16 and some cli options have been renamed
2023-04-06 11:04:53 +08:00
Suyan
ea7e75ee74
chore: fix js binding template style (#1550)
Signed-off-by: suyanhanx <suyanhanx@gmail.com>
2023-03-30 20:30:26 +08:00
LongYinan
b896b90795
chore: publish
- @napi-rs/cli@2.15.2
2023-03-22 18:02:55 +08:00
LongYinan
5398b16238
fix(cli,napi-derive): backward compatible with older cli with #1531 (#1536) 2023-03-22 17:35:55 +08:00
LongYinan
8a086b67d6
chore: publish
- @napi-rs/cli@2.15.1
2023-03-21 18:49:47 +08:00
LongYinan
0f0837f5ca
fix(cli): dts pipe (#1532) 2023-03-21 18:47:43 +08:00
LongYinan
3d48d4464b
fix(cli,napi-derive): re-export types from shared crate (#1531)
* fix(cli,napi-derive): re-export types from shared crate

* chore: publish

 - @napi-rs/cli@2.15.1-alpha.0

* Clippy fix

* Fix memory testing
2023-03-21 18:12:52 +08:00
LongYinan
0d951cb3d9
chore: publish
- @napi-rs/cli@2.15.0
2023-03-21 13:38:58 +08:00
LongYinan
550ef7c3cc
feat: export registers in wasm32 target (#1529) 2023-03-20 18:42:27 +08:00
Francesco Benedetto
c8bd8924e2
fix(cli): export non const enums when generating typedefs (#1527)
* fix(cli): export non const enums when generating typedefs

* Make --const-enum as a build flag

---------

Co-authored-by: LongYinan <lynweklm@gmail.com>
2023-03-20 14:19:18 +08:00
LongYinan
11286b8a67
chore: publish
- @napi-rs/cli@2.14.8
2023-02-17 01:07:55 +08:00
liuyi
7281f533bd
fix(cli): always generate typedef file even native code never changes (#1489) 2023-02-16 22:24:40 +08:00
LongYinan
efacce7f66
chore: publish
- @napi-rs/cli@2.14.7
2023-02-08 17:03:21 +08:00
Sean Larkin
cb529d21cf
fix(cli): JS bindgen file now respects destDir (#1481) 2023-02-08 14:14:55 +08:00
LongYinan
5e7496f33d
chore: publish
- @napi-rs/cli@2.14.6
2023-02-02 23:09:12 +08:00
LongYinan
b2e1bb234f
chore(cli): upgrade cross platform testing toolchains (#1471) 2023-02-02 16:27:08 +08:00
LongYinan
9506e3fb14
chore: publish
- @napi-rs/cli@2.14.5
2023-01-29 16:56:03 +08:00
LongYinan
a302c9cb18
fix(cli): upload GitHub assets issue 2023-01-29 16:54:33 +08:00
LongYinan
6bf34eb091
chore: publish
- @napi-rs/cli@2.14.4
2023-01-20 21:35:16 +08:00
LongYinan
2f527938b2
fix(napi): build error with zig@0.10.1 2023-01-20 21:31:46 +08:00
LongYinan
bdbdbccb56
chore: zig 0.10.1 2023-01-19 13:31:02 +08:00
LongYinan
62b16d6a89
chore: upgrade npm dependencies (#1443) 2023-01-19 00:32:52 +08:00
LongYinan
c61b20234e
chore: publish
- @napi-rs/cli@2.14.3
2023-01-13 17:06:20 +08:00
Luke Deen Taylor
84921fc0a3
fix(cli): cleanup zig behaviors (#1432) 2023-01-11 22:04:23 +08:00
LongYinan
097c5d63db
chore: publish
- @napi-rs/cli@2.14.2
2023-01-10 13:51:04 +08:00
overlookmotel
cc53807fe2
fix(cli): CARGO env var (#1426) 2023-01-10 12:30:49 +08:00
LongYinan
83e157e101
chore: publish
- @napi-rs/cli@2.14.1
2023-01-03 21:02:49 +08:00
LongYinan
895e4caf95
fix(cli): android cmake build 2023-01-03 21:02:13 +08:00
LongYinan
abc4566bbb
chore(cli): update CI template (#1416) 2023-01-03 14:58:33 +08:00
Jarod Brennfleck
c58972ee0a
fix(cli): quote toml path (#1410)
Fixes issue when tomlPath has a space in it
2022-12-29 16:24:28 +08:00
LongYinan
1e8d20a559
chore: publish
- @napi-rs/cli@2.14.0
2022-12-25 20:28:31 +08:00
LongYinan
bc41c9778f
feat(cli): add --zig-link-only option (#1400) 2022-12-19 23:05:18 +08:00
Tadas Dailyda
870552e0ee cli: fix ci-template typo 2022-12-19 17:40:43 +08:00
Tadas Dailyda
cf68288232 cli: universal support for CI template 2022-12-19 17:40:43 +08:00
Tadas Dailyda
4832e932ce cli: 'artifacts' command small fix 2022-12-19 17:40:43 +08:00
Tadas Dailyda
fed35841e0 cli: 'artifacts' command update to deal with universal builds 2022-12-19 17:40:43 +08:00
Tadas Dailyda
cfd8d3dc50 cli: add 'universal' command 2022-12-19 17:40:43 +08:00
Tadas Dailyda
2afdfe7aee cli: darwin universal support in js-binding-template.ts 2022-12-19 17:40:43 +08:00
Tadas Dailyda
b8bb2e5e4a cli: tests 2022-12-19 17:40:43 +08:00
Tadas Dailyda
cc9c650949 cli: add universal-apple-darwin platform 2022-12-19 17:40:43 +08:00
LongYinan
6ad1740dac
chore: publish
- @napi-rs/cli@2.13.3
2022-12-15 22:00:46 +08:00
LongYinan
f2c10affee
fix(cli): set cmake toolchain for android cross build (#1394) 2022-12-15 21:59:13 +08:00
Javier Viola
36a897e27a
fix(cli): template to works with nix (#1391) 2022-12-15 21:18:14 +08:00
LongYinan
5e9a9ff0b8
chore: publish
- @napi-rs/cli@2.13.2
2022-12-09 19:18:26 +08:00
LongYinan
bd1d3fe0a6
fix(cli): ci template upgrade 2022-12-09 19:17:10 +08:00
LongYinan
05f3c4c2ed
chore: publish
- @napi-rs/cli@2.13.1
2022-12-09 18:57:38 +08:00
LongYinan
2abc94681e
fix(cli): zig cross armv7 (#1384) 2022-12-09 18:56:50 +08:00
LongYinan
f058614ee3
chore: publish
- @napi-rs/cli@2.13.0
2022-11-20 23:01:34 +08:00
LongYinan
28be7e256b
chore(cli): upgrade Node.js dependencies (#1368) 2022-11-20 22:59:35 +08:00
LongYinan
696c2ddcd8
feat(cli): auto choose the tooling for cross compiling (#1367) 2022-11-20 22:24:02 +08:00
Horu
d48d106588
ci: remove unused ci condition (#1363) 2022-11-14 12:11:15 +08:00
LongYinan
62fddaca9f
chore: publish
- @napi-rs/cli@2.12.1
2022-11-12 13:34:33 +08:00
Edward Elric
caeef4a675
fix(cli): incorrent version without npm folder 2022-11-10 23:44:39 +08:00
LongYinan
32cf02e633
fix(cli): compatible with zig 0.10.0 2022-11-05 00:11:23 +08:00
阿豪
7f82c95525
fix(cli): support help command (#1355) 2022-11-02 10:56:34 +08:00
LongYinan
1037e6f14d
chore: upgrade dependencies (#1349) 2022-10-23 23:03:18 +08:00
LongYinan
a353402a69
chore: publish
- @napi-rs/cli@2.12.0
2022-10-04 17:16:29 +08:00
messense
4279291f4b
feat(cli): parse Cargo.toml using cargo metadata (#1330) 2022-10-01 22:06:14 +08:00
LongYinan
d5a6445bee
chore(cli): increase ava timeout (#1314) 2022-09-14 17:01:53 +08:00
Wodann
f7c26cccbf
fix(cli): custom Cargo (build) target directories (#1300) 2022-09-09 18:54:53 +08:00
LongYinan
184c4af588
chore: upgrade npm dependencies 2022-08-23 20:18:25 +08:00
LongYinan
b7a3103f0c
feat(napi-derive): catch_unwind attribute (#1280) 2022-08-19 23:36:36 +08:00
LongYinan
304bddeae9
chore: publish
- @napi-rs/cli@2.11.4
2022-08-13 01:11:37 +08:00
LongYinan
8784ed9459
Merge pull request #1265 from liby/feature/update-ci-template
chore(napi): use recommended `vmactions/freebsd-vm@v0`
2022-08-12 17:40:10 +08:00
LongYinan
14aab065e7
fix(cli): zig cross to *-apple-darwin target 2022-08-12 16:52:21 +08:00
LongYinan
aad4712e0f
chore: publish
- @napi-rs/cli@2.11.3
2022-08-12 16:20:22 +08:00
LongYinan
1d1ef3d69e
fix(cli): ignore preinstall scripts on FreeBSD while installing yarn 2022-08-12 16:19:59 +08:00
Bryan Lee
b13d6b68a1 chore(napi): use recommended vmactions/freebsd-vm@v0 2022-08-12 14:43:16 +08:00
LongYinan
c6aeb06e04
chore: publish
- @napi-rs/cli@2.11.2
2022-08-12 13:26:17 +08:00
LongYinan
9b9cd5d23b
fix(cli): npm i -g flag is deprecated 2022-08-12 13:25:45 +08:00
LongYinan
4cd1c3aaf8
chore: publish
- @napi-rs/cli@2.11.1
2022-08-09 13:26:02 +08:00
LongYinan
0db6ae1282
style(cli): update lib.rs 2022-08-09 13:25:22 +08:00
LongYinan
1cf5a0dc75
fix(cli): add .yarn and __test__ folder to .npmignore 2022-08-09 13:24:21 +08:00
LongYinan
b8f96d517d
chore: publish
@napi-rs/cli@2.11.0
2022-08-07 16:08:34 +08:00
Amr Bashir
b54e698237
feat(cli): allow specifying an existing release (#1256) 2022-08-04 12:12:18 +08:00
Amr Bashir
3d2ca94392
feat(cli): add an option to specify the github release name (#1255) 2022-08-04 00:10:51 +08:00
Amr Bashir
0e75c59f0e
chore: improve *.node doesn't exist warning msg (#1254) 2022-08-03 08:01:15 +08:00
Amr Bashir
9be7ae2bf9
feat(cli): use CARGO_TARGET_DIR if set (#1251)
* feat: use `CARGO_TARGET_DIR` if set

* use `||` instead of `??`

* use `CARGO_BUILD_TARGET_DIR` also if set

* disable eslint prefer-nullish-coalescing
2022-07-31 22:41:32 +08:00
LongYinan
cb6fffd73f
feat(cli): support npmClient config (#1253) 2022-07-31 20:43:25 +08:00
LongYinan
e30019aa5c
chore(napi): update ci template 2022-07-31 18:01:47 +08:00
LongYinan
bb46793837
chore: publish
- @napi-rs/cli@2.10.3
2022-07-27 14:40:36 +08:00
LongYinan
fd2060baa4
fix(cli): android build due to GitHub Actions environments change
Ref: https://github.com/actions/virtual-environments/issues/5879
2022-07-27 14:40:07 +08:00
LongYinan
c8f946e4d5
chore: publish
- @napi-rs/cli@2.10.2
2022-07-23 00:01:17 +08:00
LongYinan
ed5fd4083c
fix(cli): upgrade freebsd ci 2022-07-23 00:00:42 +08:00
Ouyang Yadong
53051d0ef3 docs: fix typo 2022-07-22 15:34:41 +08:00
LongYinan
2d97986657
chore: publish
- @napi-rs/cli@2.10.1
2022-07-06 23:32:26 +08:00
LongYinan
5cfff2ad5c
chore(cli): upgrade npm dependencies 2022-07-06 21:18:00 +08:00
LongYinan
227de9efe0
fix(cli): android CI template 2022-06-30 19:43:37 +08:00
LongYinan
df5bb1ae30
chore: publish
- @napi-rs/cli@2.10.0
2022-06-10 18:24:43 +08:00
LongYinan
8f6a10c89a
feat(cli): upgrade new project template to yarn3 2022-06-10 18:07:05 +08:00
LongYinan
8bb4db349d
chore: upgrade dependencies 2022-06-04 01:26:35 +08:00
messense
beb75111fc
fix(cli): parse host target triple from rustc -vV (#1191) 2022-05-22 13:43:35 +08:00
LongYinan
a2b993acd2
chore: upgrade npm dependencies (#1182) 2022-05-14 18:56:50 +08:00
LongYinan
b797a243e2
chore: publish
- @napi-rs/cli@2.9.0
2022-05-14 17:03:09 +08:00
messense
1399288df5
feat(cli): allow specifying an alternative cargo binary via CARGO env var (#1181) 2022-05-14 15:03:31 +08:00
LongYinan
d728b3ab3c
chore: publish
- @napi-rs/cli@2.8.0
2022-05-07 15:49:00 +08:00
LongYinan
e778e400e9
chore: publish
- @napi-rs/cli@2.8.0-alpha.0
2022-05-06 23:05:27 +08:00
LongYinan
1bf072ad7d
refactor(napi): use libloading on Windows 2022-05-06 22:27:09 +08:00
LongYinan
652aa3cc57
feat(cli): new command upgrade
- Add .gitignore file
- Upgrade actions in CI.yml
- Using the new cross compile image for x86_64-linux-gnu and aarch64-linux-gnu
2022-05-03 17:24:48 +08:00
LongYinan
ce01255531
chore: publish
- @napi-rs/cli@2.7.0
2022-04-27 13:32:36 +08:00
LongYinan
cf6b2c9241
chore: upgrade dependencies 2022-04-27 00:57:57 +08:00
LongYinan
c3a35a0704
fix(cli): generated type def on multi impl blocks 2022-04-26 18:04:37 +08:00
Gabriel Francisco
c39060984d
feat(cli): add build option to not include the header in dts file (#1140)
* Add build option to not include the header in dts file

* Fix lint
2022-04-22 16:52:43 +08:00
LongYinan
1535e72150
chore: publish
- @napi-rs/cli@2.6.2
2022-04-02 02:34:10 +08:00
killa
6bef28a59b
fix: cargo metadata with large project (#1117)
Set `maxBuffer` to 10mb, cargo metadata may output
data more than 1mb(the nodejs default value).

Refs:
- https://github.com/napi-rs/napi-rs/issues/1116
2022-04-02 02:33:40 +08:00
LongYinan
dc87c46322
chore: publish
- @napi-rs/cli@2.6.1
2022-04-01 17:20:00 +08:00
LongYinan
8700da1776
fix(cli): should not throw if cargoName is provided but no package.name 2022-04-01 17:07:53 +08:00
LongYinan
a88bc57ea3
chore: publish
- @napi-rs/cli@2.6.0
2022-04-01 14:51:38 +08:00
LongYinan
0009379f31
chore: publish
- @napi-rs/cli@2.5.0
2022-04-01 14:50:23 +08:00
LongYinan
183c2d8896
ci: upgrade configuration 2022-04-01 14:33:34 +08:00
messense
20b1edc53b
feat(cli): add support for building binaries 2022-04-01 14:00:42 +08:00
LongYinan
ac8406c842
fix(cli): prevent crash if GITHUB_REPOSITORY is not specified 2022-04-01 13:34:49 +08:00
LongYinan
bd08787270
fix(cli): respect CARGO_BUILD_TARGET env variable 2022-04-01 13:30:16 +08:00
LongYinan
11967dec79
chore: upgrade dependencies 2022-04-01 12:10:56 +08:00
LongYinan
5005aaa5af
chore: upgrade dependencies 2022-03-13 18:30:11 +08:00
LongYinan
09ccfaad1d
fix(cli): use shell file path instead of commands for zig CC and CXX 2022-03-13 18:28:29 +08:00
LongYinan
1cac0ac804 feat(cli): upgrade ci.yml templates 2022-03-07 11:05:52 +08:00