diff --git a/.travis.yml b/.travis.yml index 67f1dd1a..932e7ea1 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,8 +16,8 @@ stages: - release node_js: - - 'node' - 'lts/*' + - 'node' os: - linux @@ -27,6 +27,8 @@ os: before_install: # prevents windows error: npm ERR! ... git-sh-setup: file not found - if [ "$TRAVIS_OS_NAME" = "windows" ]; then export PATH=/c/PROGRA~1/Git/usr/bin:/c/PROGRA~1/Git/mingw64/libexec/git-core:$PATH ; fi + # workspaces require npm 7 or above + - npm install -g npm@latest script: npx nyc -s npm run test -- -- -- -t node --bail after_success: npx nyc report --reporter=text-lcov > coverage.lcov && npx codecov diff --git a/package.json b/package.json index 12cbaffa..482ef390 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "version": "1.0.0", "description": "JS implementation of the IPFS UnixFS", "scripts": { - "postinstall": "lerna bootstrap", "reset": "lerna run clean && rm -rf packages/*/node_modules node_modules", "test": "lerna run test", "coverage": "lerna run coverage", @@ -47,5 +46,11 @@ "Diogo Silva ", "jbenet ", "Bernard Mordan " - ] + ], + "workspaces": [ + "packages/*" + ], + "engines": { + "npm": ">=7.0.0" + } }