diff --git a/.npmrc b/.npmrc index 4fd15ed117..43c97e719a 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1 @@ package-lock=false -legacy-peer-deps=true diff --git a/NOTICE b/NOTICE index e964563724..8ca79567df 100644 --- a/NOTICE +++ b/NOTICE @@ -1,4 +1,4 @@ -Copyright 2017 - 2020 Cerner Innovation, Inc. +Copyright 2017 - present Cerner Innovation, Inc. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/package.json b/package.json index 403820d333..858a3d6cdc 100644 --- a/package.json +++ b/package.json @@ -1,20 +1,20 @@ { "name": "terra-ui", - "private": true, "version": "0.0.0", "description": "terra-ui is the documentation site for the Terra UI ecosystem.", "author": "Cerner Corporation", - "license": "Apache-2.0", + "repository": { + "type": "git", + "url": "git+https://github.com/cerner/terra-ui.git" + }, "bugs": { "url": "https://github.com/cerner/terra-ui/issues" }, + "license": "Apache-2.0", + "private": true, "engines": { "node": "12 || 14", - "npm": "6 || 9" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/cerner/terra-ui.git" + "npm": "9" }, "browserslist": [ "extends @cerner/browserslist-config-terra" @@ -28,152 +28,58 @@ "scss/at-mixin-pattern": "^(terra-)[a-z]+([a-z0-9-]+[a-z0-9]+)?$" } }, + "dependencies": { + "@cerner/terra-dev-site": "7", + "@cerner/terra-docs": "1", + "classnames": "2", + "react-tsparticles": "1" + }, + "peerDependencies": { + "@cerner/terra-application-docs": "2", + "@cerner/terra-core-docs": "1", + "@cerner/terra-framework-docs": "1", + "@cerner/terra-graphs-docs": "1", + "@cerner/terra-toolkit-docs": "2", + "terra-clinical-data-grid": "2", + "terra-clinical-detail-view": "3", + "terra-clinical-header": "3", + "terra-clinical-item-display": "4", + "terra-clinical-item-view": "4", + "terra-clinical-label-value-view": "3", + "terra-clinical-onset-picker": "4", + "terra-clinical-result": "1" + }, + "devDependencies": { + "@babel/cli": "7", + "@babel/core": "7", + "@babel/plugin-proposal-object-rest-spread": "7", + "@babel/plugin-transform-object-assign": "7", + "@babel/preset-env": "7", + "@babel/preset-react": "7", + "@cerner/browserslist-config-terra": "3", + "@cerner/eslint-config-terra": "5", + "@cerner/stylelint-config-terra": "4", + "@cerner/terra-cli": "1", + "@cerner/terra-open-source-scripts": "1", + "@cerner/webpack-config-terra": "2", + "eslint": "7", + "gh-pages": "3", + "stylelint": "13", + "webpack": "5", + "webpack-cli": "4", + "webpack-dev-server": "3", + "webpack-merge": "5" + }, "scripts": { "clean": "rm -rf node_modules", "clean:install": "npm run clean && npm install", "build:production": "webpack --mode=production", "build:development": "webpack", - "heroku-postbuild": "npm install && npm run build:production", "lint": "npm run lint:js && npm run lint:scss", "lint:js": "eslint --ext .js,.jsx .", "lint:scss": "stylelint 'src/**/*.scss' --syntax scss", "start": "webpack serve", - "start-heroku": "terra express-server --port $PORT --site './build' ", "test": "", "deploy": "gh-pages -d build" - }, - "dependencies": { - "@cerner/terra-aggregate-translations": "^2.0.1", - "@cerner/terra-application-docs": "^2.0.0", - "@cerner/terra-core-docs": "^1.0.0", - "@cerner/terra-dev-site": "^7.0.0", - "@cerner/terra-docs": "^1.0.0", - "@cerner/terra-framework-docs": "^1.0.0", - "@cerner/terra-graphs-docs": "^1.0.1", - "@cerner/terra-pills": "^1.2.0", - "@cerner/terra-toolkit-docs": "^2.0.0", - "classnames": "^2.2.5", - "final-form": "^4.11.1", - "prop-types": "^15.5.10", - "react": "^16.8.5", - "react-dom": "^16.8.5", - "react-final-form": "^6.3.0", - "react-intl": "^2.8.0", - "react-router-dom": "^5.0.0", - "react-tsparticles": "^1.33.1", - "terra-action-footer": "^2.0.0", - "terra-action-header": "^2.0.0", - "terra-aggregator": "^4.0.0", - "terra-alert": "^4.0.0", - "terra-application": "^1.14.2", - "terra-application-navigation": "^1.0.0", - "terra-arrange": "^3.0.0", - "terra-avatar": "^3.0.0", - "terra-badge": "^3.0.0", - "terra-brand-footer": "^3.0.0", - "terra-breakpoints": "^2.0.0", - "terra-button": "^3.0.0", - "terra-button-group": "^3.0.0", - "terra-card": "^3.0.0", - "terra-cell-grid": "^1.0.0", - "terra-clinical-data-grid": "^2.0.0", - "terra-clinical-detail-view": "^3.0.0", - "terra-clinical-header": "^3.0.0", - "terra-clinical-item-display": "^4.0.1", - "terra-clinical-item-view": "^4.1.0", - "terra-clinical-label-value-view": "^3.0.0", - "terra-clinical-onset-picker": "^4.0.0", - "terra-clinical-result": "^1.1.0", - "terra-collapsible-menu-view": "^6.0.0", - "terra-content-container": "^3.0.0", - "terra-date-input": "^1.0.0", - "terra-date-picker": "^4.0.0", - "terra-date-time-picker": "^4.0.0", - "terra-demographics-banner": "^3.0.0", - "terra-disclosure-manager": "^4.0.0", - "terra-divider": "^3.0.0", - "terra-dropdown-button": "^1.0.0", - "terra-dynamic-grid": "^3.0.0", - "terra-embedded-content-consumer": "^3.0.0", - "terra-form-checkbox": "^4.0.0", - "terra-form-field": "^4.0.0", - "terra-form-fieldset": "^2.0.0", - "terra-form-input": "^4.0.0", - "terra-form-radio": "^4.0.0", - "terra-form-select": "^6.0.0", - "terra-form-textarea": "^5.0.0", - "terra-form-validation": "^1.0.0", - "terra-grid": "^6.0.0", - "terra-heading": "^4.0.0", - "terra-hookshot": "^5.0.0", - "terra-html-table": "^1.0.0", - "terra-hyperlink": "^2.0.0", - "terra-icon": "^3.0.0", - "terra-image": "^3.0.0", - "terra-infinite-list": "^3.0.0", - "terra-list": "^4.0.0", - "terra-menu": "^6.0.0", - "terra-mixins": "^1.0.0", - "terra-modal-manager": "^6.0.0", - "terra-navigation-prompt": "^1.0.0", - "terra-notification-dialog": "^4.0.0", - "terra-overlay": "^3.0.0", - "terra-paginator": "^2.0.0", - "terra-popup": "^6.0.0", - "terra-profile-image": "^3.0.0", - "terra-progress-bar": "^4.0.0", - "terra-responsive-element": "^5.0.0", - "terra-scroll": "^2.0.0", - "terra-search-field": "^3.0.0", - "terra-section-header": "^2.0.0", - "terra-show-hide": "^2.0.0", - "terra-signature": "^2.0.0", - "terra-slide-group": "^4.0.0", - "terra-slide-panel": "^3.0.0", - "terra-slide-panel-manager": "^5.0.0", - "terra-spacer": "^3.0.0", - "terra-status": "^4.0.0", - "terra-status-view": "^4.0.0", - "terra-switch": "^1.3.0", - "terra-table": "^4.0.0", - "terra-tabs": "^6.0.0", - "terra-tag": "^2.0.0", - "terra-text": "^4.0.0", - "terra-theme-provider": "^4.0.0", - "terra-time-input": "^4.0.0", - "terra-toggle": "^3.0.0", - "terra-toggle-button": "^3.0.0", - "terra-toggle-section-header": "^2.0.0", - "terra-toolbar": "^1.0.0", - "terra-visually-hidden-text": "^2.0.0", - "terra-worklist-data-grid": "^0.1.0", - "xfc": "^1.2.1" - }, - "devDependencies": { - "@babel/cli": "^7.5.0", - "@babel/core": "^7.13.0", - "@babel/plugin-proposal-object-rest-spread": "^7.5.0", - "@babel/plugin-transform-object-assign": "^7.2.0", - "@babel/preset-env": "^7.5.0", - "@babel/preset-react": "^7.0.0", - "@cerner/browserslist-config-terra": "^3.1.0", - "@cerner/eslint-config-terra": "^5.0.0", - "@cerner/stylelint-config-terra": "^4.0.0", - "@cerner/terra-cli": "^1.1.0", - "@cerner/terra-open-source-scripts": "^1.1.0", - "@cerner/webpack-config-terra": "^2.0.0", - "core-js": "^3.1.3", - "eslint": "^7.19.0", - "gh-pages": "^3.0.0", - "glob": "^7.1.1", - "jest": "^26.6.3", - "postcss": "^8.4.6", - "raf": "^3.4.1", - "regenerator-runtime": "^0.13.2", - "stylelint": "^13.0.0", - "webpack": "^5.28.0", - "webpack-cli": "^4.6.0", - "webpack-dev-server": "^3.3.1", - "webpack-merge": "^5.7.2" } } diff --git a/webpack.config.js b/webpack.config.js index 718fbc6c7d..87a16ecc48 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -13,9 +13,9 @@ const excludes = [ '@cerner/terra-application', ]; -const additionalSearchDirectories = Object.keys(packageJson.dependencies).reduce((acc, dependency) => { - if ((dependency.startsWith('terra-') || dependency.startsWith('@cerner/terra-')) && !excludes.includes(dependency)) { - acc.push(path.join(cwd, 'node_modules', dependency, 'lib', 'terra-dev-site')); +const additionalSearchDirectories = Object.keys(packageJson.peerDependencies).reduce((acc, peerDependency) => { + if ((peerDependency.startsWith('terra-') || peerDependency.startsWith('@cerner/terra-')) && !excludes.includes(peerDependency)) { + acc.push(path.join(cwd, 'node_modules', peerDependency, 'lib', 'terra-dev-site')); } return acc; }, []);