diff --git a/package.json b/package.json index 67c02766..9c3c7723 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "test": "mocha ./tests/**/*.js --timeout 0 --exit", "prepublishOnly": "npm run build", "copy-files": "cp -r ./src/init/artifacts ./.build/cjs/src/init/ && cp -r ./src/init/artifacts ./.build/esm/src/init/ && cp -r ./src/init/update-artifacts ./.build/cjs/src/init/ && cp -r ./src/init/update-artifacts ./.build/esm/src/init/", - "link:local": "npm run build && npm link" + "link:local": "npm run build:clean && npm run build && npm link" }, "license": "ISC", "engines": { diff --git a/src/env/env.js b/src/env/env.js index e7179ca6..4695c703 100644 --- a/src/env/env.js +++ b/src/env/env.js @@ -95,7 +95,7 @@ async function startEnv(option) { await getDockerCompose(); await exec(`${versionTags} ${dockerComposeCmd} pull`); - await exec(`${versionTags} ${dockerComposeCmd} up -d --wait`); + await exec(`${versionTags} ${dockerComposeCmd} up -d`); await ensureNodeAndCompilerAvailable(); diff --git a/src/utils/utils.js b/src/utils/utils.js index d64afe5e..a2c68593 100644 --- a/src/utils/utils.js +++ b/src/utils/utils.js @@ -4,7 +4,7 @@ const config = require('../config/config.json'); // eslint-disable-next-line no-promise-executor-return const pause = async (duration) => new Promise((resolve) => setTimeout(resolve, duration)); -const ensureNodeAndCompilerAvailable = async (interval = 200, attempts = 1000) => { +const ensureNodeAndCompilerAvailable = async (interval = 100, attempts = 1200) => { // eslint-disable-next-line no-plusplus for (let i = 0; i < attempts; i++) { // eslint-disable-next-line no-await-in-loop diff --git a/tests/happy-path.js b/tests/happy-path.js index 6afd76eb..e8f9d58c 100644 --- a/tests/happy-path.js +++ b/tests/happy-path.js @@ -16,7 +16,7 @@ const exec = (cmd, options) => execP(`${fs.existsSync('~/.profile') ? '. ~/.prof describe('Happy Path', () => { before(async () => { - await exec('npm link'); + await exec('npm run link:local'); if (!fs.existsSync(cwd)) fs.mkdirSync(cwd); });