Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Commit

Permalink
fix(infrastructure): update check-pkg-for-release.js (#4857)
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Goo authored Jun 25, 2019
1 parent c7efc10 commit 0cd775c
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions scripts/check-pkg-for-release.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ if (!new RegExp('packages/[^/]+/package.json$').test(CLI_PACKAGE_JSON_RELATIVE_P
}

const CLI_PACKAGE_JSON = require(path.resolve(CLI_PACKAGE_JSON_RELATIVE_PATH));
const REPO_PACKAGE_JSON = require(path.resolve('package.json'));

const WEBPACK_CONFIG_RELATIVE_PATH = 'webpack.config.js';
const WEBPACK_CONFIG = require(path.resolve(WEBPACK_CONFIG_RELATIVE_PATH));
Expand Down Expand Up @@ -88,7 +87,6 @@ main();
function main() {
checkPublicConfigForNewComponent();
if (CLI_PACKAGE_JSON.name !== MASTER_PACKAGE_JSON.name) {
checkNameIsPresentInAllowedScope();
if (CLI_PACKAGE_JSON.private) {
console.log('Skipping private component', CLI_PACKAGE_JSON.name);
} else {
Expand All @@ -111,13 +109,6 @@ function checkPublicConfigForNewComponent() {
}
}

function checkNameIsPresentInAllowedScope() {
const name = getPkgName();
assert.notEqual(REPO_PACKAGE_JSON.config['validate-commit-msg']['scope']['allowed'].indexOf(name), -1,
'FAILURE: Component ' + CLI_PACKAGE_JSON.name + ' is not added to allowed scope. Please check package.json ' +
'and add ' + name + ' to config["validate-commit-msg"]["scope"]["allowed"] before commit.');
}

function checkDependencyAddedInWebpackConfig() {
// Check if css has been added to webpack config
checkCSSDependencyAddedInWebpackConfig();
Expand Down

0 comments on commit 0cd775c

Please sign in to comment.