From be73034d0d3eac0e9b2f92ae12b750a53598aac6 Mon Sep 17 00:00:00 2001 From: Isaac Shoebottom Date: Thu, 2 Nov 2023 11:11:22 -0300 Subject: [PATCH] Move around files to accomodate external development --- src/lib/react.ts | 10 ++++++++++ {no-ports => src/no-ports}/auto-upgrade.js | 0 {no-ports => src/no-ports}/hack-all.js | 0 {no-ports => src/no-ports}/hack-args.js | 0 {no-ports => src/no-ports}/hack.js | 0 {no-ports => src/no-ports}/recursive-copy.js | 0 {no-ports => src/no-ports}/recursive-kill.js | 0 {no-ports => src/no-ports}/recursive-run.js | 0 {no-ports => src/no-ports}/root.js | 0 {no-ports => src/no-ports}/run.js | 0 10 files changed, 10 insertions(+) create mode 100644 src/lib/react.ts rename {no-ports => src/no-ports}/auto-upgrade.js (100%) rename {no-ports => src/no-ports}/hack-all.js (100%) rename {no-ports => src/no-ports}/hack-args.js (100%) rename {no-ports => src/no-ports}/hack.js (100%) rename {no-ports => src/no-ports}/recursive-copy.js (100%) rename {no-ports => src/no-ports}/recursive-kill.js (100%) rename {no-ports => src/no-ports}/recursive-run.js (100%) rename {no-ports => src/no-ports}/root.js (100%) rename {no-ports => src/no-ports}/run.js (100%) diff --git a/src/lib/react.ts b/src/lib/react.ts new file mode 100644 index 0000000..2a721d1 --- /dev/null +++ b/src/lib/react.ts @@ -0,0 +1,10 @@ +import ReactNamespace from 'react/index'; +import ReactDomNamespace from 'react-dom'; + +const React = window.React as typeof ReactNamespace; +const ReactDOM = window.ReactDOM as typeof ReactDomNamespace; + +export default React; +export { + ReactDOM +} \ No newline at end of file diff --git a/no-ports/auto-upgrade.js b/src/no-ports/auto-upgrade.js similarity index 100% rename from no-ports/auto-upgrade.js rename to src/no-ports/auto-upgrade.js diff --git a/no-ports/hack-all.js b/src/no-ports/hack-all.js similarity index 100% rename from no-ports/hack-all.js rename to src/no-ports/hack-all.js diff --git a/no-ports/hack-args.js b/src/no-ports/hack-args.js similarity index 100% rename from no-ports/hack-args.js rename to src/no-ports/hack-args.js diff --git a/no-ports/hack.js b/src/no-ports/hack.js similarity index 100% rename from no-ports/hack.js rename to src/no-ports/hack.js diff --git a/no-ports/recursive-copy.js b/src/no-ports/recursive-copy.js similarity index 100% rename from no-ports/recursive-copy.js rename to src/no-ports/recursive-copy.js diff --git a/no-ports/recursive-kill.js b/src/no-ports/recursive-kill.js similarity index 100% rename from no-ports/recursive-kill.js rename to src/no-ports/recursive-kill.js diff --git a/no-ports/recursive-run.js b/src/no-ports/recursive-run.js similarity index 100% rename from no-ports/recursive-run.js rename to src/no-ports/recursive-run.js diff --git a/no-ports/root.js b/src/no-ports/root.js similarity index 100% rename from no-ports/root.js rename to src/no-ports/root.js diff --git a/no-ports/run.js b/src/no-ports/run.js similarity index 100% rename from no-ports/run.js rename to src/no-ports/run.js