@donotdev/cli 0.0.30 → 0.0.31
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/dependencies-matrix.json +14 -18
- package/dist/bin/commands/build.js +17 -12
- package/dist/bin/commands/bump.js +422 -185
- package/dist/bin/commands/cacheout.js +17 -12
- package/dist/bin/commands/coach.js +17 -12
- package/dist/bin/commands/create-app.js +17 -12
- package/dist/bin/commands/create-project.js +17 -12
- package/dist/bin/commands/db.js +17 -12
- package/dist/bin/commands/deploy.js +17 -12
- package/dist/bin/commands/dev.js +17 -12
- package/dist/bin/commands/doctor.js +17 -12
- package/dist/bin/commands/emu.js +17 -12
- package/dist/bin/commands/format.js +17 -12
- package/dist/bin/commands/get-demo.js +17 -12
- package/dist/bin/commands/make-admin.js +17 -12
- package/dist/bin/commands/preview.js +17 -12
- package/dist/bin/commands/seed.js +17 -12
- package/dist/bin/commands/setup-cicd.js +17 -12
- package/dist/bin/commands/setup.js +17 -12
- package/dist/bin/commands/staging.js +17 -12
- package/dist/bin/commands/sync-secrets.js +17 -12
- package/dist/bin/commands/type-check.js +17 -12
- package/dist/bin/commands/wai.js +17 -12
- package/dist/bin/dndev.js +1 -1
- package/dist/bin/donotdev.js +1 -1
- package/dist/index.js +17 -12
- package/package.json +1 -1
- package/templates/app-next/src/globals.css.example +3 -2
|
@@ -6838,7 +6838,7 @@ import {
|
|
|
6838
6838
|
sep,
|
|
6839
6839
|
extname
|
|
6840
6840
|
} from "node:path";
|
|
6841
|
-
import
|
|
6841
|
+
import "node:url";
|
|
6842
6842
|
function safeExecuteAsync(fn, message) {
|
|
6843
6843
|
return fn().catch((error2) => {
|
|
6844
6844
|
throw new Error(
|
|
@@ -7765,19 +7765,24 @@ var init_PathResolver = __esm({
|
|
|
7765
7765
|
return resolved;
|
|
7766
7766
|
}
|
|
7767
7767
|
/**
|
|
7768
|
-
* Get path to empty
|
|
7769
|
-
* Used by Vite
|
|
7770
|
-
*
|
|
7771
|
-
*
|
|
7768
|
+
* Get absolute path to empty ESM module for optional dependency aliasing.
|
|
7769
|
+
* Used by Vite resolveId — served directly to the browser in dev mode.
|
|
7770
|
+
* Note: resolvePackage uses require.resolve (CJS) which picks the "default"
|
|
7771
|
+
* condition (.cjs), so we derive the ESM path from it.
|
|
7772
7772
|
*/
|
|
7773
|
-
getEmptyModulePath(
|
|
7774
|
-
|
|
7775
|
-
|
|
7776
|
-
|
|
7773
|
+
getEmptyModulePath() {
|
|
7774
|
+
const cjsPath = this.getEmptyCjsModulePath();
|
|
7775
|
+
return cjsPath.replace(/\.cjs$/, ".js");
|
|
7776
|
+
}
|
|
7777
|
+
/**
|
|
7778
|
+
* Get absolute path to empty CJS module for esbuild pre-bundling.
|
|
7779
|
+
* CJS because esbuild statically analyzes ESM exports — CJS has dynamic
|
|
7780
|
+
* exports, so any named import resolves.
|
|
7781
|
+
*/
|
|
7782
|
+
getEmptyCjsModulePath() {
|
|
7777
7783
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7778
|
-
if (resolved)
|
|
7779
|
-
|
|
7780
|
-
return this.normalizePath(join(thisDir, "../empty.js"));
|
|
7784
|
+
if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
|
|
7785
|
+
return resolved;
|
|
7781
7786
|
}
|
|
7782
7787
|
// === PRIVATE METHODS ===
|
|
7783
7788
|
/**
|
|
@@ -6802,7 +6802,7 @@ import {
|
|
|
6802
6802
|
sep,
|
|
6803
6803
|
extname
|
|
6804
6804
|
} from "node:path";
|
|
6805
|
-
import
|
|
6805
|
+
import "node:url";
|
|
6806
6806
|
function safeExecuteAsync(fn, message) {
|
|
6807
6807
|
return fn().catch((error2) => {
|
|
6808
6808
|
throw new Error(
|
|
@@ -7729,19 +7729,24 @@ var init_PathResolver = __esm({
|
|
|
7729
7729
|
return resolved;
|
|
7730
7730
|
}
|
|
7731
7731
|
/**
|
|
7732
|
-
* Get path to empty
|
|
7733
|
-
* Used by Vite
|
|
7734
|
-
*
|
|
7735
|
-
*
|
|
7732
|
+
* Get absolute path to empty ESM module for optional dependency aliasing.
|
|
7733
|
+
* Used by Vite resolveId — served directly to the browser in dev mode.
|
|
7734
|
+
* Note: resolvePackage uses require.resolve (CJS) which picks the "default"
|
|
7735
|
+
* condition (.cjs), so we derive the ESM path from it.
|
|
7736
7736
|
*/
|
|
7737
|
-
getEmptyModulePath(
|
|
7738
|
-
|
|
7739
|
-
|
|
7740
|
-
|
|
7737
|
+
getEmptyModulePath() {
|
|
7738
|
+
const cjsPath = this.getEmptyCjsModulePath();
|
|
7739
|
+
return cjsPath.replace(/\.cjs$/, ".js");
|
|
7740
|
+
}
|
|
7741
|
+
/**
|
|
7742
|
+
* Get absolute path to empty CJS module for esbuild pre-bundling.
|
|
7743
|
+
* CJS because esbuild statically analyzes ESM exports — CJS has dynamic
|
|
7744
|
+
* exports, so any named import resolves.
|
|
7745
|
+
*/
|
|
7746
|
+
getEmptyCjsModulePath() {
|
|
7741
7747
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7742
|
-
if (resolved)
|
|
7743
|
-
|
|
7744
|
-
return this.normalizePath(join(thisDir, "../empty.js"));
|
|
7748
|
+
if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
|
|
7749
|
+
return resolved;
|
|
7745
7750
|
}
|
|
7746
7751
|
// === PRIVATE METHODS ===
|
|
7747
7752
|
/**
|
|
@@ -6851,7 +6851,7 @@ import {
|
|
|
6851
6851
|
sep,
|
|
6852
6852
|
extname
|
|
6853
6853
|
} from "node:path";
|
|
6854
|
-
import
|
|
6854
|
+
import "node:url";
|
|
6855
6855
|
function safeExecuteAsync2(fn, message) {
|
|
6856
6856
|
return fn().catch((error2) => {
|
|
6857
6857
|
throw new Error(
|
|
@@ -7778,19 +7778,24 @@ var init_PathResolver = __esm({
|
|
|
7778
7778
|
return resolved;
|
|
7779
7779
|
}
|
|
7780
7780
|
/**
|
|
7781
|
-
* Get path to empty
|
|
7782
|
-
* Used by Vite
|
|
7783
|
-
*
|
|
7784
|
-
*
|
|
7781
|
+
* Get absolute path to empty ESM module for optional dependency aliasing.
|
|
7782
|
+
* Used by Vite resolveId — served directly to the browser in dev mode.
|
|
7783
|
+
* Note: resolvePackage uses require.resolve (CJS) which picks the "default"
|
|
7784
|
+
* condition (.cjs), so we derive the ESM path from it.
|
|
7785
7785
|
*/
|
|
7786
|
-
getEmptyModulePath(
|
|
7787
|
-
|
|
7788
|
-
|
|
7789
|
-
|
|
7786
|
+
getEmptyModulePath() {
|
|
7787
|
+
const cjsPath = this.getEmptyCjsModulePath();
|
|
7788
|
+
return cjsPath.replace(/\.cjs$/, ".js");
|
|
7789
|
+
}
|
|
7790
|
+
/**
|
|
7791
|
+
* Get absolute path to empty CJS module for esbuild pre-bundling.
|
|
7792
|
+
* CJS because esbuild statically analyzes ESM exports — CJS has dynamic
|
|
7793
|
+
* exports, so any named import resolves.
|
|
7794
|
+
*/
|
|
7795
|
+
getEmptyCjsModulePath() {
|
|
7790
7796
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7791
|
-
if (resolved)
|
|
7792
|
-
|
|
7793
|
-
return this.normalizePath(join(thisDir, "../empty.js"));
|
|
7797
|
+
if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
|
|
7798
|
+
return resolved;
|
|
7794
7799
|
}
|
|
7795
7800
|
// === PRIVATE METHODS ===
|
|
7796
7801
|
/**
|
|
@@ -6844,7 +6844,7 @@ import {
|
|
|
6844
6844
|
sep,
|
|
6845
6845
|
extname
|
|
6846
6846
|
} from "node:path";
|
|
6847
|
-
import
|
|
6847
|
+
import "node:url";
|
|
6848
6848
|
function safeExecuteAsync(fn, message) {
|
|
6849
6849
|
return fn().catch((error2) => {
|
|
6850
6850
|
throw new Error(
|
|
@@ -7771,19 +7771,24 @@ var init_PathResolver = __esm({
|
|
|
7771
7771
|
return resolved;
|
|
7772
7772
|
}
|
|
7773
7773
|
/**
|
|
7774
|
-
* Get path to empty
|
|
7775
|
-
* Used by Vite
|
|
7776
|
-
*
|
|
7777
|
-
*
|
|
7774
|
+
* Get absolute path to empty ESM module for optional dependency aliasing.
|
|
7775
|
+
* Used by Vite resolveId — served directly to the browser in dev mode.
|
|
7776
|
+
* Note: resolvePackage uses require.resolve (CJS) which picks the "default"
|
|
7777
|
+
* condition (.cjs), so we derive the ESM path from it.
|
|
7778
7778
|
*/
|
|
7779
|
-
getEmptyModulePath(
|
|
7780
|
-
|
|
7781
|
-
|
|
7782
|
-
|
|
7779
|
+
getEmptyModulePath() {
|
|
7780
|
+
const cjsPath = this.getEmptyCjsModulePath();
|
|
7781
|
+
return cjsPath.replace(/\.cjs$/, ".js");
|
|
7782
|
+
}
|
|
7783
|
+
/**
|
|
7784
|
+
* Get absolute path to empty CJS module for esbuild pre-bundling.
|
|
7785
|
+
* CJS because esbuild statically analyzes ESM exports — CJS has dynamic
|
|
7786
|
+
* exports, so any named import resolves.
|
|
7787
|
+
*/
|
|
7788
|
+
getEmptyCjsModulePath() {
|
|
7783
7789
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7784
|
-
if (resolved)
|
|
7785
|
-
|
|
7786
|
-
return this.normalizePath(join(thisDir, "../empty.js"));
|
|
7790
|
+
if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
|
|
7791
|
+
return resolved;
|
|
7787
7792
|
}
|
|
7788
7793
|
// === PRIVATE METHODS ===
|
|
7789
7794
|
/**
|
|
@@ -6687,7 +6687,7 @@ import {
|
|
|
6687
6687
|
sep,
|
|
6688
6688
|
extname
|
|
6689
6689
|
} from "node:path";
|
|
6690
|
-
import
|
|
6690
|
+
import "node:url";
|
|
6691
6691
|
function safeExecuteAsync(fn, message) {
|
|
6692
6692
|
return fn().catch((error2) => {
|
|
6693
6693
|
throw new Error(
|
|
@@ -7614,19 +7614,24 @@ var init_PathResolver = __esm({
|
|
|
7614
7614
|
return resolved;
|
|
7615
7615
|
}
|
|
7616
7616
|
/**
|
|
7617
|
-
* Get path to empty
|
|
7618
|
-
* Used by Vite
|
|
7619
|
-
*
|
|
7620
|
-
*
|
|
7617
|
+
* Get absolute path to empty ESM module for optional dependency aliasing.
|
|
7618
|
+
* Used by Vite resolveId — served directly to the browser in dev mode.
|
|
7619
|
+
* Note: resolvePackage uses require.resolve (CJS) which picks the "default"
|
|
7620
|
+
* condition (.cjs), so we derive the ESM path from it.
|
|
7621
7621
|
*/
|
|
7622
|
-
getEmptyModulePath(
|
|
7623
|
-
|
|
7624
|
-
|
|
7625
|
-
|
|
7622
|
+
getEmptyModulePath() {
|
|
7623
|
+
const cjsPath = this.getEmptyCjsModulePath();
|
|
7624
|
+
return cjsPath.replace(/\.cjs$/, ".js");
|
|
7625
|
+
}
|
|
7626
|
+
/**
|
|
7627
|
+
* Get absolute path to empty CJS module for esbuild pre-bundling.
|
|
7628
|
+
* CJS because esbuild statically analyzes ESM exports — CJS has dynamic
|
|
7629
|
+
* exports, so any named import resolves.
|
|
7630
|
+
*/
|
|
7631
|
+
getEmptyCjsModulePath() {
|
|
7626
7632
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7627
|
-
if (resolved)
|
|
7628
|
-
|
|
7629
|
-
return this.normalizePath(join(thisDir, "../empty.js"));
|
|
7633
|
+
if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
|
|
7634
|
+
return resolved;
|
|
7630
7635
|
}
|
|
7631
7636
|
// === PRIVATE METHODS ===
|
|
7632
7637
|
/**
|
|
@@ -6479,7 +6479,7 @@ import {
|
|
|
6479
6479
|
sep,
|
|
6480
6480
|
extname
|
|
6481
6481
|
} from "node:path";
|
|
6482
|
-
import
|
|
6482
|
+
import "node:url";
|
|
6483
6483
|
function safeExecuteAsync(fn, message) {
|
|
6484
6484
|
return fn().catch((error2) => {
|
|
6485
6485
|
throw new Error(
|
|
@@ -7406,19 +7406,24 @@ var init_PathResolver = __esm({
|
|
|
7406
7406
|
return resolved;
|
|
7407
7407
|
}
|
|
7408
7408
|
/**
|
|
7409
|
-
* Get path to empty
|
|
7410
|
-
* Used by Vite
|
|
7411
|
-
*
|
|
7412
|
-
*
|
|
7409
|
+
* Get absolute path to empty ESM module for optional dependency aliasing.
|
|
7410
|
+
* Used by Vite resolveId — served directly to the browser in dev mode.
|
|
7411
|
+
* Note: resolvePackage uses require.resolve (CJS) which picks the "default"
|
|
7412
|
+
* condition (.cjs), so we derive the ESM path from it.
|
|
7413
7413
|
*/
|
|
7414
|
-
getEmptyModulePath(
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7414
|
+
getEmptyModulePath() {
|
|
7415
|
+
const cjsPath = this.getEmptyCjsModulePath();
|
|
7416
|
+
return cjsPath.replace(/\.cjs$/, ".js");
|
|
7417
|
+
}
|
|
7418
|
+
/**
|
|
7419
|
+
* Get absolute path to empty CJS module for esbuild pre-bundling.
|
|
7420
|
+
* CJS because esbuild statically analyzes ESM exports — CJS has dynamic
|
|
7421
|
+
* exports, so any named import resolves.
|
|
7422
|
+
*/
|
|
7423
|
+
getEmptyCjsModulePath() {
|
|
7418
7424
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7419
|
-
if (resolved)
|
|
7420
|
-
|
|
7421
|
-
return this.normalizePath(join(thisDir, "../empty.js"));
|
|
7425
|
+
if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
|
|
7426
|
+
return resolved;
|
|
7422
7427
|
}
|
|
7423
7428
|
// === PRIVATE METHODS ===
|
|
7424
7429
|
/**
|
package/dist/bin/commands/wai.js
CHANGED
|
@@ -6226,7 +6226,7 @@ import {
|
|
|
6226
6226
|
sep,
|
|
6227
6227
|
extname
|
|
6228
6228
|
} from "node:path";
|
|
6229
|
-
import
|
|
6229
|
+
import "node:url";
|
|
6230
6230
|
function safeExecuteAsync(fn, message) {
|
|
6231
6231
|
return fn().catch((error2) => {
|
|
6232
6232
|
throw new Error(
|
|
@@ -7153,19 +7153,24 @@ var init_PathResolver = __esm({
|
|
|
7153
7153
|
return resolved;
|
|
7154
7154
|
}
|
|
7155
7155
|
/**
|
|
7156
|
-
* Get path to empty
|
|
7157
|
-
* Used by Vite
|
|
7158
|
-
*
|
|
7159
|
-
*
|
|
7156
|
+
* Get absolute path to empty ESM module for optional dependency aliasing.
|
|
7157
|
+
* Used by Vite resolveId — served directly to the browser in dev mode.
|
|
7158
|
+
* Note: resolvePackage uses require.resolve (CJS) which picks the "default"
|
|
7159
|
+
* condition (.cjs), so we derive the ESM path from it.
|
|
7160
7160
|
*/
|
|
7161
|
-
getEmptyModulePath(
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
|
|
7161
|
+
getEmptyModulePath() {
|
|
7162
|
+
const cjsPath = this.getEmptyCjsModulePath();
|
|
7163
|
+
return cjsPath.replace(/\.cjs$/, ".js");
|
|
7164
|
+
}
|
|
7165
|
+
/**
|
|
7166
|
+
* Get absolute path to empty CJS module for esbuild pre-bundling.
|
|
7167
|
+
* CJS because esbuild statically analyzes ESM exports — CJS has dynamic
|
|
7168
|
+
* exports, so any named import resolves.
|
|
7169
|
+
*/
|
|
7170
|
+
getEmptyCjsModulePath() {
|
|
7165
7171
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7166
|
-
if (resolved)
|
|
7167
|
-
|
|
7168
|
-
return this.normalizePath(join(thisDir, "../empty.js"));
|
|
7172
|
+
if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
|
|
7173
|
+
return resolved;
|
|
7169
7174
|
}
|
|
7170
7175
|
// === PRIVATE METHODS ===
|
|
7171
7176
|
/**
|
package/dist/bin/dndev.js
CHANGED
|
@@ -950,7 +950,7 @@ function registerCommand(program2, def, action) {
|
|
|
950
950
|
}
|
|
951
951
|
|
|
952
952
|
// packages/cli/src/bin/dndev.mjs
|
|
953
|
-
var CLI_VERSION = true ? "0.0.
|
|
953
|
+
var CLI_VERSION = true ? "0.0.31" : "0.0.0";
|
|
954
954
|
var args = process.argv.slice(2);
|
|
955
955
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
|
|
956
956
|
console.log(CLI_VERSION);
|
package/dist/bin/donotdev.js
CHANGED
|
@@ -950,7 +950,7 @@ function registerCommand(program2, def, action) {
|
|
|
950
950
|
}
|
|
951
951
|
|
|
952
952
|
// packages/cli/src/bin/dndev.mjs
|
|
953
|
-
var CLI_VERSION = true ? "0.0.
|
|
953
|
+
var CLI_VERSION = true ? "0.0.31" : "0.0.0";
|
|
954
954
|
var args = process.argv.slice(2);
|
|
955
955
|
if (args.length === 1 && (args[0] === "--version" || args[0] === "-v")) {
|
|
956
956
|
console.log(CLI_VERSION);
|
package/dist/index.js
CHANGED
|
@@ -6986,7 +6986,7 @@ import {
|
|
|
6986
6986
|
sep,
|
|
6987
6987
|
extname
|
|
6988
6988
|
} from "node:path";
|
|
6989
|
-
import
|
|
6989
|
+
import "node:url";
|
|
6990
6990
|
function safeExecuteAsync(fn, message) {
|
|
6991
6991
|
return fn().catch((error2) => {
|
|
6992
6992
|
throw new Error(
|
|
@@ -7913,19 +7913,24 @@ var init_PathResolver = __esm({
|
|
|
7913
7913
|
return resolved;
|
|
7914
7914
|
}
|
|
7915
7915
|
/**
|
|
7916
|
-
* Get path to empty
|
|
7917
|
-
* Used by Vite
|
|
7918
|
-
*
|
|
7919
|
-
*
|
|
7916
|
+
* Get absolute path to empty ESM module for optional dependency aliasing.
|
|
7917
|
+
* Used by Vite resolveId — served directly to the browser in dev mode.
|
|
7918
|
+
* Note: resolvePackage uses require.resolve (CJS) which picks the "default"
|
|
7919
|
+
* condition (.cjs), so we derive the ESM path from it.
|
|
7920
7920
|
*/
|
|
7921
|
-
getEmptyModulePath(
|
|
7922
|
-
|
|
7923
|
-
|
|
7924
|
-
|
|
7921
|
+
getEmptyModulePath() {
|
|
7922
|
+
const cjsPath = this.getEmptyCjsModulePath();
|
|
7923
|
+
return cjsPath.replace(/\.cjs$/, ".js");
|
|
7924
|
+
}
|
|
7925
|
+
/**
|
|
7926
|
+
* Get absolute path to empty CJS module for esbuild pre-bundling.
|
|
7927
|
+
* CJS because esbuild statically analyzes ESM exports — CJS has dynamic
|
|
7928
|
+
* exports, so any named import resolves.
|
|
7929
|
+
*/
|
|
7930
|
+
getEmptyCjsModulePath() {
|
|
7925
7931
|
const resolved = this.resolvePackage("@donotdev/core/empty");
|
|
7926
|
-
if (resolved)
|
|
7927
|
-
|
|
7928
|
-
return this.normalizePath(join(thisDir, "../empty.js"));
|
|
7932
|
+
if (!resolved) throw new Error("Cannot resolve @donotdev/core/empty \u2014 package setup is broken");
|
|
7933
|
+
return resolved;
|
|
7929
7934
|
}
|
|
7930
7935
|
// === PRIVATE METHODS ===
|
|
7931
7936
|
/**
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/* Next.js app globals.css */
|
|
2
|
-
@import '@donotdev/ui/dndev.css';
|
|
2
|
+
@import '@donotdev/ui/dndev-next.css';
|
|
3
3
|
|
|
4
4
|
@import './themes.css';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Font choices (--font-family, --font-sans, etc.) belong in themes.css.
|
|
8
|
-
* Fonts
|
|
8
|
+
* Fonts are served from public/fonts/ (auto-copied by framework discovery).
|
|
9
|
+
* dndev-next.css = font-stripped variant — use this for Next.js, NOT dndev.css.
|
|
9
10
|
*/
|