stacks 0.59.1 → 0.59.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.
|
@@ -1661,6 +1661,7 @@ import process26 from "process";
|
|
|
1661
1661
|
import {path as p6} from "@stacksjs/path";
|
|
1662
1662
|
import {Action as Action15} from "@stacksjs/enums";
|
|
1663
1663
|
import {handleError} from "@stacksjs/error-handling";
|
|
1664
|
+
import {storage as storage3} from "@stacksjs/storage";
|
|
1664
1665
|
import {log as log26, runCommand as runCommand9} from "@stacksjs/cli";
|
|
1665
1666
|
import {ExitCode as ExitCode19} from "@stacksjs/types";
|
|
1666
1667
|
function setup(buddy) {
|
|
@@ -1739,7 +1740,7 @@ async function optimizePkgxDeps() {
|
|
|
1739
1740
|
}
|
|
1740
1741
|
async function ensureEnvIsSet(options) {
|
|
1741
1742
|
log26.info("Ensuring .env exists...");
|
|
1742
|
-
if (
|
|
1743
|
+
if (storage3.doesNotExist(p6.projectPath(".env"))) {
|
|
1743
1744
|
const envResult = await runCommand9("cp .env.example .env", {
|
|
1744
1745
|
cwd: options.cwd || p6.projectPath()
|
|
1745
1746
|
});
|
|
@@ -1993,7 +1994,7 @@ var hasNoOptions2 = function(options) {
|
|
|
1993
1994
|
// src/commands/version.ts
|
|
1994
1995
|
import process31 from "process";
|
|
1995
1996
|
import {bold as bold3, dim as dim2, green, intro as intro21, log as log30} from "@stacksjs/cli";
|
|
1996
|
-
import {storage as
|
|
1997
|
+
import {storage as storage5} from "@stacksjs/storage";
|
|
1997
1998
|
function version(buddy) {
|
|
1998
1999
|
const descriptions2 = {
|
|
1999
2000
|
version: "Retrieving Stacks build version"
|
|
@@ -2001,7 +2002,7 @@ function version(buddy) {
|
|
|
2001
2002
|
buddy.command("version", descriptions2.version).action(async () => {
|
|
2002
2003
|
log30.debug("Running `buddy version` ...");
|
|
2003
2004
|
await intro21("buddy version");
|
|
2004
|
-
const pkg = await
|
|
2005
|
+
const pkg = await storage5.readPackageJson("./package.json");
|
|
2005
2006
|
const bunVersion = "wip";
|
|
2006
2007
|
const stacksVersion = pkg.version;
|
|
2007
2008
|
log30.info(green(bold3("@stacksjs/ ")) + dim2(` ${stacksVersion}`));
|
package/buddy/dist/cli.js
CHANGED
package/buddy/dist/index.js
CHANGED
package/buddy/dist/stacks
CHANGED
|
Binary file
|
package/buddy/package.json
CHANGED
|
@@ -2,6 +2,7 @@ import process from 'node:process'
|
|
|
2
2
|
import { path as p } from '@stacksjs/path'
|
|
3
3
|
import { Action } from '@stacksjs/enums'
|
|
4
4
|
import { handleError } from '@stacksjs/error-handling'
|
|
5
|
+
import { storage } from '@stacksjs/storage'
|
|
5
6
|
import { log, runCommand } from '@stacksjs/cli'
|
|
6
7
|
import { ExitCode } from '@stacksjs/types'
|
|
7
8
|
import type { CLI, CliOptions } from '@stacksjs/types'
|