Skip to content
This repository has been archived by the owner on May 22, 2024. It is now read-only.

Commit

Permalink
updated prettify script & package.jsons
Browse files Browse the repository at this point in the history
  • Loading branch information
sdadn committed May 13, 2024
1 parent 3e96e45 commit e82816d
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,15 +33,15 @@
"NOTICE",
"LICENSE"
],
"peerDependencies": {
"webpack": "4 || 5"
},
"dependencies": {
"chalk": "4",
"find-root": "1",
"lodash.groupby": "4",
"semver": "7"
},
"peerDependencies": {
"webpack": "4 || 5"
},
"devDependencies": {
"@babel/cli": "7",
"@babel/core": "7",
Expand Down
6 changes: 3 additions & 3 deletions packages/eslint-config-terra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"NOTICE",
"LICENSE"
],
"peerDependencies": {
"eslint": "7"
},
"dependencies": {
"@babel/eslint-parser": "7",
"eslint-config-airbnb": "18",
Expand All @@ -43,9 +46,6 @@
"eslint-plugin-react": "7.22.0",
"eslint-plugin-react-hooks": "4"
},
"peerDependencies": {
"eslint": "7"
},
"scripts": {
"clean": "echo 'removing ./node_modules' && rm -rf node_modules && echo 'removed ./node_modules'",
"clean:install": "npm run clean && time npm install",
Expand Down
6 changes: 3 additions & 3 deletions packages/jest-config-terra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@
"NOTICE",
"LICENSE"
],
"peerDependencies": {
"jest": "29"
},
"dependencies": {
"@cerner/terra-cli": "^1.12.0",
"@jest/reporters": "27",
Expand All @@ -44,9 +47,6 @@
"jest-mock": "29",
"strip-ansi": "6"
},
"peerDependencies": {
"jest": "29"
},
"devDependencies": {
"@babel/cli": "7",
"@babel/core": "7",
Expand Down
6 changes: 3 additions & 3 deletions packages/package-json-lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"LICENSE",
"NOTICE"
],
"peerDependencies": {
"@cerner/terra-cli": "^1.0.0"
},
"dependencies": {
"@npmcli/promise-spawn": "1",
"chalk": "4",
Expand All @@ -42,9 +45,6 @@
"log-symbols": "4",
"semver": "7"
},
"peerDependencies": {
"@cerner/terra-cli": "^1.0.0"
},
"devDependencies": {
"@babel/cli": "7",
"@babel/core": "7",
Expand Down
6 changes: 3 additions & 3 deletions packages/stylelint-config-terra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
"LICENSE",
"NOTICE"
],
"peerDependencies": {
"stylelint": "15"
},
"dependencies": {
"@cerner/browserslist-config-terra": "4",
"find-up": "4",
Expand All @@ -48,9 +51,6 @@
"stylelint-config-sass-guidelines": "10",
"stylelint-no-unsupported-browser-features": "4"
},
"peerDependencies": {
"stylelint": "15"
},
"devDependencies": {
"@babel/cli": "7",
"@babel/core": "7",
Expand Down
8 changes: 4 additions & 4 deletions packages/terra-aggregate-translations/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@
"bin": {
"tt-aggregate-translations": "bin/aggregate-translations-cli.js"
},
"peerDependencies": {
"intl": "1",
"react-intl": "5"
},
"dependencies": {
"chalk": "2",
"commander": "3",
"fs-extra": "8",
"glob": "7",
"lodash.startcase": "4"
},
"peerDependencies": {
"intl": "1",
"react-intl": "5"
},
"devDependencies": {
"@babel/cli": "7",
"@babel/core": "7",
Expand Down
8 changes: 4 additions & 4 deletions packages/terra-enzyme-intl/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,15 @@
"LICENSE",
"NOTICE"
],
"dependencies": {
"prop-types": "15",
"react-intl": "5"
},
"peerDependencies": {
"enzyme": "3",
"react": "16",
"react-dom": "16"
},
"dependencies": {
"prop-types": "15",
"react-intl": "5"
},
"devDependencies": {
"@babel/cli": "7",
"@babel/core": "7",
Expand Down
10 changes: 5 additions & 5 deletions packages/terra-functional-testing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@
"LICENSE",
"NOTICE"
],
"peerDependencies": {
"@cerner/terra-cli": "^1.11.0",
"webpack": "4 || 5",
"webpack-cli": "3 || 4"
},
"dependencies": {
"@babel/runtime": "7",
"@mirzazeyrek/node-resemble-js": "1",
Expand Down Expand Up @@ -74,11 +79,6 @@
"webpack-dev-server": "4",
"which": "2"
},
"peerDependencies": {
"@cerner/terra-cli": "^1.11.0",
"webpack": "4 || 5",
"webpack-cli": "3 || 4"
},
"devDependencies": {
"@babel/cli": "7",
"@babel/core": "7",
Expand Down
6 changes: 3 additions & 3 deletions packages/terra-open-source-scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"LICENSE",
"NOTICE"
],
"peerDependencies": {
"@cerner/terra-cli": "^1.0.0"
},
"dependencies": {
"@npmcli/promise-spawn": "1",
"express": "4",
Expand All @@ -42,9 +45,6 @@
"prompts": "2",
"strip-ansi": "6"
},
"peerDependencies": {
"@cerner/terra-cli": "^1.0.0"
},
"devDependencies": {
"@babel/cli": "7",
"@babel/core": "7",
Expand Down
16 changes: 8 additions & 8 deletions packages/webpack-config-terra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
"LICENSE",
"NOTICE"
],
"peerDependencies": {
"@babel/cli": "7",
"@babel/core": "7",
"fibers": "5",
"postcss": "8",
"webpack": "5",
"webpack-cli": "4"
},
"dependencies": {
"@cerner/duplicate-package-checker-webpack-plugin": "^2.6.0",
"@cerner/terra-aggregate-translations": "^3.4.0",
Expand All @@ -57,14 +65,6 @@
"terser-webpack-plugin": "4",
"webpack-merge": "5"
},
"peerDependencies": {
"@babel/cli": "7",
"@babel/core": "7",
"fibers": "5",
"postcss": "8",
"webpack": "5",
"webpack-cli": "4"
},
"devDependencies": {
"@cerner/eslint-config-terra": "^5.6.0",
"@cerner/jest-config-terra": "^3.0.0"
Expand Down
10 changes: 5 additions & 5 deletions scripts/prettifyJSON/prettifyJSON.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,16 +129,16 @@ module.exports = (oldJSON) => {

const tempJSON = {};

if (oldJSON.dependencies) {
tempJSON.dependencies = oldJSON.dependencies;
delete oldJSON.dependencies;
}

if (oldJSON.peerDependencies) {
tempJSON.peerDependencies = oldJSON.peerDependencies;
delete oldJSON.peerDependencies;
}

if (oldJSON.dependencies) {
tempJSON.dependencies = oldJSON.dependencies;
delete oldJSON.dependencies;
}

if (oldJSON.devDependencies) {
tempJSON.devDependencies = oldJSON.devDependencies;
delete oldJSON.devDependencies;
Expand Down

0 comments on commit e82816d

Please sign in to comment.