@stacksjs/server 0.75.210 → 0.75.212

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.
@@ -1,4 +1,4 @@
1
- /** Framework source imports its editable tree; applications import the defaults package contract. */
1
+ /** Source checkouts and named --with-core apps import their editable defaults tree. */
2
2
  export declare function isFrameworkSourceCheckout(projectRoot: string): boolean;
3
3
  /** Package-qualified defaults remain identical across npm, Pantry and relocated application roots. */
4
4
  export declare function defaultImportSpecifier(file: string, roots: readonly string[], sourceCheckout?: boolean): string | undefined;
@@ -1 +1 @@
1
- import{existsSync,readFileSync}from"node:fs";import{isAbsolute,relative,resolve,sep}from"node:path";export function isFrameworkSourceCheckout(projectRoot){try{return JSON.parse(readFileSync(resolve(projectRoot,"package.json"),"utf8")).name==="stacks"&&existsSync(resolve(projectRoot,"storage/framework/core/package.json"))}catch{return!1}}export function defaultImportSpecifier(file,roots,sourceCheckout=!1){if(sourceCheckout)return;for(const root of roots){const subpath=relative(resolve(root),resolve(file));if(!subpath||subpath===".."||subpath.startsWith(`..${sep}`)||isAbsolute(subpath))continue;return`@stacksjs/defaults/${subpath.replace(/\\/g,"/")}`}return}
1
+ import{existsSync,readFileSync}from"node:fs";import{isAbsolute,relative,resolve,sep}from"node:path";export function isFrameworkSourceCheckout(projectRoot){try{const core=resolve(projectRoot,"storage/framework/core");return JSON.parse(readFileSync(resolve(core,"package.json"),"utf8")).name==="stacks"&&existsSync(resolve(core,"defaults/package.json"))}catch{return!1}}export function defaultImportSpecifier(file,roots,sourceCheckout=!1){if(sourceCheckout)return;for(const root of roots){const subpath=relative(resolve(root),resolve(file));if(!subpath||subpath===".."||subpath.startsWith(`..${sep}`)||isAbsolute(subpath))continue;return`@stacksjs/defaults/${subpath.replace(/\\/g,"/")}`}return}
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/server",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.75.210",
5
+ "version": "0.75.212",
6
6
  "description": "Local development and production-ready.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -58,21 +58,21 @@
58
58
  "prepublishOnly": "bun run build"
59
59
  },
60
60
  "dependencies": {
61
- "@stacksjs/auth": "0.75.210",
61
+ "@stacksjs/auth": "0.75.212",
62
62
  "@stacksjs/bun-router": "^0.1.24",
63
- "@stacksjs/config": "0.75.210",
64
- "@stacksjs/events": "0.75.210",
65
- "@stacksjs/i18n": "0.75.210",
66
- "@stacksjs/logging": "0.75.210",
67
- "@stacksjs/orm": "0.75.210",
68
- "@stacksjs/path": "0.75.210",
69
- "@stacksjs/payments": "0.75.210",
70
- "@stacksjs/router": "0.75.210",
71
- "@stacksjs/storage": "0.75.210",
63
+ "@stacksjs/config": "0.75.212",
64
+ "@stacksjs/events": "0.75.212",
65
+ "@stacksjs/i18n": "0.75.212",
66
+ "@stacksjs/logging": "0.75.212",
67
+ "@stacksjs/orm": "0.75.212",
68
+ "@stacksjs/path": "0.75.212",
69
+ "@stacksjs/payments": "0.75.212",
70
+ "@stacksjs/router": "0.75.212",
71
+ "@stacksjs/storage": "0.75.212",
72
72
  "bun-plugin-auto-imports": "^0.4.4"
73
73
  },
74
74
  "devDependencies": {
75
- "@stacksjs/validation": "0.75.210",
75
+ "@stacksjs/validation": "0.75.212",
76
76
  "better-dx": "^0.2.24"
77
77
  }
78
78
  }