Skip to content

Commit

Permalink
Update Preconstruct
Browse files Browse the repository at this point in the history
  • Loading branch information
lukebennett88 committed Oct 25, 2022
1 parent 112bd83 commit 456f8df
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 61 deletions.
5 changes: 5 additions & 0 deletions .changeset/tall-dancers-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'react-select': patch
---

Move files around to as to be compatible with version 2 of `@preconstruct/cli`
5 changes: 1 addition & 4 deletions docs/generate-magical-types/generate/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"main": "dist/generate-magical-types.cjs.js",
"preconstruct": {
"source": "../src/generate"
}
"main": "dist/react-select-generate-magical-types-generate.cjs.js"
}
4 changes: 2 additions & 2 deletions docs/generate-magical-types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
},
"preconstruct": {
"entrypoints": [
"generate",
"serialize"
"generate.ts",
"serialize.ts"
]
}
}
5 changes: 1 addition & 4 deletions docs/generate-magical-types/serialize/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"main": "dist/generate-magical-types.cjs.js",
"preconstruct": {
"source": "../src/serialize"
}
"main": "dist/react-select-generate-magical-types-serialize.cjs.js"
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@emotion/babel-plugin": "^11.10.2",
"@emotion/jest": "^11.1.0",
"@manypkg/cli": "^0.19.2",
"@preconstruct/cli": "^1.0.0",
"@preconstruct/cli": "^2.2.2",
"@testing-library/dom": "8.19.0",
"@testing-library/jest-dom": "5.1.1",
"@testing-library/react": "12.1.4",
Expand Down
9 changes: 3 additions & 6 deletions packages/react-select/animated/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"main": "dist/react-select.cjs.js",
"module": "dist/react-select.esm.js",
"types": "dist/react-select.cjs.d.ts",
"preconstruct": {
"source": "../src/animated"
}
"main": "dist/react-select-animated.cjs.js",
"module": "dist/react-select-animated.esm.js",
"types": "dist/react-select-animated.cjs.d.ts"
}
9 changes: 3 additions & 6 deletions packages/react-select/async-creatable/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"main": "dist/react-select.cjs.js",
"module": "dist/react-select.esm.js",
"types": "dist/react-select.cjs.d.ts",
"preconstruct": {
"source": "../src/AsyncCreatable"
}
"main": "dist/react-select-async-creatable.cjs.js",
"module": "dist/react-select-async-creatable.esm.js",
"types": "dist/react-select-async-creatable.cjs.d.ts"
}
9 changes: 3 additions & 6 deletions packages/react-select/async/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"main": "dist/react-select.cjs.js",
"module": "dist/react-select.esm.js",
"types": "dist/react-select.cjs.d.ts",
"preconstruct": {
"source": "../src/Async"
}
"main": "dist/react-select-async.cjs.js",
"module": "dist/react-select-async.esm.js",
"types": "dist/react-select-async.cjs.d.ts"
}
9 changes: 3 additions & 6 deletions packages/react-select/base/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"main": "dist/react-select.cjs.js",
"module": "dist/react-select.esm.js",
"types": "dist/react-select.cjs.d.ts",
"preconstruct": {
"source": "../src/Select"
}
"main": "dist/react-select-base.cjs.js",
"module": "dist/react-select-base.esm.js",
"types": "dist/react-select-base.cjs.d.ts"
}
9 changes: 3 additions & 6 deletions packages/react-select/creatable/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"main": "dist/react-select.cjs.js",
"module": "dist/react-select.esm.js",
"types": "dist/react-select.cjs.d.ts",
"preconstruct": {
"source": "../src/Creatable"
}
"main": "dist/react-select-creatable.cjs.js",
"module": "dist/react-select-creatable.esm.js",
"types": "dist/react-select-creatable.cjs.d.ts"
}
12 changes: 6 additions & 6 deletions packages/react-select/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@
],
"preconstruct": {
"entrypoints": [
".",
"base",
"animated",
"async",
"creatable",
"async-creatable"
"index.ts",
"base/index.ts",
"animated/index.ts",
"async/index.ts",
"creatable/index.ts",
"async-creatable/index.ts"
]
}
}
2 changes: 2 additions & 0 deletions packages/react-select/src/async-creatable/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from '../AsyncCreatable';
export { default } from '../AsyncCreatable';
2 changes: 2 additions & 0 deletions packages/react-select/src/async/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from '../Async';
export { default } from '../Async';
2 changes: 2 additions & 0 deletions packages/react-select/src/base/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from '../Select';
export { default } from '../Select';
2 changes: 2 additions & 0 deletions packages/react-select/src/creatable/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
export * from '../Creatable';
export { default } from '../Creatable';
28 changes: 14 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2308,10 +2308,10 @@
resolved "https://registry.yarnpkg.com/@popperjs/core/-/core-2.9.2.tgz#adea7b6953cbb34651766b0548468e743c6a2353"
integrity sha512-VZMYa7+fXHdwIq1TDhSXoVmSPEGM/aa+6Aiq3nVVJ9bXr24zScr+NlKFKC3iPljA7ho/GAZr+d2jOf5GIRC30Q==

"@preconstruct/cli@^1.0.0":
version "1.2.2"
resolved "https://registry.yarnpkg.com/@preconstruct/cli/-/cli-1.2.2.tgz#379d432cf911b42bf04999161d5200685d4de4bb"
integrity sha512-0Thzanz4MGy+E0v+2Srbe4oc1sPsfc+Ce61M/JOvGa3cgAl/4TzlSWh66XAvf8lnyTLkvip1paoBjVdWaFF80A==
"@preconstruct/cli@^2.2.2":
version "2.2.2"
resolved "https://registry.yarnpkg.com/@preconstruct/cli/-/cli-2.2.2.tgz#2327aa2486f7c3650cfa726e667a9d80007e50d8"
integrity sha512-7Zk8g/G+SPusoL1Ir3oslj19QDoFuAKeQO8B6fnNkRRgvIntxnylGZyC4wdKVX/eeDHwca1LNLT/GyjXx1f1nA==
dependencies:
"@babel/code-frame" "^7.5.5"
"@babel/core" "^7.7.7"
Expand All @@ -2321,7 +2321,7 @@
"@rollup/plugin-alias" "^3.1.1"
"@rollup/plugin-commonjs" "^15.0.0"
"@rollup/plugin-json" "^4.1.0"
"@rollup/plugin-node-resolve" "^9.0.0"
"@rollup/plugin-node-resolve" "^11.2.1"
"@rollup/plugin-replace" "^2.4.1"
builtin-modules "^3.1.0"
chalk "^4.1.0"
Expand All @@ -2330,14 +2330,13 @@
enquirer "^2.3.6"
estree-walker "^2.0.1"
fast-deep-equal "^2.0.1"
fast-glob "^3.2.4"
fs-extra "^9.0.1"
globby "^11.0.1"
is-ci "^2.0.0"
is-reference "^1.2.1"
jest-worker "^26.3.0"
magic-string "^0.25.7"
meow "^7.1.0"
micromatch "^4.0.2"
ms "^2.1.2"
normalize-path "^3.0.0"
npm-packlist "^2.1.2"
Expand All @@ -2348,6 +2347,7 @@
resolve "^1.17.0"
resolve-from "^5.0.0"
rollup "^2.32.0"
semver "^7.3.4"
terser "^5.2.1"
v8-compile-cache "^2.1.1"

Expand Down Expand Up @@ -2388,17 +2388,17 @@
dependencies:
"@rollup/pluginutils" "^3.0.8"

"@rollup/plugin-node-resolve@^9.0.0":
version "9.0.0"
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-9.0.0.tgz#39bd0034ce9126b39c1699695f440b4b7d2b62e6"
integrity sha512-gPz+utFHLRrd41WMP13Jq5mqqzHL3OXrfj3/MkSyB6UBIcuNt9j60GCbarzMzdf1VHFpOxfQh/ez7wyadLMqkg==
"@rollup/plugin-node-resolve@^11.2.1":
version "11.2.1"
resolved "https://registry.yarnpkg.com/@rollup/plugin-node-resolve/-/plugin-node-resolve-11.2.1.tgz#82aa59397a29cd4e13248b106e6a4a1880362a60"
integrity sha512-yc2n43jcqVyGE2sqV5/YCmocy9ArjVAP/BeXyTtADTBBX6V0e5UMqwO8CdQ0kzjb6zu5P1qMzsScCMRvE9OlVg==
dependencies:
"@rollup/pluginutils" "^3.1.0"
"@types/resolve" "1.17.1"
builtin-modules "^3.1.0"
deepmerge "^4.2.2"
is-module "^1.0.0"
resolve "^1.17.0"
resolve "^1.19.0"

"@rollup/plugin-replace@^2.4.1":
version "2.4.2"
Expand Down Expand Up @@ -8495,7 +8495,7 @@ fast-glob@^2.2.6:
merge2 "^1.2.3"
micromatch "^3.1.10"

fast-glob@^3.2.2, fast-glob@^3.2.9:
fast-glob@^3.2.2, fast-glob@^3.2.4, fast-glob@^3.2.9:
version "3.2.12"
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.12.tgz#7f39ec99c2e6ab030337142da9e0c18f37afae80"
integrity sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==
Expand Down Expand Up @@ -9369,7 +9369,7 @@ globalthis@^1.0.0:
dependencies:
define-properties "^1.1.3"

globby@^11.0.0, globby@^11.0.1, globby@^11.0.2, globby@^11.0.3:
globby@^11.0.0, globby@^11.0.2, globby@^11.0.3:
version "11.1.0"
resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"
integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==
Expand Down

0 comments on commit 456f8df

Please sign in to comment.