Commit graph

347 commits

Author SHA1 Message Date
LongYinan
8d85509119
chore: upgrade to yarn 4 (#1774) 2023-11-02 20:10:08 +08:00
Raphael Darley
fcb5c2bdd0
fix(cli): switch name parsing to allow periods in name
Co-authored-by: LongYinan <lynweklm@gmail.com>
2023-11-02 19:52:23 +08:00
LongYinan
13d0ce075e
feat: integrate with emnapi (#1669)
* Integrate with emnapi

* resolve conflict

* ignore wasm

* generate wasi file

* Add wasi test to workflow

* Fix wasi template

* emnapi new initialize api

* Finish test

* Purne tsconfig

* Generate wasi worker

* Fix electron test

* Finalize check

* Noop adjust_external_memory

* Apply cr suggestions
2023-11-02 12:57:11 +08:00
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