@stacksjs/utils 0.43.1 → 0.44.6

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/helpers.d.ts CHANGED
@@ -28,5 +28,7 @@ export declare function runNpmScript(script: NpmScript, options?: CliOptions): P
28
28
  * Determines whether the specified NPM script exists in the given manifest.
29
29
  */
30
30
  export declare function hasScript(manifest: Manifest, script: NpmScript): boolean;
31
+ export * from '@dinero.js/currencies';
32
+ export * from 'dinero.js';
31
33
  export * as detectIndent from 'detect-indent';
32
34
  export { detectNewline } from 'detect-newline';
package/dist/helpers.mjs CHANGED
@@ -1,5 +1,4 @@
1
1
  import { log, runCommand, spawn } from "@stacksjs/cli";
2
- import { ExitCode } from "@stacksjs/types";
3
2
  import { frameworkPath, projectPath } from "@stacksjs/path";
4
3
  import storage from "@stacksjs/storage";
5
4
  import { ui } from "@stacksjs/config";
@@ -60,9 +59,9 @@ export async function setEnvValue(key, value) {
60
59
  export async function runNpmScript(script, options) {
61
60
  const { data: manifest } = await storage.readJsonFile("package.json", frameworkPath());
62
61
  if (isManifest(manifest) && hasScript(manifest, script))
63
- return await runCommand(`pnpm run ${script}`, { ...options, cwd: frameworkPath() });
64
- log.error(`The specified npm script "${script}" does not exist in the package.json file`);
65
- process.exit(ExitCode.FatalError);
62
+ return await runCommand(`pnpm run ${script}`, options);
63
+ log.error(`The specified npm script "${script}" does not exist in the package.json file.`);
64
+ process.exit();
66
65
  }
67
66
  export function hasScript(manifest, script) {
68
67
  const scripts = manifest.scripts;
@@ -70,5 +69,7 @@ export function hasScript(manifest, script) {
70
69
  return Boolean(scripts[script]);
71
70
  return false;
72
71
  }
72
+ export * from "@dinero.js/currencies";
73
+ export * from "dinero.js";
73
74
  export * as detectIndent from "detect-indent";
74
75
  export { detectNewline } from "detect-newline";
package/dist/index.d.ts CHANGED
@@ -8,5 +8,4 @@ export * from './p';
8
8
  export * from './vendor';
9
9
  export * from '@vueuse/core';
10
10
  export * from '@vueuse/math';
11
- export * from '@vueuse/head';
12
11
  export * from '@vueuse/shared';
package/dist/index.mjs CHANGED
@@ -8,5 +8,4 @@ export * from "./p.mjs";
8
8
  export * from "./vendor.mjs";
9
9
  export * from "@vueuse/core";
10
10
  export * from "@vueuse/math";
11
- export * from "@vueuse/head";
12
11
  export * from "@vueuse/shared";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@stacksjs/utils",
3
3
  "type": "module",
4
- "version": "0.43.1",
5
- "packageManager": "pnpm@7.17.1",
4
+ "version": "0.44.6",
5
+ "packageManager": "pnpm@7.18.2",
6
6
  "description": "The Stacks helper functions.",
7
7
  "author": "Chris Breuer",
8
8
  "license": "MIT",
@@ -38,33 +38,35 @@
38
38
  ],
39
39
  "engines": {
40
40
  "node": ">=v18.12.1",
41
- "pnpm": ">=7.17.1"
41
+ "pnpm": ">=7.18.2"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "@vueuse/core": "^9.6.0",
45
- "@vueuse/head": "^1.0.19",
45
+ "@vueuse/head": "^1.0.22",
46
46
  "@vueuse/math": "^9.6.0",
47
47
  "@vueuse/shared": "^9.6.0",
48
48
  "defu": "^6.1.1",
49
49
  "detect-indent": "^7.0.1",
50
50
  "detect-newline": "^4.0.0",
51
+ "dinero.js": "2.0.0-alpha.12",
51
52
  "esno": "^0.16.3",
52
53
  "fast-glob": "^3.2.12",
53
54
  "kolorist": "1.6.0",
54
55
  "p-limit": "^4.0.0",
55
56
  "rimraf": "^3.0.2",
56
57
  "throttle-debounce": "^5.0.0",
57
- "@stacksjs/cli": "0.43.1",
58
- "@stacksjs/config": "0.43.1",
59
- "@stacksjs/lint": "0.43.1",
60
- "@stacksjs/path": "0.43.1",
61
- "@stacksjs/storage": "0.43.1",
62
- "@stacksjs/types": "0.43.1"
58
+ "@stacksjs/arrays": "0.44.6",
59
+ "@stacksjs/cli": "0.44.6",
60
+ "@stacksjs/config": "0.44.6",
61
+ "@stacksjs/lint": "0.44.6",
62
+ "@stacksjs/path": "0.44.6",
63
+ "@stacksjs/storage": "0.44.6",
64
+ "@stacksjs/types": "0.44.6"
63
65
  },
64
66
  "devDependencies": {
65
67
  "mkdist": "^1.0.0",
66
- "typescript": "^4.9.3",
67
- "@stacksjs/testing": "0.43.1"
68
+ "typescript": "^4.9.4",
69
+ "@stacksjs/testing": "0.44.6"
68
70
  },
69
71
  "scripts": {
70
72
  "build": "mkdist -d",