@ossy/app 1.38.0 → 1.39.1

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.
@@ -35,7 +35,7 @@ export const LAYOUT_FILE_PATTERN = /\.layout\.(jsx?|tsx?)$/
35
35
  * @property {PlatformEntry[]} emails Discovered `*.email.{jsx,tsx,...}` entries.
36
36
  * @property {PlatformEntry[]} actions Discovered `*.action.{js,mjs,cjs}` entries.
37
37
  * @property {PlatformEntry[]} e2es Discovered `*.e2e.{js,mjs,cjs}` entries (installed packages only).
38
- * @property {PlatformEntry[]} layouts Discovered `*.layout.{jsx,tsx,...}` entries.
38
+ * @property {PlatformEntry[]} layouts Discovered `*.layout.{jsx,tsx,...}` entries (app root `src/` only — never from installed packages).
39
39
  */
40
40
  export function discoverFilesByPattern (srcDir, filePattern) {
41
41
  const dir = path.resolve(srcDir)
@@ -141,7 +141,8 @@ export function discoverInstalledPackageEntries (projectRoot) {
141
141
  ...discoverFilesByPattern(packageSrcDir, EMAIL_FILE_PATTERN),
142
142
  ...discoverFilesByPattern(packageSrcDir, ACTION_FILE_PATTERN),
143
143
  ...discoverFilesByPattern(packageSrcDir, E2E_FILE_PATTERN),
144
- ...discoverFilesByPattern(packageSrcDir, LAYOUT_FILE_PATTERN),
144
+ // Layouts are intentionally excluded: *.layout.jsx is an app-level
145
+ // primitive only. Feature packages must never define layouts.
145
146
  ]
146
147
  for (const sourcePath of files) {
147
148
  const stat = fs.statSync(sourcePath)
@@ -192,6 +193,9 @@ export default async function getPlatformFiles (srcDir) {
192
193
  // from the local `src/` — to avoid pulling in per-project duplicates of the
193
194
  // same aggregate class or test suite that is canonically owned by the feature
194
195
  // package.
196
+ // Layouts are the opposite restriction: they are only discovered from the
197
+ // app's own `src/`, never from installed packages. Feature packages are pure
198
+ // content (pages, actions, tasks, etc.) and must never define layouts.
195
199
  const localFiles = [
196
200
  ...discoverFilesByPattern(srcDir, PAGE_FILE_PATTERN),
197
201
  ...discoverFilesByPattern(srcDir, API_FILE_PATTERN),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/app",
3
- "version": "1.38.0",
3
+ "version": "1.39.1",
4
4
  "description": "",
5
5
  "source": "./src/index.js",
6
6
  "main": "./src/index.js",
@@ -38,14 +38,14 @@
38
38
  "@babel/eslint-parser": "^7.15.8",
39
39
  "@babel/preset-react": "^7.26.3",
40
40
  "@babel/register": "^7.25.9",
41
- "@ossy/design-system": "^1.38.0",
41
+ "@ossy/design-system": "^1.39.1",
42
42
  "@ossy/pages": "^1.23.0",
43
- "@ossy/platform": "^1.37.0",
44
- "@ossy/router": "^1.38.0",
45
- "@ossy/router-react": "^1.38.0",
46
- "@ossy/sdk": "^1.38.0",
47
- "@ossy/sdk-react": "^1.38.0",
48
- "@ossy/themes": "^1.38.0",
43
+ "@ossy/platform": "^1.38.1",
44
+ "@ossy/router": "^1.39.1",
45
+ "@ossy/router-react": "^1.39.1",
46
+ "@ossy/sdk": "^1.39.1",
47
+ "@ossy/sdk-react": "^1.39.1",
48
+ "@ossy/themes": "^1.39.1",
49
49
  "@rollup/plugin-alias": "^6.0.0",
50
50
  "@rollup/plugin-babel": "^7.0.0",
51
51
  "@rollup/plugin-commonjs": "^29.0.0",
@@ -79,5 +79,5 @@
79
79
  "README.md",
80
80
  "tsconfig.json"
81
81
  ],
82
- "gitHead": "abc435125ddf56e01b61353d49d2a18d2ab55be8"
82
+ "gitHead": "b9708c9c3f368bb642fc3bb76912a68107db24b9"
83
83
  }