@ossy/app 1.22.0 → 1.23.0
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.task.js +7 -1
- package/package.json +11 -11
package/cli/build.task.js
CHANGED
|
@@ -195,6 +195,11 @@ export async function build (cliArgs = []) {
|
|
|
195
195
|
const configPath = path.resolve(srcDir, 'config.js')
|
|
196
196
|
const configValue = await loadConfig(configPath)
|
|
197
197
|
|
|
198
|
+
const middlewareSrc = path.resolve(srcDir, 'middleware.js')
|
|
199
|
+
if (fs.existsSync(middlewareSrc)) {
|
|
200
|
+
stubInputMap['middleware'] = middlewareSrc
|
|
201
|
+
}
|
|
202
|
+
|
|
198
203
|
ensureDir(staticOutDir)
|
|
199
204
|
|
|
200
205
|
const bundle = await rollup({
|
|
@@ -240,7 +245,7 @@ export async function build (cliArgs = []) {
|
|
|
240
245
|
await bundle.write({
|
|
241
246
|
dir: staticOutDir,
|
|
242
247
|
format: 'esm',
|
|
243
|
-
entryFileNames: '[name]-[hash].js',
|
|
248
|
+
entryFileNames: (chunk) => chunk.name === 'middleware' ? 'middleware.js' : '[name]-[hash].js',
|
|
244
249
|
chunkFileNames: 'chunks/[name]-[hash].js',
|
|
245
250
|
sourcemap: false,
|
|
246
251
|
})
|
|
@@ -250,4 +255,5 @@ export async function build (cliArgs = []) {
|
|
|
250
255
|
if (fs.existsSync(publicSrc)) {
|
|
251
256
|
fs.cpSync(publicSrc, publicOutDir, { recursive: true, force: true })
|
|
252
257
|
}
|
|
258
|
+
|
|
253
259
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/app",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.23.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"source": "./src/index.js",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"@babel/eslint-parser": "^7.15.8",
|
|
34
34
|
"@babel/preset-react": "^7.26.3",
|
|
35
35
|
"@babel/register": "^7.25.9",
|
|
36
|
-
"@ossy/connected-components": "^1.
|
|
37
|
-
"@ossy/design-system": "^1.
|
|
38
|
-
"@ossy/pages": "^1.
|
|
39
|
-
"@ossy/platform": "^1.
|
|
40
|
-
"@ossy/router": "^1.
|
|
41
|
-
"@ossy/router-react": "^1.
|
|
42
|
-
"@ossy/sdk": "^1.
|
|
43
|
-
"@ossy/sdk-react": "^1.
|
|
44
|
-
"@ossy/themes": "^1.
|
|
36
|
+
"@ossy/connected-components": "^1.23.0",
|
|
37
|
+
"@ossy/design-system": "^1.23.0",
|
|
38
|
+
"@ossy/pages": "^1.23.0",
|
|
39
|
+
"@ossy/platform": "^1.22.0",
|
|
40
|
+
"@ossy/router": "^1.23.0",
|
|
41
|
+
"@ossy/router-react": "^1.23.0",
|
|
42
|
+
"@ossy/sdk": "^1.23.0",
|
|
43
|
+
"@ossy/sdk-react": "^1.23.0",
|
|
44
|
+
"@ossy/themes": "^1.23.0",
|
|
45
45
|
"@rollup/plugin-alias": "^6.0.0",
|
|
46
46
|
"@rollup/plugin-babel": "^7.0.0",
|
|
47
47
|
"@rollup/plugin-commonjs": "^29.0.0",
|
|
@@ -75,5 +75,5 @@
|
|
|
75
75
|
"README.md",
|
|
76
76
|
"tsconfig.json"
|
|
77
77
|
],
|
|
78
|
-
"gitHead": "
|
|
78
|
+
"gitHead": "73f52533b78b2715ee1a97f774baea342d1606f5"
|
|
79
79
|
}
|