Skip to content

Commit

Permalink
chore: merge pull request #5 from websublime/feature/monorepo
Browse files Browse the repository at this point in the history
feat: monorepo struct api
  • Loading branch information
miguelramos authored Jul 3, 2024
2 parents 722ad9e + 19ca45a commit ba349a4
Show file tree
Hide file tree
Showing 9 changed files with 460 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,27 @@ jobs:
test:
name: Test Suite
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Create pnpm-lock.yaml
run: |
echo "node-version: 20" > pnpm-lock.yaml
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
#cache: 'pnpm'
- name: Delete pnpm-lock.yaml
run: |
rm -f pnpm-lock.yaml
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
Expand Down
96 changes: 96 additions & 0 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ serde_json = "1.0.111"
regex = "1.10.3"
wax = { version = "0.6.0", features = ["walk"] }
napi-derive = "2.16.8"
napi = { version = "2.16.7", default-features = false, features = ["napi4"] }
napi = { version = "2.16.7", default-features = false, features = ["napi9", "serde-json", "tokio_rt"] }
package_json_schema = "0.2.1"
icu = "1.5.0"
version-compare = "0.2"
Expand Down
16 changes: 16 additions & 0 deletions packages/package-a/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@scope/package-a",
"version": "1.0.0",
"description": "",
"main": "index.mjs",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "node index.mjs"
},
"dependencies": {
"@scope/package-b": "workspace:*"
},
"keywords": [],
"author": "",
"license": "ISC"
}
13 changes: 13 additions & 0 deletions packages/package-b/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@scope/package-b",
"version": "1.0.0",
"description": "",
"main": "index.mjs",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "node index.mjs"
},
"keywords": [],
"author": "",
"license": "ISC"
}
1 change: 1 addition & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ extern crate napi_derive;

pub mod agent;
pub mod filesystem;
pub mod monorepo;
2 changes: 2 additions & 0 deletions src/monorepo/mod.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pub mod packages;
pub mod utils;
Loading

0 comments on commit ba349a4

Please sign in to comment.