Skip to content

Commit

Permalink
feat: bumped react types version
Browse files Browse the repository at this point in the history
  • Loading branch information
field123 committed Oct 30, 2023
1 parent b62ab03 commit 1df0d6b
Show file tree
Hide file tree
Showing 8 changed files with 37 additions and 37 deletions.
7 changes: 4 additions & 3 deletions examples/algolia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"dependencies": {
"@algolia/react-instantsearch-widget-color-refinement-list": "^1.4.7",
"@elasticpath/react-shopper-hooks": "0.5.1",
"@elasticpath/shopper-common": "0.1.1",
"@elasticpath/react-shopper-hooks": "^0.5.1",
"@elasticpath/shopper-common": "^0.1.1",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@moltin/sdk": "^25.0.2",
Expand All @@ -47,7 +47,8 @@
},
"devDependencies": {
"@babel/core": "^7.18.10",
"@next/bundle-analyzer": "13.0.4",
"@next/bundle-analyzer": "^14.0.0",
"@next/env": "^14.0.0",
"@svgr/webpack": "^6.3.1",
"@types/node": "18.7.3",
"@types/react": "^18.2.33",
Expand Down
7 changes: 4 additions & 3 deletions examples/basic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"start:e2e": "NODE_ENV=test next start"
},
"dependencies": {
"@elasticpath/react-shopper-hooks": "0.5.1",
"@elasticpath/shopper-common": "0.1.1",
"@elasticpath/react-shopper-hooks": "^0.5.1",
"@elasticpath/shopper-common": "^0.1.1",
"@headlessui/react": "^1.7.17",
"@heroicons/react": "^2.0.18",
"@moltin/sdk": "^25.0.2",
Expand All @@ -44,7 +44,8 @@
},
"devDependencies": {
"@babel/core": "^7.18.10",
"@next/bundle-analyzer": "13.0.4",
"@next/bundle-analyzer": "^14.0.0",
"@next/env": "^14.0.0",
"@svgr/webpack": "^6.3.1",
"@types/node": "18.7.3",
"@types/react": "^18.2.33",
Expand Down
8 changes: 0 additions & 8 deletions packages/d2c-schematics/utility/latest-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,3 @@ export const latestVersions: Record<string, string> = {
// but ts_library doesn't support JSON inputs.
...require("./latest-versions/package.json")["dependencies"],
}

const reactShopperHooks = require("../../react-shopper-hooks/package.json")
const shopperCommon = require("../../shopper-common/package.json")

export const localLatestVersions: Record<string, string> = {
[reactShopperHooks.name]: reactShopperHooks.version.toString(),
[shopperCommon.name]: shopperCommon.version.toString(),
}
7 changes: 4 additions & 3 deletions packages/d2c-schematics/utility/latest-versions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"private": true,
"dependencies": {
"@moltin/sdk": "^25.0.2",
"@elasticpath/react-shopper-hooks": "0.5.1",
"@elasticpath/shopper-common": "0.1.1",
"@elasticpath/react-shopper-hooks": "^0.5.1",
"@elasticpath/shopper-common": "^0.1.1",
"clsx": "^1.2.1",
"cookies-next": "^4.0.0",
"focus-visible": "^5.2.0",
Expand Down Expand Up @@ -45,7 +45,8 @@
"react-instantsearch-nextjs": "^0.1.2",
"server-only": "^0.0.1",
"instantsearch.js": "4.58.0",
"@next/bundle-analyzer": "13.0.4",
"@next/bundle-analyzer": "^14.0.0",
"@next/env": "^14.0.0",
"encoding": "^0.1.13",
"@stripe/react-stripe-js": "^2.3.0",
"@stripe/stripe-js": "^2.1.6",
Expand Down
5 changes: 3 additions & 2 deletions packages/d2c-schematics/workspace/files/package.json.template
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
},
"dependencies": {
"@moltin/sdk": "<%= latestVersions['@moltin/sdk'] %>",
"@elasticpath/react-shopper-hooks": "<%= localLatestVersions['@elasticpath/react-shopper-hooks'] %>",
"@elasticpath/shopper-common": "<%= localLatestVersions['@elasticpath/shopper-common'] %>",
"@elasticpath/react-shopper-hooks": "<%= latestVersions['@elasticpath/react-shopper-hooks'] %>",
"@elasticpath/shopper-common": "<%= latestVersions['@elasticpath/shopper-common'] %>",
"clsx": "<%= latestVersions['clsx'] %>",
"cookies-next": "<%= latestVersions['cookies-next'] %>",
"focus-visible": "<%= latestVersions['focus-visible'] %>",
Expand All @@ -43,6 +43,7 @@
"devDependencies": {
"@babel/core": "<%= latestVersions['@babel/core'] %>",
"@next/bundle-analyzer": "<%= latestVersions['@next/bundle-analyzer'] %>",
"@next/env": "<%= latestVersions['@next/env'] %>",
"@svgr/webpack": "<%= latestVersions['@svgr/webpack'] %>",
"@types/node": "<%= latestVersions['@types/node'] %>",
"@types/react": "<%= latestVersions['@types/react'] %>",
Expand Down
2 changes: 0 additions & 2 deletions packages/d2c-schematics/workspace/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {
filter,
} from "@angular-devkit/schematics"
import { latestVersions } from "../utility/latest-versions"
import { localLatestVersions } from "../utility/latest-versions"
import { Schema as WorkspaceOptions } from "./schema"
import { pathEndsWith } from "../utility/path-ends-with"

Expand All @@ -31,7 +30,6 @@ export default function (options: WorkspaceOptions): Rule {
...options,
dot: ".",
latestVersions,
localLatestVersions,
packageManager: options.packageManager ?? "npm",
}),
]),
Expand Down
4 changes: 2 additions & 2 deletions packages/react-shopper-hooks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
}
},
"devDependencies": {
"@types/react": "^18.2.0",
"@types/react-dom": "^18.2.0",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"@vitejs/plugin-react": "^2.2.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
34 changes: 20 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1df0d6b

Please sign in to comment.