@stacksjs/actions 0.70.329 → 0.70.331

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.
@@ -14,6 +14,10 @@
14
14
  * this way; the dev server still had the bare path. This is the shared shape —
15
15
  * import it from both rather than keep two copies that can drift.
16
16
  *
17
+ * Returns an absolute path either way. It used to hand back the bare relative
18
+ * string, which only resolved for a caller whose working directory was already
19
+ * the project root.
20
+ *
17
21
  * Returns the vendored path if neither resolves, letting the caller (stx serve)
18
22
  * surface a clear missing-directory error rather than a silent empty glob.
19
23
  */
@@ -1 +1 @@
1
- import{existsSync}from"node:fs";import{dirname,join}from"node:path";export function resolveDefaultsResources(){const vendored="storage/framework/defaults/resources";if(existsSync(vendored))return vendored;try{const pkgJson=Bun.resolveSync("@stacksjs/defaults/package.json",process.cwd());return join(dirname(pkgJson),"resources")}catch{return vendored}}
1
+ import{existsSync}from"node:fs";import{dirname,join,resolve}from"node:path";export function resolveDefaultsResources(){const projectRoot=resolve(import.meta.dir,"../../../../../.."),vendored=join(projectRoot,"storage/framework/defaults/resources");if(existsSync(vendored))return vendored;try{const pkgJson=Bun.resolveSync("@stacksjs/defaults/package.json",process.cwd());return join(dirname(pkgJson),"resources")}catch{return vendored}}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/actions",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.70.329",
5
+ "version": "0.70.331",
6
6
  "description": "The Stacks actions.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -59,33 +59,33 @@
59
59
  "prepublishOnly": "bun run build"
60
60
  },
61
61
  "dependencies": {
62
- "@stacksjs/config": "0.70.329",
62
+ "@stacksjs/config": "0.70.331",
63
63
  "@stacksjs/bumpx": "^0.2.6",
64
64
  "@stacksjs/bunpress": "^0.1.18",
65
65
  "@stacksjs/logsmith": "^0.2.3",
66
- "@stacksjs/registry": "0.70.329",
66
+ "@stacksjs/registry": "0.70.331",
67
67
  "@stacksjs/stx": "^0.2.148",
68
68
  "@stacksjs/ts-cloud": "^0.7.103",
69
69
  "@stacksjs/ts-md": "^0.1.1"
70
70
  },
71
71
  "devDependencies": {
72
- "@stacksjs/api": "0.70.329",
73
- "@stacksjs/cli": "0.70.329",
74
- "@stacksjs/database": "0.70.329",
72
+ "@stacksjs/api": "0.70.331",
73
+ "@stacksjs/cli": "0.70.331",
74
+ "@stacksjs/database": "0.70.331",
75
75
  "@stacksjs/tlsx": "^0.13.2",
76
76
  "better-dx": "^0.2.17",
77
- "@stacksjs/dns": "0.70.329",
78
- "@stacksjs/enums": "0.70.329",
79
- "@stacksjs/env": "0.70.329",
80
- "@stacksjs/error-handling": "0.70.329",
81
- "@stacksjs/image": "0.70.329",
82
- "@stacksjs/logging": "0.70.329",
83
- "@stacksjs/path": "0.70.329",
84
- "@stacksjs/security": "0.70.329",
85
- "@stacksjs/storage": "0.70.329",
86
- "@stacksjs/strings": "0.70.329",
87
- "@stacksjs/utils": "0.70.329",
88
- "@stacksjs/validation": "0.70.329"
77
+ "@stacksjs/dns": "0.70.331",
78
+ "@stacksjs/enums": "0.70.331",
79
+ "@stacksjs/env": "0.70.331",
80
+ "@stacksjs/error-handling": "0.70.331",
81
+ "@stacksjs/image": "0.70.331",
82
+ "@stacksjs/logging": "0.70.331",
83
+ "@stacksjs/path": "0.70.331",
84
+ "@stacksjs/security": "0.70.331",
85
+ "@stacksjs/storage": "0.70.331",
86
+ "@stacksjs/strings": "0.70.331",
87
+ "@stacksjs/utils": "0.70.331",
88
+ "@stacksjs/validation": "0.70.331"
89
89
  },
90
90
  "peerDependencies": {
91
91
  "pickier": "^0.1.35"