diff --git a/package.json b/package.json index 8475df63ff4..99f199422e9 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ }, "scripts": { "bootstrap": "lerna bootstrap", - "clean:all": "rm -rf ./node_modules && rm -rf ./packages/*/node_modules", + "clean:all": "rimraf ./node_modules && rimraf ./packages/*/node_modules", "clean:install": "npm run clean:all && npm install", "clean:obsolete-snapshots": "npm test -- -u", "compile": "lerna run compile", @@ -77,6 +77,7 @@ "react-addons-test-utils": "15.4.2", "react-dom": "15.4.2", "react-router": "^3.0.2", + "rimraf": "^2.6.1", "shelljs": "^0.7.6", "stylelint": "^7.8.0", "stylelint-config-sass-guidelines": "^2.0.0" diff --git a/packages/terra-arrange/package.json b/packages/terra-arrange/package.json index ba7e2fc739c..d6d002bd3fd 100644 --- a/packages/terra-arrange/package.json +++ b/packages/terra-arrange/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/cerner/terra-core#readme", "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-badge/package.json b/packages/terra-badge/package.json index 02b5b2fd346..f73db570ee1 100644 --- a/packages/terra-badge/package.json +++ b/packages/terra-badge/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/cerner/terra-core#readme", "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-base/package.json b/packages/terra-base/package.json index 2f96b636ad0..a2338496e34 100644 --- a/packages/terra-base/package.json +++ b/packages/terra-base/package.json @@ -32,7 +32,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-button-group/package.json b/packages/terra-button-group/package.json index 845b9862114..1f9ce5435a5 100644 --- a/packages/terra-button-group/package.json +++ b/packages/terra-button-group/package.json @@ -39,7 +39,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-button/package.json b/packages/terra-button/package.json index 4b4377d5100..d06a15b8fb3 100644 --- a/packages/terra-button/package.json +++ b/packages/terra-button/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/cerner/terra-core#readme", "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-content-container/package.json b/packages/terra-content-container/package.json index 51177ecddaa..2429cdcda94 100644 --- a/packages/terra-content-container/package.json +++ b/packages/terra-content-container/package.json @@ -36,7 +36,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-content/package.json b/packages/terra-content/package.json index 4e50abf61a5..5035aa5f0ba 100644 --- a/packages/terra-content/package.json +++ b/packages/terra-content/package.json @@ -37,7 +37,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-date-picker/package.json b/packages/terra-date-picker/package.json index fc03781638b..f713fe779b1 100644 --- a/packages/terra-date-picker/package.json +++ b/packages/terra-date-picker/package.json @@ -44,7 +44,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-grid/package.json b/packages/terra-grid/package.json index 14a19d33596..ed344f37a30 100644 --- a/packages/terra-grid/package.json +++ b/packages/terra-grid/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/cerner/terra-core#readme", "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-i18n/package.json b/packages/terra-i18n/package.json index ce96d44cfc3..33a03a44a7d 100644 --- a/packages/terra-i18n/package.json +++ b/packages/terra-i18n/package.json @@ -37,7 +37,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-icon/package.json b/packages/terra-icon/package.json index b7e008722f7..5c1cf3dfb28 100644 --- a/packages/terra-icon/package.json +++ b/packages/terra-icon/package.json @@ -39,7 +39,7 @@ }, "scripts": { "compilescripts": "npm run compilescripts:clean && npm run compilescripts:build", - "compilescripts:clean": "rm -rf scripts/lib", + "compilescripts:clean": "$(cd ..; npm bin)/rimraf scripts/lib", "compilescripts:build": "$(cd ..; npm bin)/babel scripts/src --out-dir scripts/lib --copy-files", "migrate-csv": "node scripts/lib/migrate-csv/index.js", "migrate-svg": "node scripts/lib/migrate-svg/index.js", @@ -47,7 +47,7 @@ "generate-example": "node scripts/lib/generate-example/index.js", "migrate-cerner-one-icons": "npm run compilescripts && npm run migrate-csv && npm run migrate-svg && npm run generate-icon && npm run generate-example", "compile": "npm run compile:clean && npm run compile:build && npm run compilescripts", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-image/package.json b/packages/terra-image/package.json index 4282299a508..09fcce125e3 100644 --- a/packages/terra-image/package.json +++ b/packages/terra-image/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/cerner/terra-core#readme", "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-legacy-theme/package.json b/packages/terra-legacy-theme/package.json index 17d85daead4..49c30a0e4c0 100644 --- a/packages/terra-legacy-theme/package.json +++ b/packages/terra-legacy-theme/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/cerner/terra-core#readme", "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-list/package.json b/packages/terra-list/package.json index 4dc636a77ea..d4007bed4ce 100644 --- a/packages/terra-list/package.json +++ b/packages/terra-list/package.json @@ -38,7 +38,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-markdown/package.json b/packages/terra-markdown/package.json index 60d7c21fe0c..5ccf3da4cef 100644 --- a/packages/terra-markdown/package.json +++ b/packages/terra-markdown/package.json @@ -32,7 +32,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-mixins/package.json b/packages/terra-mixins/package.json index ec9e8197a75..606c8629113 100644 --- a/packages/terra-mixins/package.json +++ b/packages/terra-mixins/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/cerner/terra-core#readme", "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:scss", "lint:scss": "$(cd ..; npm bin)/stylelint src/**/*.scss", diff --git a/packages/terra-modal/package.json b/packages/terra-modal/package.json index 6199406febb..cf1192a25dc 100644 --- a/packages/terra-modal/package.json +++ b/packages/terra-modal/package.json @@ -38,7 +38,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-progress-bar/package.json b/packages/terra-progress-bar/package.json index a1b58003562..d1b35c09aa2 100644 --- a/packages/terra-progress-bar/package.json +++ b/packages/terra-progress-bar/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/cerner/terra-core#readme", "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-props-table/package.json b/packages/terra-props-table/package.json index ca908e00062..ddb5f64ee79 100644 --- a/packages/terra-props-table/package.json +++ b/packages/terra-props-table/package.json @@ -35,7 +35,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-responsive-element/package.json b/packages/terra-responsive-element/package.json index 25959cb2af0..bf9fcbaf74b 100644 --- a/packages/terra-responsive-element/package.json +++ b/packages/terra-responsive-element/package.json @@ -36,7 +36,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-slide-panel/package.json b/packages/terra-slide-panel/package.json index 975c07d5154..c62d79503e3 100644 --- a/packages/terra-slide-panel/package.json +++ b/packages/terra-slide-panel/package.json @@ -36,7 +36,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-standout/package.json b/packages/terra-standout/package.json index 53ed01b0147..be4a91d4459 100644 --- a/packages/terra-standout/package.json +++ b/packages/terra-standout/package.json @@ -23,7 +23,7 @@ "homepage": "https://github.com/cerner/terra-core#readme", "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-status/package.json b/packages/terra-status/package.json index 70676c51631..05dc183cef5 100644 --- a/packages/terra-status/package.json +++ b/packages/terra-status/package.json @@ -22,7 +22,7 @@ "homepage": "https://github.com/cerner/terra-core#readme", "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-table/package.json b/packages/terra-table/package.json index 3b6d8da8762..2bbb6f8aa15 100644 --- a/packages/terra-table/package.json +++ b/packages/terra-table/package.json @@ -38,7 +38,7 @@ }, "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore", diff --git a/packages/terra-title/package.json b/packages/terra-title/package.json index 44051f10c25..82c55a1d9cc 100644 --- a/packages/terra-title/package.json +++ b/packages/terra-title/package.json @@ -23,7 +23,7 @@ "homepage": "https://github.com/cerner/terra-core#readme", "scripts": { "compile": "npm run compile:clean && npm run compile:build", - "compile:clean": "rm -rf lib", + "compile:clean": "$(cd ..; npm bin)/rimraf lib", "compile:build": "$(cd ..; npm bin)/babel src --out-dir lib --copy-files", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "$(cd ..; npm bin)/eslint --ext .js,.jsx . --ignore-path ../../.eslintignore",