From 09b905415bb06ccc79debceec35cef16c2753cae Mon Sep 17 00:00:00 2001 From: Chris <100840345+0xf333@users.noreply.github.com> Date: Wed, 17 Apr 2024 06:49:10 -0400 Subject: [PATCH] feat: added npm workspaces support (#4) Description =========== - Introduced npm workspaces to manage CLI tests from the root directory. - Enabled simplified npm dependency installation from the root. - Updated .gitignore to align with the new workspace structure. Usage ===== From the root directory To install repo npm packages, run: ``` npm install && npm fund ``` To run related tests, run: ``` npm run test:cli ``` --- .gitignore | 4 ++++ package.json | 10 ++++++++++ 2 files changed, 14 insertions(+) create mode 100644 package.json diff --git a/.gitignore b/.gitignore index 50647f5..4bc1957 100644 --- a/.gitignore +++ b/.gitignore @@ -8,3 +8,7 @@ /*.s /llvm-project /llvm18.0 +node_modules +artifacts +tmp +package-lock.json \ No newline at end of file diff --git a/package.json b/package.json new file mode 100644 index 0000000..81f1c51 --- /dev/null +++ b/package.json @@ -0,0 +1,10 @@ +{ + "name": "root", + "private": true, + "scripts": { + "test:cli": "npm run test -w crates/solidity/src/tests/cli-tests" + }, + "workspaces": [ + "crates/solidity/src/tests/cli-tests" + ] +}