diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index dcedca86..708b1c31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,6 +26,7 @@ jobs: node-version: ${{ matrix.node-version }} - run: npm ci - run: npm run build --if-present + - run: npm run compile --if-present - name: Start local chain run: | npm run chain & diff --git a/package.json b/package.json index 9e6a2ef7..7111524e 100644 --- a/package.json +++ b/package.json @@ -5,6 +5,7 @@ "scripts": { "chain": "cd packages/ethernaut-toolbox/test/fixture-projects/basic-project && npx hardhat node --hostname 127.0.0.1 --port 8545", "build": "npm run build --workspaces", + "compile": "npm run compile --workspaces", "lint": "eslint 'packages/**/*.js'", "format": "prettier --write 'packages/**/*.js'", "test": "npm run test --workspaces" diff --git a/packages/common/package.json b/packages/common/package.json index 2d98d558..82f36e13 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -4,6 +4,7 @@ "private": true, "scripts": { "build": "npm run install:test", + "compile": "echo 'No compile step'", "install:test": "cd test/fixture-projects/basic-project && npm install", "test": "nyc mocha --exit --timeout 60000 --require 'test/setup.js' --recursive '../../**/*.test.js' --ignore '../../fixture-projects/**/*'" }, diff --git a/packages/ethernaut-ai/package.json b/packages/ethernaut-ai/package.json index 019c0081..be69c1a9 100644 --- a/packages/ethernaut-ai/package.json +++ b/packages/ethernaut-ai/package.json @@ -5,6 +5,7 @@ "main": "src/index.js", "scripts": { "build": "npm run install:test", + "compile": "echo 'No compile step'", "install:test": "cd test/fixture-projects/basic-project && npm install", "test": "nyc mocha --exit --timeout 60000 --require 'test/setup.js' --recursive '../../**/*.test.js' --ignore '../../fixture-projects/**/*'" }, diff --git a/packages/ethernaut-challenges/package.json b/packages/ethernaut-challenges/package.json index 82fe89c3..75358b72 100644 --- a/packages/ethernaut-challenges/package.json +++ b/packages/ethernaut-challenges/package.json @@ -4,7 +4,8 @@ "description": "Play the Open Zeppelin ethernaut challenges in the cli", "main": "src/index.js", "scripts": { - "build": "hardhat compile && npm run install:test", + "build": "npm run install:test", + "compile": "hardhat compile", "install:test": "cd test/fixture-projects/basic-project && npm install", "extract": "node ./scripts/extract.js", "test": "nyc mocha --exit --timeout 60000 --require 'test/setup.js' --recursive '../../**/*.test.js' --ignore '../../fixture-projects/**/*'" diff --git a/packages/ethernaut-cli/package.json b/packages/ethernaut-cli/package.json index 25915e45..44a8dafc 100644 --- a/packages/ethernaut-cli/package.json +++ b/packages/ethernaut-cli/package.json @@ -24,6 +24,7 @@ }, "scripts": { "build": "echo 'No build step'", + "compile": "echo 'No compile step'", "test": "nyc mocha --exit --timeout 240000 --require 'test/setup.js' --recursive 'test/**/*.test.js' --ignore '../../fixture-projects/**/*'" }, "devDependencies": { diff --git a/packages/ethernaut-interact/package.json b/packages/ethernaut-interact/package.json index 9ec33da3..4f3a4a8f 100644 --- a/packages/ethernaut-interact/package.json +++ b/packages/ethernaut-interact/package.json @@ -5,7 +5,8 @@ "main": "src/index.js", "scripts": { "build": "npm run install:test", - "install:test": "cd test/fixture-projects/basic-project && npm install && hardhat compile", + "compile": "cd test/fixture-projects/basic-project && npx hardhat compile", + "install:test": "cd test/fixture-projects/basic-project && npm install", "test": "nyc mocha --exit --timeout 60000 --require 'test/setup.js' --recursive '../../**/*.test.js' --ignore '../../fixture-projects/**/*'" }, "author": "", diff --git a/packages/ethernaut-toolbox/package.json b/packages/ethernaut-toolbox/package.json index 551680b9..a3c14add 100644 --- a/packages/ethernaut-toolbox/package.json +++ b/packages/ethernaut-toolbox/package.json @@ -5,6 +5,7 @@ "main": "src/index.js", "scripts": { "build": "npm run install:test", + "compile": "echo 'No compile step'", "install:test": "cd test/fixture-projects/basic-project && npm install", "test": "nyc mocha --exit --timeout 60000 --require 'test/setup.js' --recursive '../../**/*.test.js' --ignore '../../fixture-projects/**/*'" }, diff --git a/packages/ethernaut-ui/package.json b/packages/ethernaut-ui/package.json index c4b52181..71aecf52 100644 --- a/packages/ethernaut-ui/package.json +++ b/packages/ethernaut-ui/package.json @@ -5,6 +5,7 @@ "main": "src/index.js", "scripts": { "build": "npm run install:test", + "compile": "echo 'No compile step'", "install:test": "cd test/fixture-projects/basic-project && npm install", "test": "nyc mocha --exit --timeout 60000 --require 'test/setup.js' --recursive '../../**/*.test.js' --ignore '../../fixture-projects/**/*'" },