Commit graph

312 commits

Author SHA1 Message Date
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
LongYinan
ee0279e540 feat(cli): add libc filed in native package.json 2022-03-06 22:22:43 +08:00
LongYinan
871cf5554d
chore: publish
- @napi-rs/cli@2.4.5
2022-03-05 18:48:16 +08:00
LongYinan
9f3fbaa8e0
fix(napi): race issues with Node.js worker_thread (#1081)
Co-authored-by: Jan Piotrowski <piotrowski+github@gmail.com>
2022-03-05 14:14:32 +08:00
Stéphan Kochen
e69f0230c2 fix(cli): temporary dts path may not be writable 2022-03-03 10:45:27 +01:00
LongYinan
c18fb10f13
chore: publish
- @napi-rs/cli@2.4.4
2022-02-11 12:38:16 +08:00
LongYinan
f9c618e046
fix(cli): generate ExternalObject type on demand 2022-02-10 18:37:04 +08:00
LongYinan
7c67cc143c
chore: publish
- @napi-rs/cli@2.4.3
2022-02-09 20:43:03 +08:00
LongYinan
5f359dfaae
fix(cli): compatible for Node.js 10x 2022-02-09 12:41:56 +08:00
LongYinan
1531489e18
chore: upgrade to yarn3 2022-01-24 17:25:40 +08:00
LongYinan
cb0c2a3350
chore: publish
- @napi-rs/cli@2.4.2
2022-01-19 17:20:49 +08:00
LongYinan
25f6754a71
fix(cli): js binding template 2022-01-19 17:20:27 +08:00
LongYinan
250726a61a
chore: publish
- @napi-rs/cli@2.4.1
2022-01-18 14:37:15 +08:00
LongYinan
63a16d0a27
fix(cli): missing shebang in zig-cross sh file 2022-01-18 13:41:59 +08:00
LongYinan
1799aa94e3
fix(cli): swap -lgcc_s with -lunwind 2022-01-17 14:05:52 +08:00
messense
d84cbe88bd fix(cli): properly handle RUSTFLAGS env var 2022-01-13 21:36:59 +08:00
LongYinan
110f2196a4
chore: publish
- @napi-rs/cli@2.4.0
2022-01-13 18:21:44 +08:00
LongYinan
95d49f8cf4
fix(cli): zig abi should pass to linker 2022-01-13 18:21:20 +08:00
messense
887bdb9d29 feat(cli): add --strip option for removing symbols 2022-01-13 17:00:04 +08:00
LongYinan
efcd6ba8a5
chore: publish
- @napi-rs/cli@2.3.1
2022-01-13 14:44:49 +08:00
LongYinan
472ac10c67
fix(cli): missing zig-abi-suffix support 2022-01-13 14:26:29 +08:00
LongYinan
5ef1d11e27
chore: publish
- @napi-rs/cli@2.3.0
2022-01-06 17:41:42 +08:00
LongYinan
0db94ccd66
feat(cli): support macOS with --zig flag 2022-01-06 12:53:45 +08:00
LongYinan
d86e2a68ed
chore: publish
- @napi-rs/cli@2.2.1
2022-01-04 10:59:51 +08:00
LongYinan
eb79ccebbe
fix(cli): handle lld not found 2022-01-03 22:03:10 +08:00
LongYinan
bc570c2918
fix(cli): shell: true instead of bash 2022-01-03 15:23:08 +08:00
messense
ca3790bdf1
Add support for cross compilation with Zig (#983)
feat(cli): add support for cross compilation with Zig
2021-12-31 11:20:55 +08:00
LongYinan
3634d03f81
chore(cli): remove substr usage 2021-12-27 18:36:57 +08:00
LongYinan
556ace8f33
fix(napi-derive,cli): export type alias for original name 2021-12-25 17:36:12 +08:00
LongYinan
e6a30ffcca
fix(napi-derive): return instance from non-default constructor class
Fix https://github.com/napi-rs/napi-rs/issues/933
2021-12-24 21:37:47 +08:00
LongYinan
c25cfc5773
test(cli): add android target triple test 2021-12-24 11:39:53 +08:00
LongYinan
db40b6a874
chore(cli): docs enhancement 2021-12-23 17:47:43 +08:00
Hana
894334e8f1
fix(cli): fix crate-type hint 2021-12-23 03:10:44 +08:00