**What** - Move packages for `next` version of admin to core repo **Other** - Since this PR introduces packages that depend on Vite 5, it also introduces @types/node@^20. We have never had a direct dependency on the types package for Node, and as far as I can see that has resulted in us using the types from Node.js@8, as those are a dependency of one of our dependencies. With the introduction of @types/node@^20, two of our packages had TS errors because they were using the NodeJS.Timer type, which was deprecated in Node.js@14. We should add specific @types/node packages to all our packages, but I haven't done so in this PR to keep it as clean as possible. - Q: @olivermrbl I've added the new packages to the ignore list for changeset, is this enough to prevent them from being published?
100 lines
3.6 KiB
JSON
100 lines
3.6 KiB
JSON
{
|
|
"name": "root",
|
|
"private": true,
|
|
"workspaces": {
|
|
"packages": [
|
|
"packages/medusa",
|
|
"packages/medusa-js",
|
|
"packages/medusa-react",
|
|
"packages/*",
|
|
"packages/admin-next/*",
|
|
"packages/design-system/*",
|
|
"packages/generated/*",
|
|
"packages/oas/*",
|
|
"integration-tests/**/*"
|
|
]
|
|
},
|
|
"devDependencies": {
|
|
"@babel/core": "^7.12.7",
|
|
"@babel/eslint-parser": "^7.15.8",
|
|
"@babel/node": "^7.12.6",
|
|
"@babel/plugin-proposal-class-properties": "^7.10.4",
|
|
"@babel/plugin-transform-classes": "^7.10.4",
|
|
"@babel/plugin-transform-instanceof": "^7.10.4",
|
|
"@babel/plugin-transform-runtime": "^7.11.5",
|
|
"@babel/preset-env": "^7.11.5",
|
|
"@babel/preset-react": "^7.18.6",
|
|
"@babel/register": "^7.11.5",
|
|
"@babel/runtime": "^7.11.2",
|
|
"@typescript-eslint/eslint-plugin": "^5.53.0",
|
|
"@typescript-eslint/parser": "^5.53.0",
|
|
"axios": "^0.21.4",
|
|
"axios-mock-adapter": "^1.19.0",
|
|
"babel-jest": "^26.6.3",
|
|
"babel-preset-medusa-package": "^1.0.0",
|
|
"cross-env": "^7.0.3",
|
|
"eslint": "^8.23.0",
|
|
"eslint-config-google": "^0.14.0",
|
|
"eslint-config-prettier": "^8.5.0",
|
|
"eslint-plugin-prettier": "^4.2.1",
|
|
"eslint-plugin-react": "^7.31.11",
|
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
"eslint-plugin-react-refresh": "^0.4.5",
|
|
"eslint-plugin-storybook": "^0.6.12",
|
|
"eslint-plugin-unused-imports": "^2.0.0",
|
|
"express": "^4.17.1",
|
|
"get-port": "^5.1.1",
|
|
"husky": "^7.0.4",
|
|
"import-from": "^3.0.0",
|
|
"jest": "^26.6.3",
|
|
"lint-staged": "^11.2.6",
|
|
"microbundle": "^0.13.3",
|
|
"pg-god": "^1.0.12",
|
|
"prettier": "^2.7.1",
|
|
"prettier-plugin-tailwindcss": "^0.2.3",
|
|
"resolve-cwd": "^3.0.0",
|
|
"ts-jest": "^26.5.6",
|
|
"ts-node": "^10.9.1",
|
|
"turbo": "^1.6.3",
|
|
"typeorm": "^0.3.16"
|
|
},
|
|
"lint-staged": {
|
|
"*.{js,jsx,ts,tsx}": "yarn run lint",
|
|
"*.{md,yaml,yml}": "prettier --write"
|
|
},
|
|
"scripts": {
|
|
"hooks:install": "husky install",
|
|
"hooks:uninstall": "husky uninstall",
|
|
"build": "turbo run build --no-daemon",
|
|
"lint": "eslint --ignore-path .eslintignore --ext .js,.ts,.tsx .",
|
|
"prettier": "prettier",
|
|
"jest": "jest",
|
|
"test": "turbo run test --no-daemon",
|
|
"test:integration:packages": "turbo run test:integration --no-daemon --filter='./packages/*'",
|
|
"test:integration:api": "turbo run test:integration --no-daemon --filter=integration-tests-api",
|
|
"test:integration:plugins": "turbo run test:integration --no-daemon --filter=integration-tests-plugins",
|
|
"test:integration:repositories": "turbo run test:integration --no-daemon --filter=integration-tests-repositories",
|
|
"openapi:generate": "yarn ./packages/oas/oas-github-ci run ci --with-full-file",
|
|
"medusa-oas": "yarn ./packages/oas/medusa-oas-cli run medusa-oas",
|
|
"release:snapshot": "changeset publish --no-git-tags --snapshot --tag snapshot",
|
|
"develop": "ts-node --transpile-only ./integration-tests/development/server.js",
|
|
"develop:create:db": "ts-node --transpile-only ./integration-tests/development/create-database.js",
|
|
"release:next": "changeset publish --no-git-tags --snapshot --tag next",
|
|
"version:next": "changeset version --snapshot next",
|
|
"release": "changeset publish",
|
|
"version": "changeset version && yarn install --no-immutable"
|
|
},
|
|
"dependencies": {
|
|
"@changesets/changelog-github": "^0.4.8",
|
|
"@changesets/cli": "^2.26.0",
|
|
"global": "^4.4.0",
|
|
"import-from": "^3.0.0"
|
|
},
|
|
"packageManager": "yarn@3.2.1",
|
|
"resolutions": {
|
|
"@redocly/cli/react": "^17.0.1",
|
|
"@redocly/cli/react-dom": "^17.0.1",
|
|
"pg": "8.10.0"
|
|
}
|
|
}
|