Skip to content

Commit 6decbd5

Browse files
committed
📦 fix for scaffolding tool not supporting hooks
transitive-bullshit/create-react-library#99
1 parent 1795cd3 commit 6decbd5

File tree

4 files changed

+21
-33
lines changed

4 files changed

+21
-33
lines changed

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
"private": true,
77
"dependencies": {
88
"prop-types": "^15.6.2",
9-
"react": "^16.4.1",
10-
"react-dom": "^16.4.1",
9+
"react": "link:../node_modules/react",
10+
"react-dom": "link:../node_modules/react-dom",
1111
"react-physics-dragger": "link:..",
1212
"react-scripts": "^1.1.4",
1313
"resize-observer-polyfill": "^1.5.1"

example/yarn.lock

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -6331,15 +6331,9 @@ react-dev-utils@^5.0.2:
63316331
strip-ansi "3.0.1"
63326332
text-table "0.2.0"
63336333

6334-
react-dom@^16.4.1:
6335-
version "16.8.6"
6336-
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.6.tgz#71d6303f631e8b0097f56165ef608f051ff6e10f"
6337-
integrity sha512-1nL7PIq9LTL3fthPqwkvr2zY7phIPjYrT0jp4HjyEQrEROnw4dG41VVwi/wfoCneoleqrNX7iAD+pXebJZwrwA==
6338-
dependencies:
6339-
loose-envify "^1.1.0"
6340-
object-assign "^4.1.1"
6341-
prop-types "^15.6.2"
6342-
scheduler "^0.13.6"
6334+
"react-dom@link:../node_modules/react-dom":
6335+
version "0.0.0"
6336+
uid ""
63436337

63446338
react-error-overlay@^4.0.1:
63456339
version "4.0.1"
@@ -6401,15 +6395,9 @@ react-scripts@^1.1.4:
64016395
optionalDependencies:
64026396
fsevents "^1.1.3"
64036397

6404-
react@^16.4.1:
6405-
version "16.8.6"
6406-
resolved "https://registry.yarnpkg.com/react/-/react-16.8.6.tgz#ad6c3a9614fd3a4e9ef51117f54d888da01f2bbe"
6407-
integrity sha512-pC0uMkhLaHm11ZSJULfOBqV4tIZkx87ZLvbbQYunNixAAvjnC+snJCg0XQXn9VIsttVsbZP/H/ewzgsd5fxKXw==
6408-
dependencies:
6409-
loose-envify "^1.1.0"
6410-
object-assign "^4.1.1"
6411-
prop-types "^15.6.2"
6412-
scheduler "^0.13.6"
6398+
"react@link:../node_modules/react":
6399+
version "0.0.0"
6400+
uid ""
64136401

64146402
read-pkg-up@^1.0.1:
64156403
version "1.0.1"

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@
4444
"eslint-plugin-react": "^7.10.0",
4545
"eslint-plugin-standard": "^3.1.0",
4646
"gh-pages": "^1.2.0",
47-
"react": "^16.4.1",
48-
"react-dom": "^16.4.1",
47+
"react": "16.8.1",
48+
"react-dom": "16.8.1",
4949
"react-scripts": "^1.1.4",
5050
"rollup": "^0.64.1",
5151
"rollup-plugin-babel": "^3.0.7",

yarn.lock

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8224,15 +8224,15 @@ react-dev-utils@^5.0.2:
82248224
strip-ansi "3.0.1"
82258225
text-table "0.2.0"
82268226

8227-
react-dom@^16.4.1:
8228-
version "16.8.6"
8229-
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.6.tgz#71d6303f631e8b0097f56165ef608f051ff6e10f"
8230-
integrity sha512-1nL7PIq9LTL3fthPqwkvr2zY7phIPjYrT0jp4HjyEQrEROnw4dG41VVwi/wfoCneoleqrNX7iAD+pXebJZwrwA==
8227+
react-dom@16.8.1:
8228+
version "16.8.1"
8229+
resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.8.1.tgz#ec860f98853d09d39bafd3a6f1e12389d283dbb4"
8230+
integrity sha512-N74IZUrPt6UiDjXaO7UbDDFXeUXnVhZzeRLy/6iqqN1ipfjrhR60Bp5NuBK+rv3GMdqdIuwIl22u1SYwf330bg==
82318231
dependencies:
82328232
loose-envify "^1.1.0"
82338233
object-assign "^4.1.1"
82348234
prop-types "^15.6.2"
8235-
scheduler "^0.13.6"
8235+
scheduler "^0.13.1"
82368236

82378237
react-error-overlay@^4.0.1:
82388238
version "4.0.1"
@@ -8290,15 +8290,15 @@ react-scripts@^1.1.4:
82908290
optionalDependencies:
82918291
fsevents "^1.1.3"
82928292

8293-
react@^16.4.1:
8294-
version "16.8.6"
8295-
resolved "https://registry.yarnpkg.com/react/-/react-16.8.6.tgz#ad6c3a9614fd3a4e9ef51117f54d888da01f2bbe"
8296-
integrity sha512-pC0uMkhLaHm11ZSJULfOBqV4tIZkx87ZLvbbQYunNixAAvjnC+snJCg0XQXn9VIsttVsbZP/H/ewzgsd5fxKXw==
8293+
react@16.8.1:
8294+
version "16.8.1"
8295+
resolved "https://registry.yarnpkg.com/react/-/react-16.8.1.tgz#ae11831f6cb2a05d58603a976afc8a558e852c4a"
8296+
integrity sha512-wLw5CFGPdo7p/AgteFz7GblI2JPOos0+biSoxf1FPsGxWQZdN/pj6oToJs1crn61DL3Ln7mN86uZ4j74p31ELQ==
82978297
dependencies:
82988298
loose-envify "^1.1.0"
82998299
object-assign "^4.1.1"
83008300
prop-types "^15.6.2"
8301-
scheduler "^0.13.6"
8301+
scheduler "^0.13.1"
83028302

83038303
read-pkg-up@^1.0.1:
83048304
version "1.0.1"
@@ -8877,7 +8877,7 @@ saxes@^3.1.9:
88778877
dependencies:
88788878
xmlchars "^1.3.1"
88798879

8880-
scheduler@^0.13.6:
8880+
scheduler@^0.13.1:
88818881
version "0.13.6"
88828882
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.13.6.tgz#466a4ec332467b31a91b9bf74e5347072e4cd889"
88838883
integrity sha512-IWnObHt413ucAYKsD9J1QShUKkbKLQQHdxRyw73sw4FN26iWr3DY/H34xGPe4nmL1DwXyWmSWmMrA9TfQbE/XQ==

0 commit comments

Comments
 (0)