Skip to content

Commit

Permalink
separate prepare and prepack scripts to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
frangio committed May 13, 2020
1 parent 4fe31f8 commit fa36244
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
"lint:js": "eslint --ignore-path .gitignore .",
"lint:js:fix": "eslint --ignore-path .gitignore . --fix",
"lint:sol": "solhint --max-warnings 0 \"contracts/**/*.sol\"",
"prepare": "node scripts/prepare.js",
"prepare": "npm run compile",
"prepack": "node scripts/remove-ignored-artifacts.js",
"release": "scripts/release/release.sh",
"version": "scripts/release/version.sh",
"test": "mocha --exit --recursive"
Expand Down
3 changes: 0 additions & 3 deletions scripts/prepare.js → scripts/remove-ignored-artifacts.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,12 @@

const fs = require('fs');
const path = require('path');
const cp = require('child_process');
const match = require('micromatch');

function readJSON (path) {
return JSON.parse(fs.readFileSync(path));
}

cp.spawnSync('npm', ['run', 'compile'], { stdio: 'inherit' });

const pkgFiles = readJSON('package.json').files;

// Get only negated patterns.
Expand Down

0 comments on commit fa36244

Please sign in to comment.