@react-router/dev 0.0.0-experimental-f7761f1cd → 0.0.0-experimental-63fd291ad
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin.js +15 -0
- package/dist/cli/index.d.ts +1 -2
- package/dist/cli/index.js +2649 -378
- package/dist/config.d.ts +280 -2
- package/dist/config.js +19 -2
- package/dist/{routes-Kx8VZRs3.d.ts → routes-CZR-bKRt.d.ts} +62 -63
- package/dist/routes.d.ts +2 -3
- package/dist/routes.js +190 -3
- package/dist/vite/cloudflare.d.ts +24 -0
- package/dist/vite/cloudflare.js +949 -0
- package/dist/vite.d.ts +6 -7
- package/dist/vite.js +6588 -3187
- package/module-sync-enabled/index.mjs +2 -2
- package/package.json +59 -53
- package/bin.cjs +0 -20
- package/dist/build-_VgN3Fs2.js +0 -41
- package/dist/config-DvmRcD4Z.d.ts +0 -279
- package/dist/dev-Cx78re5_.js +0 -53
- package/dist/routes-Craztzkd.js +0 -194
- package/dist/typegen-DrKkP7mg.js +0 -857
package/bin.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
let arg = require("arg");
|
|
3
|
+
|
|
4
|
+
// Minimal replication of our actual parsing in `run.ts`. If not already set,
|
|
5
|
+
// default `NODE_ENV` so React loads the proper version in it's CJS entry script.
|
|
6
|
+
// We have to do this before importing `run.ts` since that is what imports
|
|
7
|
+
// `react` (indirectly via `react-router`)
|
|
8
|
+
let args = arg({}, { argv: process.argv.slice(2), permissive: true });
|
|
9
|
+
if (args._.length === 0 || args._[0] === "dev") {
|
|
10
|
+
process.env.NODE_ENV = process.env.NODE_ENV ?? "development";
|
|
11
|
+
} else {
|
|
12
|
+
process.env.NODE_ENV = process.env.NODE_ENV ?? "production";
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
require("./dist/cli/index");
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { };
|
|
1
|
+
#!/usr/bin/env node
|