From 6e7d2eefe3f726ebb7352b12ad7da3142f607ddd Mon Sep 17 00:00:00 2001 From: Saad Adnan <38024451+sdadn@users.noreply.github.com> Date: Mon, 6 May 2024 15:20:16 -0500 Subject: [PATCH] Miscellaneous package.json updates (#864) --- packages/browserslist-config-terra/.npmignore | 2 - .../browserslist-config-terra/package.json | 9 +- .../.npmignore | 4 - .../package.json | 23 ++-- .../jest/non-root-package-json/package.json | 4 +- .../tests/jest/npm-2/package.json | 4 +- .../tests/jest/simple/package.json | 4 +- .../tests/jest/strict/package.json | 4 +- packages/eslint-config-terra/.npmignore | 3 - packages/eslint-config-terra/package.json | 6 + packages/jest-config-terra/.npmignore | 5 - packages/jest-config-terra/package.json | 8 +- .../package-json-lint-config-terra/.npmignore | 2 - packages/package-json-lint/.npmignore | 4 - packages/package-json-lint/package.json | 33 +++-- packages/stylelint-config-terra/package.json | 6 +- .../terra-aggregate-translations/.npmignore | 5 - .../terra-aggregate-translations/package.json | 29 +++-- packages/terra-cli/.npmignore | 5 - packages/terra-cli/package.json | 23 ++-- packages/terra-enzyme-intl/.npmignore | 5 - packages/terra-enzyme-intl/package.json | 31 +++-- packages/terra-functional-testing/.npmignore | 6 - .../terra-functional-testing/package.json | 121 +++++++++--------- packages/terra-open-source-scripts/.npmignore | 5 - .../terra-open-source-scripts/package.json | 29 +++-- packages/terra-toolkit-docs/.npmignore | 2 - packages/terra-toolkit-docs/package.json | 14 +- packages/webpack-config-terra/.npmignore | 6 - packages/webpack-config-terra/package.json | 41 +++--- scripts/prettifyJSON/prettifyJSON.js | 5 + scripts/tests/prettifyJSON.test.js | 2 + 32 files changed, 237 insertions(+), 213 deletions(-) delete mode 100644 packages/browserslist-config-terra/.npmignore delete mode 100644 packages/duplicate-package-checker-webpack-plugin/.npmignore delete mode 100644 packages/eslint-config-terra/.npmignore delete mode 100644 packages/jest-config-terra/.npmignore delete mode 100644 packages/package-json-lint-config-terra/.npmignore delete mode 100644 packages/package-json-lint/.npmignore delete mode 100644 packages/terra-aggregate-translations/.npmignore delete mode 100644 packages/terra-cli/.npmignore delete mode 100644 packages/terra-enzyme-intl/.npmignore delete mode 100644 packages/terra-functional-testing/.npmignore delete mode 100644 packages/terra-open-source-scripts/.npmignore delete mode 100644 packages/terra-toolkit-docs/.npmignore delete mode 100644 packages/webpack-config-terra/.npmignore diff --git a/packages/browserslist-config-terra/.npmignore b/packages/browserslist-config-terra/.npmignore deleted file mode 100644 index 8b8a94d35..000000000 --- a/packages/browserslist-config-terra/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -*.log -.eslintrc.js diff --git a/packages/browserslist-config-terra/package.json b/packages/browserslist-config-terra/package.json index a0e9edd9d..81123aae0 100644 --- a/packages/browserslist-config-terra/package.json +++ b/packages/browserslist-config-terra/package.json @@ -26,9 +26,14 @@ "access": "public" }, "main": "browserslist.config.js", + "files": [ + "browserslist.config.js", + "CHANGELOG.md", + "NOTICE", + "LICENSE" + ], "devDependencies": { - "@cerner/eslint-config-terra": "^5.6.0", - "eslint": "^7.32.0" + "@cerner/eslint-config-terra": "^5.6.0" }, "scripts": { "clean": "echo 'removing ./node_modules' && rm -rf node_modules && echo 'removed ./node_modules'", diff --git a/packages/duplicate-package-checker-webpack-plugin/.npmignore b/packages/duplicate-package-checker-webpack-plugin/.npmignore deleted file mode 100644 index 63ce70112..000000000 --- a/packages/duplicate-package-checker-webpack-plugin/.npmignore +++ /dev/null @@ -1,4 +0,0 @@ -*.log -.eslintrc.js -src -tests diff --git a/packages/duplicate-package-checker-webpack-plugin/package.json b/packages/duplicate-package-checker-webpack-plugin/package.json index 7a398f3c8..012398e83 100644 --- a/packages/duplicate-package-checker-webpack-plugin/package.json +++ b/packages/duplicate-package-checker-webpack-plugin/package.json @@ -27,21 +27,26 @@ "npm": "6 || 9" }, "main": "lib/index.js", + "files": [ + "lib", + "CHANGELOG.md", + "NOTICE", + "LICENSE" + ], "dependencies": { - "chalk": "^4.1.0", - "find-root": "^1.0.0", - "lodash.groupby": "^4.6.0", - "semver": "^7.3.4" + "chalk": "4", + "find-root": "1", + "lodash.groupby": "4", + "semver": "7" }, "peerDependencies": { - "webpack": "^4.30.0 || ^5.0.0" + "webpack": "4 || 5" }, "devDependencies": { - "@babel/cli": "^7.22.10", - "@babel/core": "^7.22.10", + "@babel/cli": "7", + "@babel/core": "7", "@cerner/eslint-config-terra": "^5.6.0", - "@cerner/jest-config-terra": "^2.0.0", - "eslint": "^7.32.0" + "@cerner/jest-config-terra": "^2.0.0" }, "scripts": { "clean": "npm run clean:node_modules && npm run clean:lib", diff --git a/packages/duplicate-package-checker-webpack-plugin/tests/jest/non-root-package-json/package.json b/packages/duplicate-package-checker-webpack-plugin/tests/jest/non-root-package-json/package.json index ee9110804..0e35bca52 100644 --- a/packages/duplicate-package-checker-webpack-plugin/tests/jest/non-root-package-json/package.json +++ b/packages/duplicate-package-checker-webpack-plugin/tests/jest/non-root-package-json/package.json @@ -5,7 +5,7 @@ "a": "~1.0.0", "b": "~1.0.0", "c": "~1.0.0", - "webpack": "^4.34.0", - "chalk": "^2.4.2" + "webpack": "4", + "chalk": "2" } } diff --git a/packages/duplicate-package-checker-webpack-plugin/tests/jest/npm-2/package.json b/packages/duplicate-package-checker-webpack-plugin/tests/jest/npm-2/package.json index 619164e18..7830c0b61 100644 --- a/packages/duplicate-package-checker-webpack-plugin/tests/jest/npm-2/package.json +++ b/packages/duplicate-package-checker-webpack-plugin/tests/jest/npm-2/package.json @@ -4,7 +4,7 @@ "dependencies": { "a": "~1.0.0", "b": "~1.0.0", - "webpack": "^4.34.0", - "chalk": "^2.4.2" + "webpack": "4", + "chalk": "2" } } diff --git a/packages/duplicate-package-checker-webpack-plugin/tests/jest/simple/package.json b/packages/duplicate-package-checker-webpack-plugin/tests/jest/simple/package.json index ee9110804..0e35bca52 100644 --- a/packages/duplicate-package-checker-webpack-plugin/tests/jest/simple/package.json +++ b/packages/duplicate-package-checker-webpack-plugin/tests/jest/simple/package.json @@ -5,7 +5,7 @@ "a": "~1.0.0", "b": "~1.0.0", "c": "~1.0.0", - "webpack": "^4.34.0", - "chalk": "^2.4.2" + "webpack": "4", + "chalk": "2" } } diff --git a/packages/duplicate-package-checker-webpack-plugin/tests/jest/strict/package.json b/packages/duplicate-package-checker-webpack-plugin/tests/jest/strict/package.json index 137d0e703..deed4677a 100644 --- a/packages/duplicate-package-checker-webpack-plugin/tests/jest/strict/package.json +++ b/packages/duplicate-package-checker-webpack-plugin/tests/jest/strict/package.json @@ -5,7 +5,7 @@ "a": "~1.0.0", "b": "~2.0.0", "c": "~1.0.0", - "webpack": "^4.34.0", - "chalk": "^2.4.2" + "webpack": "4", + "chalk": "2" } } diff --git a/packages/eslint-config-terra/.npmignore b/packages/eslint-config-terra/.npmignore deleted file mode 100644 index 24fcb9821..000000000 --- a/packages/eslint-config-terra/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -*.log -.eslintrc.js - diff --git a/packages/eslint-config-terra/package.json b/packages/eslint-config-terra/package.json index 3c08cbe3a..1315b3046 100644 --- a/packages/eslint-config-terra/package.json +++ b/packages/eslint-config-terra/package.json @@ -27,6 +27,12 @@ "npm": "6 || 9" }, "main": "eslint.config.js", + "files": [ + "eslint.config.js", + "CHANGELOG.md", + "NOTICE", + "LICENSE" + ], "dependencies": { "@babel/eslint-parser": "7", "eslint-config-airbnb": "18", diff --git a/packages/jest-config-terra/.npmignore b/packages/jest-config-terra/.npmignore deleted file mode 100644 index 5653aedd2..000000000 --- a/packages/jest-config-terra/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -*.log -.eslintrc.js -jest.local.config.js -src -tests diff --git a/packages/jest-config-terra/package.json b/packages/jest-config-terra/package.json index 69d59954a..1eaf0bf7d 100644 --- a/packages/jest-config-terra/package.json +++ b/packages/jest-config-terra/package.json @@ -38,18 +38,18 @@ "@cerner/terra-cli": "^1.12.0", "@jest/reporters": "27", "babel-jest": "29", - "identity-obj-proxy": "^3.0.0", + "identity-obj-proxy": "3", "jest-environment-jsdom": "29", "jest-jasmine2": "29", "jest-mock": "29", - "strip-ansi": "^6.0.0" + "strip-ansi": "6" }, "peerDependencies": { "jest": "29" }, "devDependencies": { - "@babel/cli": "^7.10.5", - "@babel/core": "^7.11.1", + "@babel/cli": "7", + "@babel/core": "7", "@cerner/eslint-config-terra": "^5.6.0" }, "scripts": { diff --git a/packages/package-json-lint-config-terra/.npmignore b/packages/package-json-lint-config-terra/.npmignore deleted file mode 100644 index 8b8a94d35..000000000 --- a/packages/package-json-lint-config-terra/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -*.log -.eslintrc.js diff --git a/packages/package-json-lint/.npmignore b/packages/package-json-lint/.npmignore deleted file mode 100644 index e0e7b65af..000000000 --- a/packages/package-json-lint/.npmignore +++ /dev/null @@ -1,4 +0,0 @@ -.eslintrc.js -jest.config.js -src -tests diff --git a/packages/package-json-lint/package.json b/packages/package-json-lint/package.json index 1aff396ff..a1b38d9c0 100644 --- a/packages/package-json-lint/package.json +++ b/packages/package-json-lint/package.json @@ -25,28 +25,35 @@ "node": "10 || 12 || 14", "npm": "6 || 9" }, + "files": [ + "lib", + "CHANGELOG.md", + "README.md", + "LICENSE", + "NOTICE" + ], "dependencies": { - "@npmcli/promise-spawn": "^1.2.0", - "chalk": "^4.1.0", - "cosmiconfig": "^7.0.0", - "fs-extra": "^9.0.1", - "glob": "^7.1.6", - "ignore": "^5.1.8", - "log-symbols": "^4.0.0", - "semver": "^7.3.4" + "@npmcli/promise-spawn": "1", + "chalk": "4", + "cosmiconfig": "7", + "fs-extra": "9", + "glob": "7", + "ignore": "5", + "log-symbols": "4", + "semver": "7" }, "peerDependencies": { "@cerner/terra-cli": "^1.0.0" }, "devDependencies": { - "@babel/cli": "^7.10.5", - "@babel/core": "^7.11.1", + "@babel/cli": "7", + "@babel/core": "7", "@cerner/eslint-config-terra": "^5.6.0", "@cerner/jest-config-terra": "^2.0.0", "@cerner/terra-cli": "^1.12.0", - "eslint": "^7.32.0", - "strip-ansi": "^6.0.0", - "yargs": "^16.1.1" + "eslint": "7", + "strip-ansi": "6", + "yargs": "16" }, "scripts": { "clean": "npm run clean:node_modules && npm run clean:lib", diff --git a/packages/stylelint-config-terra/package.json b/packages/stylelint-config-terra/package.json index 5eea25398..47dfc071a 100644 --- a/packages/stylelint-config-terra/package.json +++ b/packages/stylelint-config-terra/package.json @@ -33,12 +33,12 @@ }, "main": "stylelint.config.js", "files": [ + "stylelint.config.js", + "lib", "CHANGELOG.md", "README.md", "LICENSE", - "NOTICE", - "lib", - "stylelint.config.js" + "NOTICE" ], "dependencies": { "@cerner/browserslist-config-terra": "4", diff --git a/packages/terra-aggregate-translations/.npmignore b/packages/terra-aggregate-translations/.npmignore deleted file mode 100644 index 7256f9b04..000000000 --- a/packages/terra-aggregate-translations/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -*.log -.eslintrc.js -jest.config.js -src -tests diff --git a/packages/terra-aggregate-translations/package.json b/packages/terra-aggregate-translations/package.json index 84765b29d..acb744c37 100644 --- a/packages/terra-aggregate-translations/package.json +++ b/packages/terra-aggregate-translations/package.json @@ -31,26 +31,33 @@ "npm": "6 || 9" }, "main": "lib/aggregate-translations.js", + "files": [ + "bin", + "lib", + "CHANGELOG.md", + "README.md", + "LICENSE", + "NOTICE" + ], "bin": { "tt-aggregate-translations": "bin/aggregate-translations-cli.js" }, "dependencies": { - "chalk": "^2.4.2", - "commander": "^3.0.1", - "fs-extra": "^8.0.1", - "glob": "^7.1.1", - "lodash.startcase": "^4.4.0" + "chalk": "2", + "commander": "3", + "fs-extra": "8", + "glob": "7", + "lodash.startcase": "4" }, "peerDependencies": { - "intl": "^1.2.5", - "react-intl": "^5.8.2" + "intl": "1", + "react-intl": "5" }, "devDependencies": { - "@babel/cli": "^7.10.5", - "@babel/core": "^7.11.1", + "@babel/cli": "7", + "@babel/core": "7", "@cerner/eslint-config-terra": "^5.6.0", - "@cerner/jest-config-terra": "^2.0.0", - "eslint": "^7.32.0" + "@cerner/jest-config-terra": "^2.0.0" }, "scripts": { "clean": "npm run clean:node_modules && npm run clean:lib", diff --git a/packages/terra-cli/.npmignore b/packages/terra-cli/.npmignore deleted file mode 100644 index 7256f9b04..000000000 --- a/packages/terra-cli/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -*.log -.eslintrc.js -jest.config.js -src -tests diff --git a/packages/terra-cli/package.json b/packages/terra-cli/package.json index c57622a1c..4fbcf9065 100644 --- a/packages/terra-cli/package.json +++ b/packages/terra-cli/package.json @@ -27,21 +27,28 @@ "npm": "6 || 9" }, "main": "index.js", + "files": [ + "bin", + "lib", + "CHANGELOG.md", + "README.md", + "LICENSE", + "NOTICE" + ], "bin": { "terra": "./bin/terra" }, "dependencies": { - "fs-extra": "^9.0.1", - "lockfile": "^1.0.4", - "npmlog": "^4.1.2", - "yargs": "^16.1.1" + "fs-extra": "9", + "lockfile": "1", + "npmlog": "4", + "yargs": "16" }, "devDependencies": { - "@babel/cli": "^7.10.5", - "@babel/core": "^7.11.1", + "@babel/cli": "7", + "@babel/core": "7", "@cerner/eslint-config-terra": "^5.6.0", - "@cerner/jest-config-terra": "^2.0.0", - "eslint": "^7.32.0" + "@cerner/jest-config-terra": "^2.0.0" }, "scripts": { "clean": "npm run clean:node_modules && npm run clean:lib", diff --git a/packages/terra-enzyme-intl/.npmignore b/packages/terra-enzyme-intl/.npmignore deleted file mode 100644 index 8d9efe37b..000000000 --- a/packages/terra-enzyme-intl/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -*.log -.eslintrc.js -jest.config.js -jest.enzymeSetup.js -tests diff --git a/packages/terra-enzyme-intl/package.json b/packages/terra-enzyme-intl/package.json index 34f87c28e..f2a1636fc 100644 --- a/packages/terra-enzyme-intl/package.json +++ b/packages/terra-enzyme-intl/package.json @@ -32,25 +32,32 @@ "npm": "6 || 9" }, "main": "lib/index.js", + "files": [ + "lib", + "src", + "CHANGELOG.md", + "README.md", + "LICENSE", + "NOTICE" + ], "dependencies": { - "prop-types": "^15.7.2", - "react-intl": "^5.25.1" + "prop-types": "15", + "react-intl": "5" }, "peerDependencies": { - "enzyme": "^3.9.0", - "react": "^16.8.5", - "react-dom": "^16.8.5" + "enzyme": "3", + "react": "16", + "react-dom": "16" }, "devDependencies": { - "@babel/cli": "^7.10.5", - "@babel/core": "^7.11.1", - "@babel/preset-env": "^7.22.10", - "@babel/preset-react": "^7.22.5", + "@babel/cli": "7", + "@babel/core": "7", + "@babel/preset-env": "7", + "@babel/preset-react": "7", "@cerner/eslint-config-terra": "^5.6.0", "@cerner/jest-config-terra": "^2.0.0", - "enzyme-adapter-react-16": "^1.10.0", - "enzyme-to-json": "^3.3.5", - "eslint": "^7.32.0" + "enzyme-adapter-react-16": "1", + "enzyme-to-json": "3" }, "scripts": { "clean": "npm run clean:node_modules && npm run clean:lib", diff --git a/packages/terra-functional-testing/.npmignore b/packages/terra-functional-testing/.npmignore deleted file mode 100644 index 1ad7a099b..000000000 --- a/packages/terra-functional-testing/.npmignore +++ /dev/null @@ -1,6 +0,0 @@ -*.log -.eslintrc.js -babel.config.js -jest.config.js -src -tests diff --git a/packages/terra-functional-testing/package.json b/packages/terra-functional-testing/package.json index 779244c56..4a19af0b9 100644 --- a/packages/terra-functional-testing/package.json +++ b/packages/terra-functional-testing/package.json @@ -28,78 +28,85 @@ "npm": "6 || 9" }, "main": "lib/index.js", + "files": [ + "lib", + "CHANGELOG.md", + "README.md", + "LICENSE", + "NOTICE" + ], "dependencies": { - "@babel/runtime": "^7.11.2", - "@mirzazeyrek/node-resemble-js": "^1.2.1", - "@octokit/core": "^3.6.0", - "@wdio/cli": "^7.7.3", - "@wdio/local-runner": "^7.7.3", - "@wdio/mocha-framework": "^7.7.3", - "@wdio/reporter": "^7.7.3", - "@wdio/spec-reporter": "^7.7.3", - "@wdio/sync": "^7.7.3", - "archiver": "^4.0.1", + "@babel/runtime": "7", + "@mirzazeyrek/node-resemble-js": "1", + "@octokit/core": "3", + "@wdio/cli": "7", + "@wdio/local-runner": "7", + "@wdio/mocha-framework": "7", + "@wdio/reporter": "7", + "@wdio/spec-reporter": "7", + "@wdio/sync": "7", + "archiver": "4", "axe-core": "4.0.2", - "chalk": "^4.1.0", - "expect": "^26.4.2", - "express": "^4.17.1", - "extract-zip": "^2.0.1", - "form-data": "^3.0.0", - "fs-extra": "^9.0.1", - "glob": "^7.1.6", - "gm": "^1.23.1", + "chalk": "4", + "expect": "26", + "express": "4", + "extract-zip": "2", + "form-data": "3", + "fs-extra": "9", + "glob": "7", + "gm": "1", "image-size": "^0.8.3", "inquirer": "8.1.3", - "ip": "^1.1.5", + "ip": "1", "jimp": "^0.13.0", - "js-yaml": "^3.14.0", - "lodash.get": "^4.4.2", - "lodash.identity": "^3.0.0", - "lodash.isplainobject": "^4.0.6", - "lodash.isstring": "^4.0.1", - "lodash.isundefined": "^3.0.1", - "lodash.pickby": "^4.6.0", - "node-fetch": "^2.6.0", - "octokit": "^1.8.0", - "strip-ansi": "^6.0.0", + "js-yaml": "3", + "lodash.get": "4", + "lodash.identity": "3", + "lodash.isplainobject": "4", + "lodash.isstring": "4", + "lodash.isundefined": "3", + "lodash.pickby": "4", + "node-fetch": "2", + "octokit": "1", + "strip-ansi": "6", "uuid": "3.4.0", - "webdriverio": "^7.7.3", - "webpack-dev-server": "^4.7.2", - "which": "^2.0.2" + "webdriverio": "7", + "webpack-dev-server": "4", + "which": "2" }, "peerDependencies": { "@cerner/terra-cli": "^1.11.0", - "webpack": "^4.43.0 || ^5.0.0", - "webpack-cli": "^3.3.12 || ^4.0.0" + "webpack": "4 || 5", + "webpack-cli": "3 || 4" }, "devDependencies": { - "@babel/cli": "^7.10.5", - "@babel/core": "^7.11.1", - "@babel/helpers": "^7.10.4", - "@babel/plugin-proposal-object-rest-spread": "^7.11.0", - "@babel/plugin-syntax-async-generators": "^7.8.4", - "@babel/plugin-transform-regenerator": "^7.10.4", - "@babel/plugin-transform-runtime": "^7.11.0", - "@babel/preset-env": "^7.11.0", - "@babel/preset-react": "^7.0.0", - "@babel/register": "^7.10.5", + "@babel/cli": "7", + "@babel/core": "7", + "@babel/helpers": "7", + "@babel/plugin-proposal-object-rest-spread": "7", + "@babel/plugin-syntax-async-generators": "7", + "@babel/plugin-transform-regenerator": "7", + "@babel/plugin-transform-runtime": "7", + "@babel/preset-env": "7", + "@babel/preset-react": "7", + "@babel/register": "7", "@cerner/eslint-config-terra": "^5.6.0", "@cerner/jest-config-terra": "^2.0.0", "@cerner/terra-cli": "^1.12.0", - "@octokit/core": "^3.1.2", - "chai": "^4.2.0", - "eslint": "^7.19.0", - "html-webpack-plugin": "^4.3.0", - "lodash.groupby": "^4.6.0", - "lodash.map": "^4.6.0", - "lodash.mapkeys": "^4.6.0", - "lodash.mapvalues": "^4.3.2", + "@octokit/core": "3", + "chai": "4", + "eslint": "7", + "html-webpack-plugin": "4", + "lodash.groupby": "4", + "lodash.map": "4", + "lodash.mapkeys": "4", + "lodash.mapvalues": "4", "memory-fs": "^0.5.0", - "mocha": "^10.2.0", - "nock": "^12.0.3", - "np": "^6.3.2", - "sinon": "^9.0.2", - "yargs": "^16.1.1" + "mocha": "10", + "nock": "12", + "np": "6", + "sinon": "9", + "yargs": "16" }, "scripts": { "clean": "npm run clean:node_modules && npm run clean:lib", diff --git a/packages/terra-open-source-scripts/.npmignore b/packages/terra-open-source-scripts/.npmignore deleted file mode 100644 index 7256f9b04..000000000 --- a/packages/terra-open-source-scripts/.npmignore +++ /dev/null @@ -1,5 +0,0 @@ -*.log -.eslintrc.js -jest.config.js -src -tests diff --git a/packages/terra-open-source-scripts/package.json b/packages/terra-open-source-scripts/package.json index 0ef96aea2..25ed6a99f 100644 --- a/packages/terra-open-source-scripts/package.json +++ b/packages/terra-open-source-scripts/package.json @@ -26,26 +26,33 @@ "npm": "6 || 9" }, "main": "index.js", + "files": [ + "lib", + "CHANGELOG.md", + "README.md", + "LICENSE", + "NOTICE" + ], "dependencies": { - "@npmcli/promise-spawn": "^1.2.0", - "express": "^4.17.1", - "fs-extra": "^9.0.1", - "npmlog": "^4.1.2", - "pacote": "^11.1.11", - "prompts": "^2.3.2", - "strip-ansi": "^6.0.0" + "@npmcli/promise-spawn": "1", + "express": "4", + "fs-extra": "9", + "npmlog": "4", + "pacote": "11", + "prompts": "2", + "strip-ansi": "6" }, "peerDependencies": { "@cerner/terra-cli": "^1.0.0" }, "devDependencies": { - "@babel/cli": "^7.10.5", - "@babel/core": "^7.11.1", + "@babel/cli": "7", + "@babel/core": "7", "@cerner/eslint-config-terra": "^5.6.0", "@cerner/jest-config-terra": "^2.0.0", "@cerner/terra-cli": "^1.12.0", - "eslint": "^7.32.0", - "yargs": "^16.1.1" + "eslint": "7", + "yargs": "16" }, "scripts": { "clean": "npm run clean:node_modules && npm run clean:lib", diff --git a/packages/terra-toolkit-docs/.npmignore b/packages/terra-toolkit-docs/.npmignore deleted file mode 100644 index 8b8a94d35..000000000 --- a/packages/terra-toolkit-docs/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -*.log -.eslintrc.js diff --git a/packages/terra-toolkit-docs/package.json b/packages/terra-toolkit-docs/package.json index e43b78e66..fdf05e5ce 100644 --- a/packages/terra-toolkit-docs/package.json +++ b/packages/terra-toolkit-docs/package.json @@ -27,6 +27,13 @@ "npm": "6 || 9" }, "main": "index.js", + "files": [ + "lib", + "CHANGELOG.md", + "README.md", + "LICENSE", + "NOTICE" + ], "dependencies": { "@cerner/jest-config-terra": "^2.0.0", "@cerner/package-json-lint": "^2.2.0", @@ -35,10 +42,9 @@ "@cerner/webpack-config-terra": "^4.0.0" }, "devDependencies": { - "@babel/cli": "^7.10.5", - "@babel/core": "^7.11.1", - "@cerner/eslint-config-terra": "^5.6.0", - "eslint": "^7.32.0" + "@babel/cli": "7", + "@babel/core": "7", + "@cerner/eslint-config-terra": "^5.6.0" }, "scripts": { "clean": "npm run clean:node_modules && npm run clean:lib", diff --git a/packages/webpack-config-terra/.npmignore b/packages/webpack-config-terra/.npmignore deleted file mode 100644 index 8ac4835a0..000000000 --- a/packages/webpack-config-terra/.npmignore +++ /dev/null @@ -1,6 +0,0 @@ -*.log -.eslintrc.js -jest.config.js -terra-theme.config.js -src -tests diff --git a/packages/webpack-config-terra/package.json b/packages/webpack-config-terra/package.json index 596b71681..de04e7035 100644 --- a/packages/webpack-config-terra/package.json +++ b/packages/webpack-config-terra/package.json @@ -27,28 +27,35 @@ "npm": "6 || 9" }, "main": "lib/webpack.config.js", + "files": [ + "lib", + "CHANGELOG.md", + "README.md", + "LICENSE", + "NOTICE" + ], "dependencies": { "@cerner/duplicate-package-checker-webpack-plugin": "^2.6.0", "@cerner/terra-aggregate-translations": "^3.4.0", - "@mjhenkes/postcss-rtl": "^2.0.0", - "autoprefixer": "^10.0.0", - "babel-loader": "^8.0.5", - "clean-webpack-plugin": "^3.0.0", - "css-loader": "^5.0.1", + "@mjhenkes/postcss-rtl": "2", + "autoprefixer": "10", + "babel-loader": "8", + "clean-webpack-plugin": "3", + "css-loader": "5", "css-selector-tokenizer": "^0.7.3", - "file-loader": "^6.2.0", - "fs-extra": "^8.0.1", - "glob": "^7.1.1", + "file-loader": "6", + "fs-extra": "8", + "glob": "7", "memory-fs": "^0.4.1", - "mini-css-extract-plugin": "^1.3.1", - "postcss-assets-webpack-plugin": "^4.0.0", - "postcss-custom-properties": "^11.0.0", - "postcss-loader": "^4.1.0", - "raw-loader": "^4.0.2", - "sass": "^1.35.2", - "sass-loader": "^10.1.0", - "terser-webpack-plugin": "^4.2.1", - "webpack-merge": "^5.4.0" + "mini-css-extract-plugin": "1", + "postcss-assets-webpack-plugin": "4", + "postcss-custom-properties": "11", + "postcss-loader": "4", + "raw-loader": "4", + "sass": "1", + "sass-loader": "10", + "terser-webpack-plugin": "4", + "webpack-merge": "5" }, "peerDependencies": { "@babel/cli": "7", diff --git a/scripts/prettifyJSON/prettifyJSON.js b/scripts/prettifyJSON/prettifyJSON.js index 95aab87e9..d8bea5732 100644 --- a/scripts/prettifyJSON/prettifyJSON.js +++ b/scripts/prettifyJSON/prettifyJSON.js @@ -92,6 +92,11 @@ module.exports = (oldJSON) => { delete oldJSON.main; } + if (oldJSON.exports) { + newJSON.exports = oldJSON.exports; + delete oldJSON.exports; + } + if (oldJSON.files) { newJSON.files = oldJSON.files; delete oldJSON.files; diff --git a/scripts/tests/prettifyJSON.test.js b/scripts/tests/prettifyJSON.test.js index fa74c879f..b4b1d72b1 100644 --- a/scripts/tests/prettifyJSON.test.js +++ b/scripts/tests/prettifyJSON.test.js @@ -41,6 +41,7 @@ describe.only('prettifyJSON script', () => { private: {}, keywords: [], eslintConfig: {}, + exports: {}, }, ); @@ -62,6 +63,7 @@ describe.only('prettifyJSON script', () => { 'workspaces', 'engines', 'main', + 'exports', 'files', 'bin', 'browserslist',