@stacksjs/actions 0.52.0 → 0.52.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/dist/clean.mjs CHANGED
@@ -1,11 +1,10 @@
1
- import { log, runCommand } from "@stacksjs/cli";
1
+ import { log } from "@stacksjs/cli";
2
2
  import { projectPath } from "@stacksjs/path";
3
- import { ExitCode, NpmScript } from "@stacksjs/types";
4
- log.info("Running clean command...");
5
- const result = await runCommand(NpmScript.Clean, { cwd: projectPath() });
6
- if (result.isOk()) {
7
- log.success("Cleaned up");
8
- process.exit(ExitCode.Success);
9
- }
10
- log.error(result.error);
11
- process.exit(ExitCode.FatalError);
3
+ import { del } from "@stacksjs/utils";
4
+ log.info("Running clean command...", projectPath());
5
+ await del([
6
+ projectPath("pnpm-lock.yaml"),
7
+ projectPath("node_modules/"),
8
+ projectPath(".stacks/**/dist"),
9
+ projectPath(".stacks/**/node_modules")
10
+ ]);
@@ -1,8 +1,7 @@
1
1
  import { log } from "@stacksjs/logging";
2
2
  import { writeTextFile } from "@stacksjs/storage";
3
3
  import { packageJsonPath } from "@stacksjs/path";
4
- import { library } from "@stacksjs/config";
5
- import { packageManager } from "../../package.json" assert { type: "json" };
4
+ import { library, packageManager } from "@stacksjs/config";
6
5
  export async function generatePackageJson(type) {
7
6
  let name, description, directory, keywords, config, prettyName;
8
7
  if (type === "vue-components") {
@@ -7,7 +7,7 @@ function parseOptions(options) {
7
7
  return "";
8
8
  const parsedOptions = Object.entries(options).map(([key, value]) => {
9
9
  if (key.length === 1)
10
- return;
10
+ return `-${key}=${value}`;
11
11
  if (typeof value === "boolean" && value)
12
12
  return `--${key}`;
13
13
  else
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
- "version": "0.52.0",
4
+ "version": "0.52.2",
5
5
  "packageManager": "pnpm@8.5.1",
6
6
  "description": "The Stacks actions.",
7
7
  "author": "Chris Breuer",
@@ -240,27 +240,39 @@
240
240
  "peerDependencies": {
241
241
  "markdown-it": "^13.0.1",
242
242
  "vue-component-meta": "^1.6.5",
243
- "@stacksjs/cli": "0.52.0",
244
- "@stacksjs/config": "0.52.0",
245
- "@stacksjs/database": "0.52.0",
246
- "@stacksjs/error-handling": "0.52.0",
247
- "@stacksjs/logging": "0.52.0",
248
- "@stacksjs/pages": "0.52.0",
249
- "@stacksjs/path": "0.52.0",
250
- "@stacksjs/security": "0.52.0",
251
- "@stacksjs/storage": "0.52.0",
252
- "@stacksjs/types": "0.52.0",
253
- "@stacksjs/utils": "0.52.0"
243
+ "@stacksjs/cli": "0.52.2",
244
+ "@stacksjs/config": "0.52.2",
245
+ "@stacksjs/database": "0.52.2",
246
+ "@stacksjs/error-handling": "0.52.2",
247
+ "@stacksjs/logging": "0.52.2",
248
+ "@stacksjs/pages": "0.52.2",
249
+ "@stacksjs/path": "0.52.2",
250
+ "@stacksjs/security": "0.52.2",
251
+ "@stacksjs/storage": "0.52.2",
252
+ "@stacksjs/types": "0.52.2",
253
+ "@stacksjs/utils": "0.52.2"
254
254
  },
255
255
  "dependencies": {
256
256
  "fast-glob": "^3.2.12",
257
257
  "fs-extra": "^11.1.1",
258
- "@stacksjs/strings": "0.52.0"
258
+ "markdown-it": "^13.0.1",
259
+ "vue-component-meta": "^1.6.5",
260
+ "@stacksjs/cli": "0.52.2",
261
+ "@stacksjs/config": "0.52.2",
262
+ "@stacksjs/database": "0.52.2",
263
+ "@stacksjs/error-handling": "0.52.2",
264
+ "@stacksjs/logging": "0.52.2",
265
+ "@stacksjs/pages": "0.52.2",
266
+ "@stacksjs/path": "0.52.2",
267
+ "@stacksjs/security": "0.52.2",
268
+ "@stacksjs/storage": "0.52.2",
269
+ "@stacksjs/strings": "0.52.2",
270
+ "@stacksjs/utils": "0.52.2"
259
271
  },
260
272
  "devDependencies": {
261
273
  "unbuild": "^1.2.1",
262
- "@stacksjs/development": "0.52.0",
263
- "@stacksjs/types": "0.52.0"
274
+ "@stacksjs/development": "0.52.2",
275
+ "@stacksjs/types": "0.52.2"
264
276
  },
265
277
  "scripts": {
266
278
  "build": "unbuild",