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
```
This commit is contained in:
Chris
2024-04-17 06:49:10 -04:00
committed by GitHub
parent 99d22cde2f
commit 09b905415b
2 changed files with 14 additions and 0 deletions
+4
View File
@@ -8,3 +8,7 @@
/*.s
/llvm-project
/llvm18.0
node_modules
artifacts
tmp
package-lock.json
+10
View File
@@ -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"
]
}