diff --git a/.circleci/config.yml b/.circleci/config.yml index 42f43cc254..2a7280016e 100755 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -90,7 +90,7 @@ jobs: command: | echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc echo "//registry.yarnpkg.com/:_authToken=$NPM_TOKEN" >> ~/.npmrc - EDGE_BUILD=1 yarn build + BUILD_SUFFIX=edge yarn build npm publish for p in packages/*; do cd $p ; npm publish ; cd - ; done diff --git a/build/package.js b/build/package.js index e0db3606e2..d40d25b498 100644 --- a/build/package.js +++ b/build/package.js @@ -7,7 +7,7 @@ import { builtinsMap } from './builtins' const DEFAULTS = { distDir: 'dist', - edge: Boolean(process.env.EDGE_BUILD) + buildSuffix: Boolean(process.env.BUILD_SUFFIX) } export default class Package extends EventEmitter { @@ -87,8 +87,8 @@ export default class Package extends EventEmitter { build() { this.emit('build:before') - if (this.edge) { - this.convertTo('edge') + if (this.buildSuffix) { + this.convertTo(this.buildSuffix) } this.logger.info('Cleaning up')