This pull request is trying to add wasm32-wasi target support for the nx/native To test the build, you can run the following commands: - `rustup target add wasm32-wasip1-threads` - `pnpm exec napi build --release --platform --package-json-path packages/nx/package.json --manifest-path packages/nx/Cargo.toml --js ./native-bindings.js -o packages/nx/src/native --target wasm32-wasip1-threads` And the wasm file will be built at packages/nx/src/native/nx.wasm32-wasi.wasm Blocked by: - Support @napi-rs/cli 3.0 Cammisuli/monodon#48 - https://github.com/napi-rs/napi-rs/issues/2009 The pseudo_terminal mod is excluded on the wasm32 targets, which is as expected. The watch mod is excluded because of the upstream `watchexec` deps introduced by ignore-files don't support the wasi target at this moment (but we can improve it). ## Related Issues Fixes https://github.com/nrwl/nx/issues/21860 Fixes https://github.com/nrwl/nx/issues/23821 --------- Co-authored-by: FrozenPandaz <jasonjean1993@gmail.com>
49 lines
1.3 KiB
Plaintext
49 lines
1.3 KiB
Plaintext
tmp
|
|
/test
|
|
/build
|
|
node_modules
|
|
/package.json
|
|
/pnpm-lock.yaml
|
|
packages/workspace/src/generators/**/files/**/*.json
|
|
packages/angular/src/schematics/**/files/**/*.json
|
|
packages/angular/src/migrations/**/files/**/*.json
|
|
packages/web/src/generators/**/files/**/*.json
|
|
packages/node/src/schematics/**/files/**/*.json
|
|
packages/express/src/schematics/**/files/**/*.json
|
|
packages/nest/src/schematics/**/files/**/*.json
|
|
packages/react/src/schematics/**/files/**/*.json
|
|
packages/jest/src/schematics/**/files/**/*.json
|
|
packages/nx/src/plugins/js/lock-file/__fixtures__/**/*.*
|
|
packages/**/schematics/**/files/**/*.html
|
|
packages/**/generators/**/files/**/*.html
|
|
packages/nx/src/native/**/*.rs
|
|
packages/nx/src/native/browser.js
|
|
packages/nx/src/native/nx.wasi-browser.js
|
|
packages/nx/src/native/nx.wasi.cjs
|
|
packages/nx/src/native/wasi-worker-browser.mjs
|
|
packages/nx/src/native/wasi-worker.mjs
|
|
packages/nx/src/native/native-bindings.js
|
|
packages/nx/src/native/index.d.ts
|
|
nx-dev/nx-dev/.next/
|
|
nx-dev/nx-dev/public/documentation
|
|
graph/client/src/assets/environment.js
|
|
graph/client/src/assets/dev/environment.js
|
|
graph/client/src/assets/generated-graphs
|
|
graph/client/src/assets/generated-project-graphs
|
|
graph/client/src/assets/generated-task-graphs
|
|
/.vscode
|
|
/.idea
|
|
/.fleet
|
|
/.github
|
|
/coverage
|
|
/.yarn
|
|
/.verdaccio/build/local-registry
|
|
/dist
|
|
/.env
|
|
CODEOWNERS
|
|
|
|
/.nx/cache
|
|
|
|
.pnpm-store
|
|
|
|
/.nx/workspace-data |