dinou 8.0.0 → 8.0.2
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/CHANGELOG.md +32 -22
- package/README.md +9 -5
- package/cli.js +10 -10
- package/dinou/bun/build.js +1 -1
- package/dinou/cloudflare/build.js +1 -1
- package/dinou/core/export-static.js +1 -1
- package/dinou/core/generate-route-types.js +1 -14
- package/dinou/deno/build.js +1 -1
- package/dinou/node/build.js +3 -3
- package/dinou/node/terminal-status.js +1 -1
- package/dinou/package.json +1 -1
- package/eject.js +224 -224
- package/package.json +111 -111
package/CHANGELOG.md
CHANGED
|
@@ -5,28 +5,38 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
7
|
|
|
8
|
-
## [8.0.
|
|
9
|
-
|
|
10
|
-
###
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
- **
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
- **
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
8
|
+
## [8.0.2] - 2026-10-22
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **Type-Safe Routing Ambient Inclusions**: Dinou no longer modifies `dinou-env.d.ts` at runtime. Ambient route declarations (`.dinou/types/routes.d.ts`) are now consumed directly via `tsconfig.json` (`".dinou/types/**/*.d.ts"`), preventing `TS6053` errors on fresh clones and keeping Git working trees clean.
|
|
12
|
+
|
|
13
|
+
## [8.0.1] - 2026-10-21
|
|
14
|
+
|
|
15
|
+
### Fixed
|
|
16
|
+
- **CLI & Adapter Build Banners**: Normalized terminal ready banner and build logs across all adapters (Node.js, Cloudflare, Deno, Bun, Static Export) removing hardcoded legacy version labels.
|
|
17
|
+
|
|
18
|
+
## [8.0.0] - 2026-10-20
|
|
19
|
+
|
|
20
|
+
### ⚠️ Breaking Changes
|
|
21
|
+
> **Note**: For standard Dinou applications using `import` and the Dinou CLI, upgrading from v7 to v8 is completely seamless and requires zero code changes.
|
|
22
|
+
|
|
23
|
+
- **Native ESM Framework (`"type": "module"`)**: Dinou is now distributed and executed strictly as native ECMAScript Modules (ESM). `package.json` includes `"type": "module"`, allowing all framework and consumer code to run with modern ESM semantics.
|
|
24
|
+
- **Source & Extension Unification (`.mjs` -> `.js`)**: Eliminated the hybrid extension fragmentation (`.mjs` vs `.js`). All framework build scripts, CLI commands, adapters, and entrypoints now use standard `.js` extension across the codebase.
|
|
25
|
+
- **Package Exports Modernization**: Dropped legacy CommonJS conditional exports (`"require"`) and `.mjs` targets in `package.json`. All public subpaths (`dinou`, `dinou/server`, `dinou/config`, `dinou/adapters/*`) resolve directly to standard ESM `.js` targets.
|
|
26
|
+
- **Universal Edge Renderer Singleton (`__DINOU_EDGE_RENDERER__`)**: Replaced dynamic module resolution in dual-bundle compilation with an explicit global singleton (`globalThis.__DINOU_EDGE_RENDERER__`), guaranteeing that React 19 RSC streaming and Server Function serialization share identical context across runtime engines.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
- **CLI & Eject Architecture Modernization**:
|
|
30
|
+
- Migrated `cli.js` to native ESM imports using Commander.
|
|
31
|
+
- Refactored `eject.js` into an idiomatic ESM module exporting `eject()`.
|
|
32
|
+
- Updated all ejected `npm run` scripts to reference standard `.js` entry points across all adapters and bundlers (Esbuild, Rollup, Webpack).
|
|
33
|
+
- **Core Cleanup & Canonical Config Resolution**:
|
|
34
|
+
- Removed obsolete root wrapper `dinou/config.js`, establishing `dinou/core/config.js` as the sole canonical implementation for the `"dinou/config"` export.
|
|
35
|
+
- Formatted and aligned root `package.json` fields according to modern ecosystem conventions.
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
- **Layout `allowISG: false` False 404 on Static Routes**: Fixed a bug in `handler.js` where setting `allowISG: false` in layout functions caused production requests to prematurely return an unconditional `404 Not Found`. The handler now properly verifies parameter matches against `staticPathsSet` (`getStaticPaths`) and confirms whether pre-rendered layout artifacts (`layout.rsc`) exist on disk before blocking unauthorized dynamic paths.
|
|
39
|
+
|
|
30
40
|
## [7.3.0]
|
|
31
41
|
|
|
32
42
|
### Added
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# **Dinou**
|
|
2
2
|
|
|
3
|
-
[](https://dinou.dev) [](https://dinou.dev) [](https://www.npmjs.com/package/dinou)
|
|
4
4
|
|
|
5
5
|
### **Full-Stack React 19 Framework**
|
|
6
6
|
|
|
@@ -539,7 +539,8 @@ Dinou does not force you to use TypeScript—you are completely free to write yo
|
|
|
539
539
|
},
|
|
540
540
|
"include": [
|
|
541
541
|
"src",
|
|
542
|
-
"dinou-env.d.ts"
|
|
542
|
+
"dinou-env.d.ts",
|
|
543
|
+
".dinou/types/**/*.d.ts"
|
|
543
544
|
]
|
|
544
545
|
}
|
|
545
546
|
```
|
|
@@ -6148,7 +6149,8 @@ Ensure your `tsconfig.json` includes the declaration file and specifies `"module
|
|
|
6148
6149
|
},
|
|
6149
6150
|
"include": [
|
|
6150
6151
|
"src",
|
|
6151
|
-
"dinou-env.d.ts"
|
|
6152
|
+
"dinou-env.d.ts",
|
|
6153
|
+
".dinou/types/**/*.d.ts"
|
|
6152
6154
|
]
|
|
6153
6155
|
}
|
|
6154
6156
|
```
|
|
@@ -6426,7 +6428,8 @@ And confirm your `tsconfig.json` includes the reference:
|
|
|
6426
6428
|
},
|
|
6427
6429
|
"include": [
|
|
6428
6430
|
"src",
|
|
6429
|
-
"dinou-env.d.ts"
|
|
6431
|
+
"dinou-env.d.ts",
|
|
6432
|
+
".dinou/types/**/*.d.ts"
|
|
6430
6433
|
]
|
|
6431
6434
|
}
|
|
6432
6435
|
```
|
|
@@ -6698,7 +6701,8 @@ To enable the standard `@/*` alias pointing to your `src/` directory, configure
|
|
|
6698
6701
|
},
|
|
6699
6702
|
"include": [
|
|
6700
6703
|
"src",
|
|
6701
|
-
"dinou-env.d.ts"
|
|
6704
|
+
"dinou-env.d.ts",
|
|
6705
|
+
".dinou/types/**/*.d.ts"
|
|
6702
6706
|
]
|
|
6703
6707
|
}
|
|
6704
6708
|
```
|
package/cli.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { program } from "commander";
|
|
4
|
-
import { execSync } from "node:child_process";
|
|
5
|
-
import path from "node:path";
|
|
6
|
-
import { fileURLToPath } from "node:url";
|
|
7
|
-
|
|
8
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
3
|
+
import { program } from "commander";
|
|
4
|
+
import { execSync } from "node:child_process";
|
|
5
|
+
import path from "node:path";
|
|
6
|
+
import { fileURLToPath } from "node:url";
|
|
7
|
+
|
|
8
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
9
9
|
const dinouPath = path.resolve(__dirname, "dinou");
|
|
10
10
|
const projectRoot = process.cwd();
|
|
11
11
|
|
|
@@ -471,10 +471,10 @@ program
|
|
|
471
471
|
program
|
|
472
472
|
.command("eject")
|
|
473
473
|
.description("Copy the framework to the root of the project")
|
|
474
|
-
.action(async () => {
|
|
475
|
-
console.log("Executing eject...");
|
|
476
|
-
const { eject } = await import("./eject.js");
|
|
477
|
-
eject();
|
|
474
|
+
.action(async () => {
|
|
475
|
+
console.log("Executing eject...");
|
|
476
|
+
const { eject } = await import("./eject.js");
|
|
477
|
+
eject();
|
|
478
478
|
});
|
|
479
479
|
|
|
480
480
|
program.parse(process.argv);
|
package/dinou/bun/build.js
CHANGED
|
@@ -62,7 +62,7 @@ for (const r of candidateDinouRoots) {
|
|
|
62
62
|
const isWebpackBuild = process.env.DINOU_BUILD_TOOL === "webpack";
|
|
63
63
|
const bundlerName = isWebpackBuild ? "webpack" : (process.env.DINOU_BUILD_TOOL || "esbuild");
|
|
64
64
|
|
|
65
|
-
console.log(`\n🦖 Dinou
|
|
65
|
+
console.log(`\n🦖 Dinou (Bun • ${bundlerName})`);
|
|
66
66
|
console.log(" ⚡ Generating route modules & manifests...");
|
|
67
67
|
const routeModulesCode = generateRouteModulesCode(projectRoot, "../..");
|
|
68
68
|
const routeModulesPath = path.join(bunDir, "route-modules.js");
|
|
@@ -83,7 +83,7 @@ const bundlerName = isWebpackBuild ? "webpack" : (process.env.DINOU_BUILD_TOOL |
|
|
|
83
83
|
|
|
84
84
|
const dist2Dir = path.resolve(projectRoot, ".dinou/dist2");
|
|
85
85
|
const dist3Dir = path.resolve(projectRoot, ".dinou/dist3");
|
|
86
|
-
console.log(`\n🦖 Dinou
|
|
86
|
+
console.log(`\n🦖 Dinou (Cloudflare Workers • ${bundlerName})`);
|
|
87
87
|
if (fs.existsSync(dist2Dir)) {
|
|
88
88
|
const copiedCount = copyRecursive(dist2Dir, dist3Dir);
|
|
89
89
|
console.log(` 📄 Synchronized ${copiedCount} pre-rendered static route(s) to .dinou/dist3`);
|
|
@@ -11,7 +11,7 @@ const dist3Dir = path.resolve(projectRoot, ".dinou/dist3");
|
|
|
11
11
|
const dist2Dir = path.resolve(projectRoot, ".dinou/dist2");
|
|
12
12
|
|
|
13
13
|
const bundlerName = process.env.DINOU_BUILD_TOOL || "esbuild";
|
|
14
|
-
console.log(`\n🦖 Dinou
|
|
14
|
+
console.log(`\n🦖 Dinou (Static Export • ${bundlerName})`);
|
|
15
15
|
|
|
16
16
|
// 1. Clean output directory
|
|
17
17
|
if (fs.existsSync(outDir)) {
|
|
@@ -134,7 +134,7 @@ function generateRouteDefinitions(routes) {
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
|
-
* Generates the .dinou/types/routes.d.ts
|
|
137
|
+
* Generates the .dinou/types/routes.d.ts ambient definitions file.
|
|
138
138
|
* @param {string} projectRoot Root directory of the project (default process.cwd())
|
|
139
139
|
*/
|
|
140
140
|
function generateRouteTypes(projectRoot = process.cwd()) {
|
|
@@ -225,19 +225,6 @@ ${paramsEntries}
|
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
|
|
228
|
-
// Ensure dinou-env.d.ts references .dinou/types/routes.d.ts
|
|
229
|
-
const envFile = path.resolve(projectRoot, "dinou-env.d.ts");
|
|
230
|
-
try {
|
|
231
|
-
if (fs.existsSync(envFile)) {
|
|
232
|
-
let envContent = fs.readFileSync(envFile, "utf8");
|
|
233
|
-
const refLine = '/// <reference path="./.dinou/types/routes.d.ts" />';
|
|
234
|
-
if (!envContent.includes(refLine)) {
|
|
235
|
-
envContent = envContent.trimEnd() + "\n" + refLine + "\n";
|
|
236
|
-
fs.writeFileSync(envFile, envContent, "utf8");
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
} catch (e) {}
|
|
240
|
-
|
|
241
228
|
return {
|
|
242
229
|
staticCount: staticRoutes.length,
|
|
243
230
|
dynamicCount: dynamicRoutes.length,
|
package/dinou/deno/build.js
CHANGED
|
@@ -83,7 +83,7 @@ const bundlerName = isWebpackBuild ? "webpack" : (process.env.DINOU_BUILD_TOOL |
|
|
|
83
83
|
|
|
84
84
|
const dist2Dir = path.resolve(projectRoot, ".dinou/dist2");
|
|
85
85
|
const dist3Dir = path.resolve(projectRoot, ".dinou/dist3");
|
|
86
|
-
console.log(`\n🦖 Dinou
|
|
86
|
+
console.log(`\n🦖 Dinou (Deno • ${bundlerName})`);
|
|
87
87
|
if (fs.existsSync(dist2Dir)) {
|
|
88
88
|
const copiedCount = copyRecursive(dist2Dir, dist3Dir);
|
|
89
89
|
console.log(` 📄 Synchronized ${copiedCount} pre-rendered static route(s) to .dinou/dist3`);
|
package/dinou/node/build.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
// dinou/node/build.
|
|
2
|
-
// Dual-Bundle Build script for packaging Dinou
|
|
1
|
+
// dinou/node/build.js
|
|
2
|
+
// Dual-Bundle Build script for packaging Dinou for Node.js (Pre-bundled AOT Standalone).
|
|
3
3
|
// Pass A & Pass B: Handled via bundleDualEngine
|
|
4
4
|
// Pass C: Main Node Orchestrator (.dinou/node/server.js)
|
|
5
5
|
|
|
@@ -15,7 +15,7 @@ fs.mkdirSync(nodeDir, { recursive: true });
|
|
|
15
15
|
|
|
16
16
|
try {
|
|
17
17
|
const bundlerName = process.env.DINOU_BUILD_TOOL || "esbuild";
|
|
18
|
-
console.log(`\n🦖 Dinou
|
|
18
|
+
console.log(`\n🦖 Dinou (Node.js • ${bundlerName})`);
|
|
19
19
|
console.log(` ⚡ Compiling Pass A (RSC) and Pass B (SSR) via Dual-Engine...`);
|
|
20
20
|
const engineResult = await bundleDualEngine({
|
|
21
21
|
isDev: false,
|
|
@@ -279,7 +279,7 @@ export function printReadyBanner({ port, tool, durationMs, timings }) {
|
|
|
279
279
|
const timeBadge = durationStr ? ` ${C_DIM}in ${C_BOLD}${durationStr}${C_RESET}` : "";
|
|
280
280
|
|
|
281
281
|
console.log("");
|
|
282
|
-
console.log(` ${C_CYAN}${C_BOLD}🦖 Dinou
|
|
282
|
+
console.log(` ${C_CYAN}${C_BOLD}🦖 Dinou${C_RESET} ${C_GREEN}(Dual-Bundle, 0-fork)${C_RESET}${timeBadge}`);
|
|
283
283
|
console.log("");
|
|
284
284
|
console.log(` ${C_GREEN}➜${C_RESET} ${C_BOLD}Local:${C_RESET} ${C_CYAN}http://localhost:${port}/${C_RESET}`);
|
|
285
285
|
console.log(` ${C_GREEN}➜${C_RESET} ${C_BOLD}Bundler:${C_RESET} ${tool}`);
|
package/dinou/package.json
CHANGED
package/eject.js
CHANGED
|
@@ -1,224 +1,224 @@
|
|
|
1
|
-
import fs from "node:fs";
|
|
2
|
-
import path from "node:path";
|
|
3
|
-
import { execSync } from "node:child_process";
|
|
4
|
-
import { fileURLToPath } from "node:url";
|
|
5
|
-
|
|
6
|
-
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
7
|
-
const dinouPath = path.resolve(__dirname, "dinou");
|
|
8
|
-
const projectRoot = process.cwd();
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export function eject() {
|
|
12
|
-
console.log("🚀 Starting Dinou ejecting process...");
|
|
13
|
-
|
|
14
|
-
fs.cpSync(dinouPath, path.join(projectRoot, "dinou"), {
|
|
15
|
-
recursive: true,
|
|
16
|
-
});
|
|
17
|
-
console.log("✅ Files copied to ./dinou");
|
|
18
|
-
|
|
19
|
-
const pkgPath = path.join(projectRoot, "package.json");
|
|
20
|
-
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
|
|
21
|
-
|
|
22
|
-
pkg.scripts = pkg.scripts || {};
|
|
23
|
-
|
|
24
|
-
const ejectedScripts = {
|
|
25
|
-
dev: "npm run dev:esbuild",
|
|
26
|
-
build: "npm run build:node",
|
|
27
|
-
start: "npm run start:node",
|
|
28
|
-
"dev:esbuild": "cross-env DINOU_BUILD_TOOL=esbuild node dinou/node/dev.js",
|
|
29
|
-
"dev:rollup": "cross-env DINOU_BUILD_TOOL=rollup node dinou/node/dev.js",
|
|
30
|
-
"dev:webpack": "cross-env DINOU_BUILD_TOOL=webpack node dinou/node/dev.js",
|
|
31
|
-
"build:node": "npm run build:client:esbuild && node ./dinou/node/build.js",
|
|
32
|
-
"build:node:esbuild": "npm run build:node",
|
|
33
|
-
"build:node:rollup": "npm run build:client:rollup && node ./dinou/node/build.js",
|
|
34
|
-
"build:node:webpack": "npm run build:client:webpack && cross-env DINOU_BUILD_TOOL=webpack node ./dinou/node/build.js",
|
|
35
|
-
"build:node:compile": "npm run build:node:compile:esbuild",
|
|
36
|
-
"build:node:compile:esbuild": "npm run build:node:esbuild && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
37
|
-
"build:node:compile:rollup": "npm run build:node:rollup && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
38
|
-
"build:node:compile:webpack": "npm run build:node:webpack && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
39
|
-
"build:node:compile:linux": "npm run build:node:compile:linux:esbuild",
|
|
40
|
-
"build:node:compile:linux:esbuild": "npm run build:node:esbuild && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
41
|
-
"build:node:compile:linux:rollup": "npm run build:node:rollup && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
42
|
-
"build:node:compile:linux:webpack": "npm run build:node:webpack && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
43
|
-
"build:node:compile:linux_arm": "npm run build:node:compile:linux_arm:esbuild",
|
|
44
|
-
"build:node:compile:linux_arm:esbuild": "npm run build:node:esbuild && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
45
|
-
"build:node:compile:linux_arm:rollup": "npm run build:node:rollup && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
46
|
-
"build:node:compile:linux_arm:webpack": "npm run build:node:webpack && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
47
|
-
"build:node:compile:mac": "npm run build:node:compile:mac:esbuild",
|
|
48
|
-
"build:node:compile:mac:esbuild": "npm run build:node:esbuild && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
49
|
-
"build:node:compile:mac:rollup": "npm run build:node:rollup && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
50
|
-
"build:node:compile:mac:webpack": "npm run build:node:webpack && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
51
|
-
"build:node:compile:win": "npm run build:node:compile:win:esbuild",
|
|
52
|
-
"build:node:compile:win:esbuild": "npm run build:node:esbuild && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
53
|
-
"build:node:compile:win:rollup": "npm run build:node:rollup && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
54
|
-
"build:node:compile:win:webpack": "npm run build:node:webpack && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
55
|
-
"build:node:pure": "npm run build:node:pure:esbuild",
|
|
56
|
-
"build:node:pure:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js",
|
|
57
|
-
"build:node:pure:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js",
|
|
58
|
-
"build:node:pure:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js",
|
|
59
|
-
"build:node:pure:compile": "npm run build:node:pure:compile:esbuild",
|
|
60
|
-
"build:node:pure:compile:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
61
|
-
"build:node:pure:compile:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
62
|
-
"build:node:pure:compile:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
63
|
-
"build:node:pure:compile:linux": "npm run build:node:pure:compile:linux:esbuild",
|
|
64
|
-
"build:node:pure:compile:linux:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
65
|
-
"build:node:pure:compile:linux:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
66
|
-
"build:node:pure:compile:linux:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
67
|
-
"build:node:pure:compile:linux_arm": "npm run build:node:pure:compile:linux_arm:esbuild",
|
|
68
|
-
"build:node:pure:compile:linux_arm:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
69
|
-
"build:node:pure:compile:linux_arm:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
70
|
-
"build:node:pure:compile:linux_arm:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
71
|
-
"build:node:pure:compile:mac": "npm run build:node:pure:compile:mac:esbuild",
|
|
72
|
-
"build:node:pure:compile:mac:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
73
|
-
"build:node:pure:compile:mac:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
74
|
-
"build:node:pure:compile:mac:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
75
|
-
"build:node:pure:compile:win": "npm run build:node:pure:compile:win:esbuild",
|
|
76
|
-
"build:node:pure:compile:win:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
77
|
-
"build:node:pure:compile:win:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
78
|
-
"build:node:pure:compile:win:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
79
|
-
"start:node": "cross-env NODE_ENV=production node dinou/adapters/node.js",
|
|
80
|
-
"start:node:esbuild": "npm run start:node",
|
|
81
|
-
"start:node:rollup": "npm run start:node",
|
|
82
|
-
"start:node:webpack": "cross-env NODE_ENV=production DINOU_BUILD_TOOL=webpack node dinou/adapters/node.js",
|
|
83
|
-
"build:cloudflare": "npm run build:client:esbuild && node ./dinou/cloudflare/build.js",
|
|
84
|
-
"build:cloudflare:esbuild": "npm run build:cloudflare",
|
|
85
|
-
"build:cloudflare:rollup": "npm run build:client:rollup && node ./dinou/cloudflare/build.js",
|
|
86
|
-
"build:cloudflare:webpack": "npm run build:client:webpack && cross-env DINOU_BUILD_TOOL=webpack node ./dinou/cloudflare/build.js",
|
|
87
|
-
"build:deno": "npm run build:client:esbuild && node ./dinou/deno/build.js && deno run --unstable-kv --allow-net --allow-read --allow-write --allow-env dinou/deno/seed-kv.js",
|
|
88
|
-
"build:deno:esbuild": "npm run build:deno",
|
|
89
|
-
"build:deno:rollup": "npm run build:client:rollup && node ./dinou/deno/build.js && deno run --unstable-kv --allow-net --allow-read --allow-write --allow-env dinou/deno/seed-kv.js",
|
|
90
|
-
"build:deno:webpack": "npm run build:client:webpack && cross-env DINOU_BUILD_TOOL=webpack node ./dinou/deno/build.js && deno run --unstable-kv --allow-net --allow-read --allow-write --allow-env dinou/deno/seed-kv.js",
|
|
91
|
-
"build:deno:compile": "npm run build:deno:compile:esbuild",
|
|
92
|
-
"build:deno:compile:esbuild": "npm run build:deno:esbuild && deno compile --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server .dinou/deno/main.js",
|
|
93
|
-
"build:deno:compile:rollup": "npm run build:deno:rollup && deno compile --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server .dinou/deno/main.js",
|
|
94
|
-
"build:deno:compile:webpack": "npm run build:deno:webpack && deno compile --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server .dinou/deno/main.js",
|
|
95
|
-
"build:deno:compile:linux": "npm run build:deno:compile:linux:esbuild",
|
|
96
|
-
"build:deno:compile:linux:esbuild": "npm run build:deno:esbuild && deno compile --target x86_64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux .dinou/deno/main.js",
|
|
97
|
-
"build:deno:compile:linux:rollup": "npm run build:deno:rollup && deno compile --target x86_64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux .dinou/deno/main.js",
|
|
98
|
-
"build:deno:compile:linux:webpack": "npm run build:deno:webpack && deno compile --target x86_64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux .dinou/deno/main.js",
|
|
99
|
-
"build:deno:compile:linux_arm": "npm run build:deno:compile:linux_arm:esbuild",
|
|
100
|
-
"build:deno:compile:linux_arm:esbuild": "npm run build:deno:esbuild && deno compile --target aarch64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux-arm .dinou/deno/main.js",
|
|
101
|
-
"build:deno:compile:linux_arm:rollup": "npm run build:deno:rollup && deno compile --target aarch64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux-arm .dinou/deno/main.js",
|
|
102
|
-
"build:deno:compile:linux_arm:webpack": "npm run build:deno:webpack && deno compile --target aarch64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux-arm .dinou/deno/main.js",
|
|
103
|
-
"build:deno:compile:mac": "npm run build:deno:compile:mac:esbuild",
|
|
104
|
-
"build:deno:compile:mac:esbuild": "npm run build:deno:esbuild && deno compile --target aarch64-apple-darwin --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-mac .dinou/deno/main.js",
|
|
105
|
-
"build:deno:compile:mac:rollup": "npm run build:deno:rollup && deno compile --target aarch64-apple-darwin --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-mac .dinou/deno/main.js",
|
|
106
|
-
"build:deno:compile:mac:webpack": "npm run build:deno:webpack && deno compile --target aarch64-apple-darwin --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-mac .dinou/deno/main.js",
|
|
107
|
-
"build:deno:compile:win": "npm run build:deno:compile:win:esbuild",
|
|
108
|
-
"build:deno:compile:win:esbuild": "npm run build:deno:esbuild && deno compile --target x86_64-pc-windows-msvc --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-win .dinou/deno/main.js",
|
|
109
|
-
"build:deno:compile:win:rollup": "npm run build:deno:rollup && deno compile --target x86_64-pc-windows-msvc --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-win .dinou/deno/main.js",
|
|
110
|
-
"build:deno:compile:win:webpack": "npm run build:deno:webpack && deno compile --target x86_64-pc-windows-msvc --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-win .dinou/deno/main.js",
|
|
111
|
-
"start:deno": "deno run --unstable-kv --allow-net --allow-read --allow-write --allow-env --allow-sys dinou/adapters/deno.js",
|
|
112
|
-
"build:bun": "npm run build:client:esbuild && node ./dinou/bun/build.js",
|
|
113
|
-
"build:bun:esbuild": "npm run build:bun",
|
|
114
|
-
"build:bun:rollup": "npm run build:client:rollup && node ./dinou/bun/build.js",
|
|
115
|
-
"build:bun:webpack": "npm run build:client:webpack && cross-env DINOU_BUILD_TOOL=webpack node ./dinou/bun/build.js",
|
|
116
|
-
"build:bun:compile": "npm run build:bun:compile:esbuild",
|
|
117
|
-
"build:bun:compile:esbuild": "npm run build:bun:esbuild && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
118
|
-
"build:bun:compile:rollup": "npm run build:bun:rollup && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
119
|
-
"build:bun:compile:webpack": "npm run build:bun:webpack && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
120
|
-
"build:bun:compile:linux": "npm run build:bun:compile:linux:esbuild",
|
|
121
|
-
"build:bun:compile:linux:esbuild": "npm run build:bun:esbuild && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
122
|
-
"build:bun:compile:linux:rollup": "npm run build:bun:rollup && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
123
|
-
"build:bun:compile:linux:webpack": "npm run build:bun:webpack && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
124
|
-
"build:bun:compile:linux_arm": "npm run build:bun:compile:linux_arm:esbuild",
|
|
125
|
-
"build:bun:compile:linux_arm:esbuild": "npm run build:bun:esbuild && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
126
|
-
"build:bun:compile:linux_arm:rollup": "npm run build:bun:rollup && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
127
|
-
"build:bun:compile:linux_arm:webpack": "npm run build:bun:webpack && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
128
|
-
"build:bun:compile:mac": "npm run build:bun:compile:mac:esbuild",
|
|
129
|
-
"build:bun:compile:mac:esbuild": "npm run build:bun:esbuild && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
130
|
-
"build:bun:compile:mac:rollup": "npm run build:bun:rollup && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
131
|
-
"build:bun:compile:mac:webpack": "npm run build:bun:webpack && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
132
|
-
"build:bun:compile:win": "npm run build:bun:compile:win:esbuild",
|
|
133
|
-
"build:bun:compile:win:esbuild": "npm run build:bun:esbuild && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
134
|
-
"build:bun:compile:win:rollup": "npm run build:bun:rollup && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
135
|
-
"build:bun:compile:win:webpack": "npm run build:bun:webpack && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
136
|
-
"build:bun:pure": "npm run build:bun:pure:esbuild",
|
|
137
|
-
"build:bun:pure:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/bun/build.js",
|
|
138
|
-
"build:bun:pure:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/bun/build.js",
|
|
139
|
-
"build:bun:pure:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/bun/build.js",
|
|
140
|
-
"build:bun:pure:compile": "npm run build:bun:pure:compile:esbuild",
|
|
141
|
-
"build:bun:pure:compile:esbuild": "npm run build:bun:pure:esbuild && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
142
|
-
"build:bun:pure:compile:rollup": "npm run build:bun:pure:rollup && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
143
|
-
"build:bun:pure:compile:webpack": "npm run build:bun:pure:webpack && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
144
|
-
"build:bun:pure:compile:linux": "npm run build:bun:pure:compile:linux:esbuild",
|
|
145
|
-
"build:bun:pure:compile:linux:esbuild": "npm run build:bun:pure:esbuild && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
146
|
-
"build:bun:pure:compile:linux:rollup": "npm run build:bun:pure:rollup && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
147
|
-
"build:bun:pure:compile:linux:webpack": "npm run build:bun:pure:webpack && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
148
|
-
"build:bun:pure:compile:linux_arm": "npm run build:bun:pure:compile:linux_arm:esbuild",
|
|
149
|
-
"build:bun:pure:compile:linux_arm:esbuild": "npm run build:bun:pure:esbuild && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
150
|
-
"build:bun:pure:compile:linux_arm:rollup": "npm run build:bun:pure:rollup && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
151
|
-
"build:bun:pure:compile:linux_arm:webpack": "npm run build:bun:pure:webpack && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
152
|
-
"build:bun:pure:compile:mac": "npm run build:bun:pure:compile:mac:esbuild",
|
|
153
|
-
"build:bun:pure:compile:mac:esbuild": "npm run build:bun:pure:esbuild && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
154
|
-
"build:bun:pure:compile:mac:rollup": "npm run build:bun:pure:rollup && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
155
|
-
"build:bun:pure:compile:mac:webpack": "npm run build:bun:pure:webpack && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
156
|
-
"build:bun:pure:compile:win": "npm run build:bun:pure:compile:win:esbuild",
|
|
157
|
-
"build:bun:pure:compile:win:esbuild": "npm run build:bun:pure:esbuild && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
158
|
-
"build:bun:pure:compile:win:rollup": "npm run build:bun:pure:rollup && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
159
|
-
"build:bun:pure:compile:win:webpack": "npm run build:bun:pure:webpack && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
160
|
-
"start:bun": "cross-env NODE_ENV=production bun dinou/adapters/bun.js",
|
|
161
|
-
"start:bun:esbuild": "npm run start:bun",
|
|
162
|
-
"start:bun:rollup": "npm run start:bun",
|
|
163
|
-
"start:bun:webpack": "cross-env NODE_ENV=production DINOU_BUILD_TOOL=webpack bun dinou/adapters/bun.js",
|
|
164
|
-
"export-static": "npm run export-static:esbuild",
|
|
165
|
-
"export-static:esbuild": "npm run build:client:esbuild && node ./dinou/core/export-static.js",
|
|
166
|
-
"export-static:rollup": "npm run build:client:rollup && node ./dinou/core/export-static.js",
|
|
167
|
-
"export-static:webpack": "npm run build:client:webpack && node ./dinou/core/export-static.js",
|
|
168
|
-
"build:client:esbuild": "cross-env NODE_ENV=production node dinou/esbuild/build.js",
|
|
169
|
-
"build:client:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js",
|
|
170
|
-
"build:client:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js",
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
Object.assign(pkg.scripts, ejectedScripts);
|
|
174
|
-
|
|
175
|
-
delete pkg.scripts.eject;
|
|
176
|
-
|
|
177
|
-
if (!pkg.dependencies) {
|
|
178
|
-
pkg.dependencies = {};
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
pkg.dependencies["dinou"] = "file:./dinou";
|
|
182
|
-
|
|
183
|
-
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
|
|
184
|
-
|
|
185
|
-
function detectPackageManager() {
|
|
186
|
-
const userAgent = process.env.npm_config_user_agent;
|
|
187
|
-
|
|
188
|
-
if (userAgent) {
|
|
189
|
-
if (userAgent.startsWith("yarn")) return "yarn";
|
|
190
|
-
if (userAgent.startsWith("pnpm")) return "pnpm";
|
|
191
|
-
if (userAgent.startsWith("bun")) return "bun";
|
|
192
|
-
if (userAgent.startsWith("npm")) return "npm";
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
if (fs.existsSync(path.join(projectRoot, "yarn.lock"))) return "yarn";
|
|
196
|
-
if (fs.existsSync(path.join(projectRoot, "pnpm-lock.yaml"))) return "pnpm";
|
|
197
|
-
if (fs.existsSync(path.join(projectRoot, "bun.lockb")) || fs.existsSync(path.join(projectRoot, "bun.lock"))) return "bun";
|
|
198
|
-
if (fs.existsSync(path.join(projectRoot, "package-lock.json"))) return "npm";
|
|
199
|
-
|
|
200
|
-
return "npm";
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
const pm = detectPackageManager();
|
|
204
|
-
console.log(`📦 Package manager detected: ${pm}`);
|
|
205
|
-
|
|
206
|
-
const installCommand = `${pm} install`;
|
|
207
|
-
|
|
208
|
-
console.log(`🔄 Executing '${installCommand}' to link dependencies...`);
|
|
209
|
-
|
|
210
|
-
try {
|
|
211
|
-
execSync(installCommand, { stdio: "inherit", cwd: projectRoot });
|
|
212
|
-
console.log("✅ Dependencies updated successfully");
|
|
213
|
-
} catch (error) {
|
|
214
|
-
console.error(
|
|
215
|
-
`❌ Error on executing ${installCommand}. Please, install dependencies manually`,
|
|
216
|
-
);
|
|
217
|
-
}
|
|
218
|
-
|
|
219
|
-
console.log(
|
|
220
|
-
"🎉 Eject completed successfully! Dinou is now running from local source.",
|
|
221
|
-
);
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
export default eject;
|
|
1
|
+
import fs from "node:fs";
|
|
2
|
+
import path from "node:path";
|
|
3
|
+
import { execSync } from "node:child_process";
|
|
4
|
+
import { fileURLToPath } from "node:url";
|
|
5
|
+
|
|
6
|
+
const __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
7
|
+
const dinouPath = path.resolve(__dirname, "dinou");
|
|
8
|
+
const projectRoot = process.cwd();
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export function eject() {
|
|
12
|
+
console.log("🚀 Starting Dinou ejecting process...");
|
|
13
|
+
|
|
14
|
+
fs.cpSync(dinouPath, path.join(projectRoot, "dinou"), {
|
|
15
|
+
recursive: true,
|
|
16
|
+
});
|
|
17
|
+
console.log("✅ Files copied to ./dinou");
|
|
18
|
+
|
|
19
|
+
const pkgPath = path.join(projectRoot, "package.json");
|
|
20
|
+
const pkg = JSON.parse(fs.readFileSync(pkgPath, "utf8"));
|
|
21
|
+
|
|
22
|
+
pkg.scripts = pkg.scripts || {};
|
|
23
|
+
|
|
24
|
+
const ejectedScripts = {
|
|
25
|
+
dev: "npm run dev:esbuild",
|
|
26
|
+
build: "npm run build:node",
|
|
27
|
+
start: "npm run start:node",
|
|
28
|
+
"dev:esbuild": "cross-env DINOU_BUILD_TOOL=esbuild node dinou/node/dev.js",
|
|
29
|
+
"dev:rollup": "cross-env DINOU_BUILD_TOOL=rollup node dinou/node/dev.js",
|
|
30
|
+
"dev:webpack": "cross-env DINOU_BUILD_TOOL=webpack node dinou/node/dev.js",
|
|
31
|
+
"build:node": "npm run build:client:esbuild && node ./dinou/node/build.js",
|
|
32
|
+
"build:node:esbuild": "npm run build:node",
|
|
33
|
+
"build:node:rollup": "npm run build:client:rollup && node ./dinou/node/build.js",
|
|
34
|
+
"build:node:webpack": "npm run build:client:webpack && cross-env DINOU_BUILD_TOOL=webpack node ./dinou/node/build.js",
|
|
35
|
+
"build:node:compile": "npm run build:node:compile:esbuild",
|
|
36
|
+
"build:node:compile:esbuild": "npm run build:node:esbuild && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
37
|
+
"build:node:compile:rollup": "npm run build:node:rollup && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
38
|
+
"build:node:compile:webpack": "npm run build:node:webpack && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
39
|
+
"build:node:compile:linux": "npm run build:node:compile:linux:esbuild",
|
|
40
|
+
"build:node:compile:linux:esbuild": "npm run build:node:esbuild && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
41
|
+
"build:node:compile:linux:rollup": "npm run build:node:rollup && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
42
|
+
"build:node:compile:linux:webpack": "npm run build:node:webpack && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
43
|
+
"build:node:compile:linux_arm": "npm run build:node:compile:linux_arm:esbuild",
|
|
44
|
+
"build:node:compile:linux_arm:esbuild": "npm run build:node:esbuild && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
45
|
+
"build:node:compile:linux_arm:rollup": "npm run build:node:rollup && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
46
|
+
"build:node:compile:linux_arm:webpack": "npm run build:node:webpack && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
47
|
+
"build:node:compile:mac": "npm run build:node:compile:mac:esbuild",
|
|
48
|
+
"build:node:compile:mac:esbuild": "npm run build:node:esbuild && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
49
|
+
"build:node:compile:mac:rollup": "npm run build:node:rollup && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
50
|
+
"build:node:compile:mac:webpack": "npm run build:node:webpack && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
51
|
+
"build:node:compile:win": "npm run build:node:compile:win:esbuild",
|
|
52
|
+
"build:node:compile:win:esbuild": "npm run build:node:esbuild && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
53
|
+
"build:node:compile:win:rollup": "npm run build:node:rollup && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
54
|
+
"build:node:compile:win:webpack": "npm run build:node:webpack && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
55
|
+
"build:node:pure": "npm run build:node:pure:esbuild",
|
|
56
|
+
"build:node:pure:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js",
|
|
57
|
+
"build:node:pure:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js",
|
|
58
|
+
"build:node:pure:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js",
|
|
59
|
+
"build:node:pure:compile": "npm run build:node:pure:compile:esbuild",
|
|
60
|
+
"build:node:pure:compile:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
61
|
+
"build:node:pure:compile:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
62
|
+
"build:node:pure:compile:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js && bun build --compile .dinou/node/server.mjs --outfile dist/server",
|
|
63
|
+
"build:node:pure:compile:linux": "npm run build:node:pure:compile:linux:esbuild",
|
|
64
|
+
"build:node:pure:compile:linux:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
65
|
+
"build:node:pure:compile:linux:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
66
|
+
"build:node:pure:compile:linux:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js && bun build --compile --target=bun-linux-x64 .dinou/node/server.mjs --outfile dist/server-linux",
|
|
67
|
+
"build:node:pure:compile:linux_arm": "npm run build:node:pure:compile:linux_arm:esbuild",
|
|
68
|
+
"build:node:pure:compile:linux_arm:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
69
|
+
"build:node:pure:compile:linux_arm:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
70
|
+
"build:node:pure:compile:linux_arm:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js && bun build --compile --target=bun-linux-arm64 .dinou/node/server.mjs --outfile dist/server-linux-arm",
|
|
71
|
+
"build:node:pure:compile:mac": "npm run build:node:pure:compile:mac:esbuild",
|
|
72
|
+
"build:node:pure:compile:mac:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
73
|
+
"build:node:pure:compile:mac:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
74
|
+
"build:node:pure:compile:mac:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js && bun build --compile --target=bun-darwin-arm64 .dinou/node/server.mjs --outfile dist/server-mac",
|
|
75
|
+
"build:node:pure:compile:win": "npm run build:node:pure:compile:win:esbuild",
|
|
76
|
+
"build:node:pure:compile:win:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/node/build.js && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
77
|
+
"build:node:pure:compile:win:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/node/build.js && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
78
|
+
"build:node:pure:compile:win:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/node/build.js && bun build --compile --target=bun-windows-x64 .dinou/node/server.mjs --outfile dist/server-win",
|
|
79
|
+
"start:node": "cross-env NODE_ENV=production node dinou/adapters/node.js",
|
|
80
|
+
"start:node:esbuild": "npm run start:node",
|
|
81
|
+
"start:node:rollup": "npm run start:node",
|
|
82
|
+
"start:node:webpack": "cross-env NODE_ENV=production DINOU_BUILD_TOOL=webpack node dinou/adapters/node.js",
|
|
83
|
+
"build:cloudflare": "npm run build:client:esbuild && node ./dinou/cloudflare/build.js",
|
|
84
|
+
"build:cloudflare:esbuild": "npm run build:cloudflare",
|
|
85
|
+
"build:cloudflare:rollup": "npm run build:client:rollup && node ./dinou/cloudflare/build.js",
|
|
86
|
+
"build:cloudflare:webpack": "npm run build:client:webpack && cross-env DINOU_BUILD_TOOL=webpack node ./dinou/cloudflare/build.js",
|
|
87
|
+
"build:deno": "npm run build:client:esbuild && node ./dinou/deno/build.js && deno run --unstable-kv --allow-net --allow-read --allow-write --allow-env dinou/deno/seed-kv.js",
|
|
88
|
+
"build:deno:esbuild": "npm run build:deno",
|
|
89
|
+
"build:deno:rollup": "npm run build:client:rollup && node ./dinou/deno/build.js && deno run --unstable-kv --allow-net --allow-read --allow-write --allow-env dinou/deno/seed-kv.js",
|
|
90
|
+
"build:deno:webpack": "npm run build:client:webpack && cross-env DINOU_BUILD_TOOL=webpack node ./dinou/deno/build.js && deno run --unstable-kv --allow-net --allow-read --allow-write --allow-env dinou/deno/seed-kv.js",
|
|
91
|
+
"build:deno:compile": "npm run build:deno:compile:esbuild",
|
|
92
|
+
"build:deno:compile:esbuild": "npm run build:deno:esbuild && deno compile --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server .dinou/deno/main.js",
|
|
93
|
+
"build:deno:compile:rollup": "npm run build:deno:rollup && deno compile --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server .dinou/deno/main.js",
|
|
94
|
+
"build:deno:compile:webpack": "npm run build:deno:webpack && deno compile --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server .dinou/deno/main.js",
|
|
95
|
+
"build:deno:compile:linux": "npm run build:deno:compile:linux:esbuild",
|
|
96
|
+
"build:deno:compile:linux:esbuild": "npm run build:deno:esbuild && deno compile --target x86_64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux .dinou/deno/main.js",
|
|
97
|
+
"build:deno:compile:linux:rollup": "npm run build:deno:rollup && deno compile --target x86_64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux .dinou/deno/main.js",
|
|
98
|
+
"build:deno:compile:linux:webpack": "npm run build:deno:webpack && deno compile --target x86_64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux .dinou/deno/main.js",
|
|
99
|
+
"build:deno:compile:linux_arm": "npm run build:deno:compile:linux_arm:esbuild",
|
|
100
|
+
"build:deno:compile:linux_arm:esbuild": "npm run build:deno:esbuild && deno compile --target aarch64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux-arm .dinou/deno/main.js",
|
|
101
|
+
"build:deno:compile:linux_arm:rollup": "npm run build:deno:rollup && deno compile --target aarch64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux-arm .dinou/deno/main.js",
|
|
102
|
+
"build:deno:compile:linux_arm:webpack": "npm run build:deno:webpack && deno compile --target aarch64-unknown-linux-gnu --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-linux-arm .dinou/deno/main.js",
|
|
103
|
+
"build:deno:compile:mac": "npm run build:deno:compile:mac:esbuild",
|
|
104
|
+
"build:deno:compile:mac:esbuild": "npm run build:deno:esbuild && deno compile --target aarch64-apple-darwin --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-mac .dinou/deno/main.js",
|
|
105
|
+
"build:deno:compile:mac:rollup": "npm run build:deno:rollup && deno compile --target aarch64-apple-darwin --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-mac .dinou/deno/main.js",
|
|
106
|
+
"build:deno:compile:mac:webpack": "npm run build:deno:webpack && deno compile --target aarch64-apple-darwin --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-mac .dinou/deno/main.js",
|
|
107
|
+
"build:deno:compile:win": "npm run build:deno:compile:win:esbuild",
|
|
108
|
+
"build:deno:compile:win:esbuild": "npm run build:deno:esbuild && deno compile --target x86_64-pc-windows-msvc --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-win .dinou/deno/main.js",
|
|
109
|
+
"build:deno:compile:win:rollup": "npm run build:deno:rollup && deno compile --target x86_64-pc-windows-msvc --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-win .dinou/deno/main.js",
|
|
110
|
+
"build:deno:compile:win:webpack": "npm run build:deno:webpack && deno compile --target x86_64-pc-windows-msvc --no-check --no-config --allow-net --allow-read --allow-write --allow-env --allow-sys --output dist/deno-server-win .dinou/deno/main.js",
|
|
111
|
+
"start:deno": "deno run --unstable-kv --allow-net --allow-read --allow-write --allow-env --allow-sys dinou/adapters/deno.js",
|
|
112
|
+
"build:bun": "npm run build:client:esbuild && node ./dinou/bun/build.js",
|
|
113
|
+
"build:bun:esbuild": "npm run build:bun",
|
|
114
|
+
"build:bun:rollup": "npm run build:client:rollup && node ./dinou/bun/build.js",
|
|
115
|
+
"build:bun:webpack": "npm run build:client:webpack && cross-env DINOU_BUILD_TOOL=webpack node ./dinou/bun/build.js",
|
|
116
|
+
"build:bun:compile": "npm run build:bun:compile:esbuild",
|
|
117
|
+
"build:bun:compile:esbuild": "npm run build:bun:esbuild && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
118
|
+
"build:bun:compile:rollup": "npm run build:bun:rollup && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
119
|
+
"build:bun:compile:webpack": "npm run build:bun:webpack && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
120
|
+
"build:bun:compile:linux": "npm run build:bun:compile:linux:esbuild",
|
|
121
|
+
"build:bun:compile:linux:esbuild": "npm run build:bun:esbuild && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
122
|
+
"build:bun:compile:linux:rollup": "npm run build:bun:rollup && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
123
|
+
"build:bun:compile:linux:webpack": "npm run build:bun:webpack && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
124
|
+
"build:bun:compile:linux_arm": "npm run build:bun:compile:linux_arm:esbuild",
|
|
125
|
+
"build:bun:compile:linux_arm:esbuild": "npm run build:bun:esbuild && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
126
|
+
"build:bun:compile:linux_arm:rollup": "npm run build:bun:rollup && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
127
|
+
"build:bun:compile:linux_arm:webpack": "npm run build:bun:webpack && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
128
|
+
"build:bun:compile:mac": "npm run build:bun:compile:mac:esbuild",
|
|
129
|
+
"build:bun:compile:mac:esbuild": "npm run build:bun:esbuild && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
130
|
+
"build:bun:compile:mac:rollup": "npm run build:bun:rollup && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
131
|
+
"build:bun:compile:mac:webpack": "npm run build:bun:webpack && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
132
|
+
"build:bun:compile:win": "npm run build:bun:compile:win:esbuild",
|
|
133
|
+
"build:bun:compile:win:esbuild": "npm run build:bun:esbuild && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
134
|
+
"build:bun:compile:win:rollup": "npm run build:bun:rollup && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
135
|
+
"build:bun:compile:win:webpack": "npm run build:bun:webpack && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
136
|
+
"build:bun:pure": "npm run build:bun:pure:esbuild",
|
|
137
|
+
"build:bun:pure:esbuild": "cross-env NODE_ENV=production bun dinou/esbuild/build.js && bun ./dinou/bun/build.js",
|
|
138
|
+
"build:bun:pure:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js && bun ./dinou/bun/build.js",
|
|
139
|
+
"build:bun:pure:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js && cross-env DINOU_BUILD_TOOL=webpack bun ./dinou/bun/build.js",
|
|
140
|
+
"build:bun:pure:compile": "npm run build:bun:pure:compile:esbuild",
|
|
141
|
+
"build:bun:pure:compile:esbuild": "npm run build:bun:pure:esbuild && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
142
|
+
"build:bun:pure:compile:rollup": "npm run build:bun:pure:rollup && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
143
|
+
"build:bun:pure:compile:webpack": "npm run build:bun:pure:webpack && bun build --compile .dinou/bun/server.js --outfile dist/server",
|
|
144
|
+
"build:bun:pure:compile:linux": "npm run build:bun:pure:compile:linux:esbuild",
|
|
145
|
+
"build:bun:pure:compile:linux:esbuild": "npm run build:bun:pure:esbuild && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
146
|
+
"build:bun:pure:compile:linux:rollup": "npm run build:bun:pure:rollup && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
147
|
+
"build:bun:pure:compile:linux:webpack": "npm run build:bun:pure:webpack && bun build --compile --target=bun-linux-x64 .dinou/bun/server.js --outfile dist/server-linux",
|
|
148
|
+
"build:bun:pure:compile:linux_arm": "npm run build:bun:pure:compile:linux_arm:esbuild",
|
|
149
|
+
"build:bun:pure:compile:linux_arm:esbuild": "npm run build:bun:pure:esbuild && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
150
|
+
"build:bun:pure:compile:linux_arm:rollup": "npm run build:bun:pure:rollup && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
151
|
+
"build:bun:pure:compile:linux_arm:webpack": "npm run build:bun:pure:webpack && bun build --compile --target=bun-linux-arm64 .dinou/bun/server.js --outfile dist/server-linux-arm",
|
|
152
|
+
"build:bun:pure:compile:mac": "npm run build:bun:pure:compile:mac:esbuild",
|
|
153
|
+
"build:bun:pure:compile:mac:esbuild": "npm run build:bun:pure:esbuild && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
154
|
+
"build:bun:pure:compile:mac:rollup": "npm run build:bun:pure:rollup && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
155
|
+
"build:bun:pure:compile:mac:webpack": "npm run build:bun:pure:webpack && bun build --compile --target=bun-darwin-arm64 .dinou/bun/server.js --outfile dist/server-mac",
|
|
156
|
+
"build:bun:pure:compile:win": "npm run build:bun:pure:compile:win:esbuild",
|
|
157
|
+
"build:bun:pure:compile:win:esbuild": "npm run build:bun:pure:esbuild && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
158
|
+
"build:bun:pure:compile:win:rollup": "npm run build:bun:pure:rollup && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
159
|
+
"build:bun:pure:compile:win:webpack": "npm run build:bun:pure:webpack && bun build --compile --target=bun-windows-x64 .dinou/bun/server.js --outfile dist/server-win",
|
|
160
|
+
"start:bun": "cross-env NODE_ENV=production bun dinou/adapters/bun.js",
|
|
161
|
+
"start:bun:esbuild": "npm run start:bun",
|
|
162
|
+
"start:bun:rollup": "npm run start:bun",
|
|
163
|
+
"start:bun:webpack": "cross-env NODE_ENV=production DINOU_BUILD_TOOL=webpack bun dinou/adapters/bun.js",
|
|
164
|
+
"export-static": "npm run export-static:esbuild",
|
|
165
|
+
"export-static:esbuild": "npm run build:client:esbuild && node ./dinou/core/export-static.js",
|
|
166
|
+
"export-static:rollup": "npm run build:client:rollup && node ./dinou/core/export-static.js",
|
|
167
|
+
"export-static:webpack": "npm run build:client:webpack && node ./dinou/core/export-static.js",
|
|
168
|
+
"build:client:esbuild": "cross-env NODE_ENV=production node dinou/esbuild/build.js",
|
|
169
|
+
"build:client:rollup": "cross-env NODE_ENV=production rollup -c ./dinou/rollup/rollup.config.js",
|
|
170
|
+
"build:client:webpack": "cross-env NODE_ENV=production webpack --config dinou/webpack/webpack.config.js",
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
Object.assign(pkg.scripts, ejectedScripts);
|
|
174
|
+
|
|
175
|
+
delete pkg.scripts.eject;
|
|
176
|
+
|
|
177
|
+
if (!pkg.dependencies) {
|
|
178
|
+
pkg.dependencies = {};
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
pkg.dependencies["dinou"] = "file:./dinou";
|
|
182
|
+
|
|
183
|
+
fs.writeFileSync(pkgPath, JSON.stringify(pkg, null, 2) + "\n");
|
|
184
|
+
|
|
185
|
+
function detectPackageManager() {
|
|
186
|
+
const userAgent = process.env.npm_config_user_agent;
|
|
187
|
+
|
|
188
|
+
if (userAgent) {
|
|
189
|
+
if (userAgent.startsWith("yarn")) return "yarn";
|
|
190
|
+
if (userAgent.startsWith("pnpm")) return "pnpm";
|
|
191
|
+
if (userAgent.startsWith("bun")) return "bun";
|
|
192
|
+
if (userAgent.startsWith("npm")) return "npm";
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (fs.existsSync(path.join(projectRoot, "yarn.lock"))) return "yarn";
|
|
196
|
+
if (fs.existsSync(path.join(projectRoot, "pnpm-lock.yaml"))) return "pnpm";
|
|
197
|
+
if (fs.existsSync(path.join(projectRoot, "bun.lockb")) || fs.existsSync(path.join(projectRoot, "bun.lock"))) return "bun";
|
|
198
|
+
if (fs.existsSync(path.join(projectRoot, "package-lock.json"))) return "npm";
|
|
199
|
+
|
|
200
|
+
return "npm";
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
const pm = detectPackageManager();
|
|
204
|
+
console.log(`📦 Package manager detected: ${pm}`);
|
|
205
|
+
|
|
206
|
+
const installCommand = `${pm} install`;
|
|
207
|
+
|
|
208
|
+
console.log(`🔄 Executing '${installCommand}' to link dependencies...`);
|
|
209
|
+
|
|
210
|
+
try {
|
|
211
|
+
execSync(installCommand, { stdio: "inherit", cwd: projectRoot });
|
|
212
|
+
console.log("✅ Dependencies updated successfully");
|
|
213
|
+
} catch (error) {
|
|
214
|
+
console.error(
|
|
215
|
+
`❌ Error on executing ${installCommand}. Please, install dependencies manually`,
|
|
216
|
+
);
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
console.log(
|
|
220
|
+
"🎉 Eject completed successfully! Dinou is now running from local source.",
|
|
221
|
+
);
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
export default eject;
|
package/package.json
CHANGED
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "dinou",
|
|
3
|
-
"version": "8.0.
|
|
4
|
-
"description": "Full-stack React 19 framework with native RSC, Server Functions, progressive streaming, and zero vendor lock-in.",
|
|
5
|
-
"type": "module",
|
|
6
|
-
"main": "./dinou/index.js",
|
|
7
|
-
"bin": {
|
|
8
|
-
"dinou": "./cli.js"
|
|
9
|
-
},
|
|
10
|
-
"exports": {
|
|
11
|
-
".": {
|
|
12
|
-
"types": "./dinou/index.d.ts",
|
|
13
|
-
"import": "./dinou/index.js",
|
|
14
|
-
"default": "./dinou/index.js"
|
|
15
|
-
},
|
|
16
|
-
"./env": {
|
|
17
|
-
"types": "./dinou/env.d.ts"
|
|
18
|
-
},
|
|
19
|
-
"./server": {
|
|
20
|
-
"types": "./dinou/server.d.ts",
|
|
21
|
-
"import": "./dinou/server.js",
|
|
22
|
-
"default": "./dinou/server.js"
|
|
23
|
-
},
|
|
24
|
-
"./config": {
|
|
25
|
-
"types": "./dinou/index.d.ts",
|
|
26
|
-
"import": "./dinou/core/config.js",
|
|
27
|
-
"default": "./dinou/core/config.js"
|
|
28
|
-
},
|
|
29
|
-
"./adapters/node": "./dinou/adapters/node.js",
|
|
30
|
-
"./adapters/bun": "./dinou/adapters/bun.js",
|
|
31
|
-
"./adapters/deno": "./dinou/adapters/deno.js",
|
|
32
|
-
"./adapters/cloudflare": "./dinou/adapters/cloudflare.js",
|
|
33
|
-
"./adapters/netlify": "./dinou/adapters/netlify.js"
|
|
34
|
-
},
|
|
35
|
-
"types": "./dinou/index.d.ts",
|
|
36
|
-
"scripts": {
|
|
37
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
38
|
-
},
|
|
39
|
-
"keywords": [
|
|
40
|
-
"react",
|
|
41
|
-
"react-19",
|
|
42
|
-
"react-server-components",
|
|
43
|
-
"rsc",
|
|
44
|
-
"react-server-functions",
|
|
45
|
-
"framework",
|
|
46
|
-
"react-framework",
|
|
47
|
-
"esbuild",
|
|
48
|
-
"rollup",
|
|
49
|
-
"webpack",
|
|
50
|
-
"ssr",
|
|
51
|
-
"streaming",
|
|
52
|
-
"dinou"
|
|
53
|
-
],
|
|
54
|
-
"author": "Roger Gomez Castells (https://github.com/roggc)",
|
|
55
|
-
"license": "MIT",
|
|
56
|
-
"repository": {
|
|
57
|
-
"type": "git",
|
|
58
|
-
"url": "https://github.com/roggc/dinou.git"
|
|
59
|
-
},
|
|
60
|
-
"dependencies": {
|
|
61
|
-
"@babel/core": "^7.27.4",
|
|
62
|
-
"@babel/parser": "^7.28.3",
|
|
63
|
-
"@babel/plugin-syntax-import-meta": "^7.10.4",
|
|
64
|
-
"@babel/preset-react": "^7.27.1",
|
|
65
|
-
"@babel/preset-typescript": "^7.27.1",
|
|
66
|
-
"@babel/traverse": "^7.28.3",
|
|
67
|
-
"@esbuild-plugins/tsconfig-paths": "^0.1.2",
|
|
68
|
-
"@roggc/react-server-dom-esm": "^19.3.0",
|
|
69
|
-
"@rollup/plugin-babel": "^6.0.4",
|
|
70
|
-
"@rollup/plugin-commonjs": "^28.0.6",
|
|
71
|
-
"@rollup/plugin-json": "^6.1.0",
|
|
72
|
-
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
73
|
-
"@rollup/plugin-replace": "^6.0.2",
|
|
74
|
-
"@swc/core": "^1.15.10",
|
|
75
|
-
"@tailwindcss/postcss": "^4.1.10",
|
|
76
|
-
"autoprefixer": "^10.4.21",
|
|
77
|
-
"babel-loader": "^10.0.0",
|
|
78
|
-
"babel-plugin-react-compiler": "^1.0.0",
|
|
79
|
-
"chokidar": "^4.0.3",
|
|
80
|
-
"commander": "^14.0.0",
|
|
81
|
-
"copy-webpack-plugin": "^14.0.0",
|
|
82
|
-
"cross-env": "^7.0.3",
|
|
83
|
-
"css-loader": "^7.1.2",
|
|
84
|
-
"dotenv": "^16.5.0",
|
|
85
|
-
"esbuild": "^0.27.0",
|
|
86
|
-
"esbuild-copy-static-files": "^0.1.0",
|
|
87
|
-
"generic-names": "^4.0.0",
|
|
88
|
-
"mini-css-extract-plugin": "^2.9.4",
|
|
89
|
-
"postcss": "^8.5.5",
|
|
90
|
-
"postcss-import": "^16.1.1",
|
|
91
|
-
"postcss-loader": "^8.2.0",
|
|
92
|
-
"postcss-modules": "^6.0.1",
|
|
93
|
-
"react-refresh": "^0.17.0",
|
|
94
|
-
"react-server-dom-webpack": "^19.3.0",
|
|
95
|
-
"rollup": "^4.46.2",
|
|
96
|
-
"rollup-plugin-copy": "^3.5.0",
|
|
97
|
-
"rollup-plugin-delete": "^3.0.1",
|
|
98
|
-
"rollup-plugin-postcss": "^4.0.2",
|
|
99
|
-
"rollup-plugin-tsconfig-paths": "^1.5.2",
|
|
100
|
-
"tailwindcss": "^4.1.10",
|
|
101
|
-
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
|
102
|
-
"webpack": "^5.103.0",
|
|
103
|
-
"webpack-cli": "^6.0.1",
|
|
104
|
-
"webpack-dev-server": "^5.2.2",
|
|
105
|
-
"ws": "^8.18.3"
|
|
106
|
-
},
|
|
107
|
-
"peerDependencies": {
|
|
108
|
-
"react": ">=19.3.0",
|
|
109
|
-
"react-dom": ">=19.3.0"
|
|
110
|
-
}
|
|
111
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "dinou",
|
|
3
|
+
"version": "8.0.2",
|
|
4
|
+
"description": "Full-stack React 19 framework with native RSC, Server Functions, progressive streaming, and zero vendor lock-in.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dinou/index.js",
|
|
7
|
+
"bin": {
|
|
8
|
+
"dinou": "./cli.js"
|
|
9
|
+
},
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./dinou/index.d.ts",
|
|
13
|
+
"import": "./dinou/index.js",
|
|
14
|
+
"default": "./dinou/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./env": {
|
|
17
|
+
"types": "./dinou/env.d.ts"
|
|
18
|
+
},
|
|
19
|
+
"./server": {
|
|
20
|
+
"types": "./dinou/server.d.ts",
|
|
21
|
+
"import": "./dinou/server.js",
|
|
22
|
+
"default": "./dinou/server.js"
|
|
23
|
+
},
|
|
24
|
+
"./config": {
|
|
25
|
+
"types": "./dinou/index.d.ts",
|
|
26
|
+
"import": "./dinou/core/config.js",
|
|
27
|
+
"default": "./dinou/core/config.js"
|
|
28
|
+
},
|
|
29
|
+
"./adapters/node": "./dinou/adapters/node.js",
|
|
30
|
+
"./adapters/bun": "./dinou/adapters/bun.js",
|
|
31
|
+
"./adapters/deno": "./dinou/adapters/deno.js",
|
|
32
|
+
"./adapters/cloudflare": "./dinou/adapters/cloudflare.js",
|
|
33
|
+
"./adapters/netlify": "./dinou/adapters/netlify.js"
|
|
34
|
+
},
|
|
35
|
+
"types": "./dinou/index.d.ts",
|
|
36
|
+
"scripts": {
|
|
37
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
38
|
+
},
|
|
39
|
+
"keywords": [
|
|
40
|
+
"react",
|
|
41
|
+
"react-19",
|
|
42
|
+
"react-server-components",
|
|
43
|
+
"rsc",
|
|
44
|
+
"react-server-functions",
|
|
45
|
+
"framework",
|
|
46
|
+
"react-framework",
|
|
47
|
+
"esbuild",
|
|
48
|
+
"rollup",
|
|
49
|
+
"webpack",
|
|
50
|
+
"ssr",
|
|
51
|
+
"streaming",
|
|
52
|
+
"dinou"
|
|
53
|
+
],
|
|
54
|
+
"author": "Roger Gomez Castells (https://github.com/roggc)",
|
|
55
|
+
"license": "MIT",
|
|
56
|
+
"repository": {
|
|
57
|
+
"type": "git",
|
|
58
|
+
"url": "https://github.com/roggc/dinou.git"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"@babel/core": "^7.27.4",
|
|
62
|
+
"@babel/parser": "^7.28.3",
|
|
63
|
+
"@babel/plugin-syntax-import-meta": "^7.10.4",
|
|
64
|
+
"@babel/preset-react": "^7.27.1",
|
|
65
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
66
|
+
"@babel/traverse": "^7.28.3",
|
|
67
|
+
"@esbuild-plugins/tsconfig-paths": "^0.1.2",
|
|
68
|
+
"@roggc/react-server-dom-esm": "^19.3.0",
|
|
69
|
+
"@rollup/plugin-babel": "^6.0.4",
|
|
70
|
+
"@rollup/plugin-commonjs": "^28.0.6",
|
|
71
|
+
"@rollup/plugin-json": "^6.1.0",
|
|
72
|
+
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
73
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
74
|
+
"@swc/core": "^1.15.10",
|
|
75
|
+
"@tailwindcss/postcss": "^4.1.10",
|
|
76
|
+
"autoprefixer": "^10.4.21",
|
|
77
|
+
"babel-loader": "^10.0.0",
|
|
78
|
+
"babel-plugin-react-compiler": "^1.0.0",
|
|
79
|
+
"chokidar": "^4.0.3",
|
|
80
|
+
"commander": "^14.0.0",
|
|
81
|
+
"copy-webpack-plugin": "^14.0.0",
|
|
82
|
+
"cross-env": "^7.0.3",
|
|
83
|
+
"css-loader": "^7.1.2",
|
|
84
|
+
"dotenv": "^16.5.0",
|
|
85
|
+
"esbuild": "^0.27.0",
|
|
86
|
+
"esbuild-copy-static-files": "^0.1.0",
|
|
87
|
+
"generic-names": "^4.0.0",
|
|
88
|
+
"mini-css-extract-plugin": "^2.9.4",
|
|
89
|
+
"postcss": "^8.5.5",
|
|
90
|
+
"postcss-import": "^16.1.1",
|
|
91
|
+
"postcss-loader": "^8.2.0",
|
|
92
|
+
"postcss-modules": "^6.0.1",
|
|
93
|
+
"react-refresh": "^0.17.0",
|
|
94
|
+
"react-server-dom-webpack": "^19.3.0",
|
|
95
|
+
"rollup": "^4.46.2",
|
|
96
|
+
"rollup-plugin-copy": "^3.5.0",
|
|
97
|
+
"rollup-plugin-delete": "^3.0.1",
|
|
98
|
+
"rollup-plugin-postcss": "^4.0.2",
|
|
99
|
+
"rollup-plugin-tsconfig-paths": "^1.5.2",
|
|
100
|
+
"tailwindcss": "^4.1.10",
|
|
101
|
+
"tsconfig-paths-webpack-plugin": "^4.2.0",
|
|
102
|
+
"webpack": "^5.103.0",
|
|
103
|
+
"webpack-cli": "^6.0.1",
|
|
104
|
+
"webpack-dev-server": "^5.2.2",
|
|
105
|
+
"ws": "^8.18.3"
|
|
106
|
+
},
|
|
107
|
+
"peerDependencies": {
|
|
108
|
+
"react": ">=19.3.0",
|
|
109
|
+
"react-dom": ">=19.3.0"
|
|
110
|
+
}
|
|
111
|
+
}
|