Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make necessary changes for npm release #120

Merged
merged 9 commits into from
Jan 21, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/release-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
- name: Download all artifacts
uses: dawidd6/action-download-artifact@v2
with:
workflow: build.yml
workflow: node-build.yml
path: crates/node-litesvm/artifacts
- name: Move artifacts
run: cd crates/node-litesvm/ && yarn artifacts
- name: Compile Typescript
run: crates/node-litesvm/ && yarn tsc
run: cd crates/node-litesvm/ && yarn tsc
- name: Publish
run: |
cd crates/node-litesvm/
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion crates/node-litesvm/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-4.5.3.cjs
plugins:
- path: .yarn/plugins/@yarnpkg/plugin-version.cjs
spec: "@yarnpkg/plugin-version"
2 changes: 1 addition & 1 deletion crates/node-litesvm/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "litesvm-node"
version = "0.0.0"
version = "0.1.0"
include = ["/src", "build.rs"]
repository = "https://github.com/LiteSVM/litesvm"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion crates/node-litesvm/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litesvm-darwin-arm64",
"version": "0.0.0",
"version": "0.1.0",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/node-litesvm/npm/darwin-universal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litesvm-darwin-universal",
"version": "0.0.0",
"version": "0.1.0",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/node-litesvm/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litesvm-darwin-x64",
"version": "0.0.0",
"version": "0.1.0",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/node-litesvm/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litesvm-linux-x64-gnu",
"version": "0.0.0",
"version": "0.1.0",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/node-litesvm/npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "litesvm-linux-x64-musl",
"version": "0.0.0",
"version": "0.1.0",
"os": [
"linux"
],
Expand Down
32 changes: 13 additions & 19 deletions crates/node-litesvm/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
{
"name": "litesvm",
"version": "0.0.0",
"version": "0.1.0",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": ["dist/"],
"files": [
"dist/"
],
"napi": {
"name": "litesvm",
"triples": {
"defaults": false,
"additional": [
"x86_64-apple-darwin",
"x86_64-unknown-linux-gnu",
"aarch64-apple-darwin",
"aarch64-linux-android",
"aarch64-unknown-linux-gnu",
"aarch64-unknown-linux-musl",
"aarch64-pc-windows-msvc",
"armv7-unknown-linux-gnueabihf",
"armv7-unknown-linux-musleabihf",
"x86_64-unknown-linux-musl",
"x86_64-unknown-freebsd",
"i686-pc-windows-msvc",
"armv7-linux-androideabi",
"universal-apple-darwin",
"riscv64gc-unknown-linux-gnu"
"universal-apple-darwin"
]
}
},
Expand Down Expand Up @@ -67,12 +62,11 @@
"test": "jest",
"tsc": "tsc && cp litesvm/internal.d.ts dist/internal.d.ts",
"universal": "napi universal",
"version": "napi version",
"bumpPatch": "yarn version --no-git-tag-version --patch && cargo bump patch && napi version && cargo tree",
"bumpMinor": "yarn version --no-git-tag-version --minor && cargo bump minor && napi version && cargo tree",
"bumpMajor": "yarn version --no-git-tag-version --major && cargo bump major && napi version && cargo tree",
"cargoBump": "cargo set-version --package litesvm-node --bump",
"bumpPatch": "yarn version --no-git-tag-version --patch && napi version && cargo tree",
"bumpMinor": "yarn version --no-git-tag-version --minor && napi version && cargo tree",
"bumpMajor": "yarn version --no-git-tag-version --major && napi version && cargo tree",
"docs:dev": "NODE_OPTIONS=--openssl-legacy-provider vuepress dev docs",
"docs:build": "NODE_OPTIONS=--openssl-legacy-provider vuepress build docs"
},
"packageManager": "yarn@4.5.3"
}
}
Loading
Loading