@ossy/app 1.11.4 → 1.11.5

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/cli/build.js CHANGED
@@ -22,8 +22,8 @@ const RESOURCE_TEMPLATE_FILE_PATTERN = /\.resource\.js$/
22
22
  /** Written next to `*.resource.js` under `src/resource-templates/` when that dir exists. */
23
23
  export const OSSY_RESOURCE_TEMPLATES_OUT = '.ossy-system-templates.generated.js'
24
24
 
25
- /** Rollup output paths for JS served to the browser (see `entryFileNames` / `chunkFileNames`). */
26
- const BROWSER_STATIC_PREFIX = 'public/static/'
25
+ /** Rollup output paths when `output.dir` is `<build>/public` (see `entryFileNames` / `chunkFileNames`). */
26
+ const BROWSER_STATIC_PREFIX = 'static/'
27
27
 
28
28
  export function minifyBrowserStaticChunks () {
29
29
  return {
package/cli/dev.js CHANGED
@@ -125,17 +125,18 @@ export const dev = async (cliArgs) => {
125
125
  buildPath,
126
126
  })
127
127
 
128
+ // `dir` must not be an ancestor of hydrate stubs (`build/.ossy/…`) or Rollup watch errors.
128
129
  const clientOutput = {
129
- dir: buildPath,
130
+ dir: path.join(buildPath, 'public'),
130
131
  format: 'esm',
131
132
  entryFileNames ({ name }) {
132
133
  if (name.startsWith('hydrate__')) {
133
134
  const pageId = name.slice('hydrate__'.length)
134
- return `public/static/hydrate-${pageId}.js`
135
+ return `static/hydrate-${pageId}.js`
135
136
  }
136
- return 'public/static/[name].js'
137
+ return 'static/[name].js'
137
138
  },
138
- chunkFileNames: 'public/static/[name]-[hash].js',
139
+ chunkFileNames: 'static/[name]-[hash].js',
139
140
  }
140
141
 
141
142
  let restartTimer = null
@@ -48,18 +48,18 @@ async function bundleOneHydratePage ({
48
48
  })
49
49
  try {
50
50
  await bundle.write({
51
- dir: buildPath,
51
+ dir: path.join(buildPath, 'public'),
52
52
  format: 'esm',
53
53
  inlineDynamicImports: true,
54
54
  entryFileNames (chunkInfo) {
55
55
  const n = chunkInfo.name
56
56
  if (n.startsWith('hydrate__')) {
57
57
  const pageId = n.slice('hydrate__'.length)
58
- return `public/static/hydrate-${pageId}.js`
58
+ return `static/hydrate-${pageId}.js`
59
59
  }
60
- return 'public/static/[name].js'
60
+ return 'static/[name].js'
61
61
  },
62
- chunkFileNames: 'public/static/[name]-[hash].js',
62
+ chunkFileNames: 'static/[name]-[hash].js',
63
63
  plugins: minifyPlugin ? [minifyPlugin] : [],
64
64
  })
65
65
  } finally {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ossy/app",
3
- "version": "1.11.4",
3
+ "version": "1.11.5",
4
4
  "description": "",
5
5
  "source": "./src/index.js",
6
6
  "main": "./src/index.js",
@@ -27,14 +27,14 @@
27
27
  "@babel/eslint-parser": "^7.15.8",
28
28
  "@babel/preset-react": "^7.26.3",
29
29
  "@babel/register": "^7.25.9",
30
- "@ossy/connected-components": "^1.11.4",
31
- "@ossy/design-system": "^1.11.4",
32
- "@ossy/pages": "^1.11.4",
33
- "@ossy/router": "^1.11.4",
34
- "@ossy/router-react": "^1.11.4",
35
- "@ossy/sdk": "^1.11.4",
36
- "@ossy/sdk-react": "^1.11.4",
37
- "@ossy/themes": "^1.11.4",
30
+ "@ossy/connected-components": "^1.11.5",
31
+ "@ossy/design-system": "^1.11.5",
32
+ "@ossy/pages": "^1.11.5",
33
+ "@ossy/router": "^1.11.5",
34
+ "@ossy/router-react": "^1.11.5",
35
+ "@ossy/sdk": "^1.11.5",
36
+ "@ossy/sdk-react": "^1.11.5",
37
+ "@ossy/themes": "^1.11.5",
38
38
  "@rollup/plugin-alias": "^6.0.0",
39
39
  "@rollup/plugin-babel": "6.1.0",
40
40
  "@rollup/plugin-commonjs": "^29.0.0",
@@ -67,5 +67,5 @@
67
67
  "README.md",
68
68
  "tsconfig.json"
69
69
  ],
70
- "gitHead": "431ec3200bf38c97ac4d5a269f596133da3958bc"
70
+ "gitHead": "9dcb9e0e0a09c23690f1a8e009fa79e2961fe6d6"
71
71
  }