@ossy/app 1.25.0 → 1.25.2
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 +4 -7
- package/package.json +10 -10
- package/runtime/task-runtime.js +2 -2
package/cli/build.task.js
CHANGED
|
@@ -111,13 +111,10 @@ function generateApiStub ({ stubAbs, sourceAbs }) {
|
|
|
111
111
|
function generateTaskStub ({ stubAbs, sourceAbs }) {
|
|
112
112
|
const importPath = relImport(stubAbs, sourceAbs)
|
|
113
113
|
return [
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
'',
|
|
118
|
-
'const entry = createTaskEntry(task)',
|
|
119
|
-
'export const metadata = entry.metadata',
|
|
120
|
-
'export const run = entry.run',
|
|
114
|
+
'// Generated by @ossy/app — do not edit',
|
|
115
|
+
`import * as _task from '${importPath}'`,
|
|
116
|
+
'export const metadata = _task.metadata',
|
|
117
|
+
'export const run = _task.run ?? _task.default',
|
|
121
118
|
'',
|
|
122
119
|
].join('\n')
|
|
123
120
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ossy/app",
|
|
3
|
-
"version": "1.25.
|
|
3
|
+
"version": "1.25.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"source": "./src/index.js",
|
|
6
6
|
"main": "./src/index.js",
|
|
@@ -37,15 +37,15 @@
|
|
|
37
37
|
"@babel/eslint-parser": "^7.15.8",
|
|
38
38
|
"@babel/preset-react": "^7.26.3",
|
|
39
39
|
"@babel/register": "^7.25.9",
|
|
40
|
-
"@ossy/connected-components": "^1.25.
|
|
41
|
-
"@ossy/design-system": "^1.25.
|
|
40
|
+
"@ossy/connected-components": "^1.25.2",
|
|
41
|
+
"@ossy/design-system": "^1.25.2",
|
|
42
42
|
"@ossy/pages": "^1.23.0",
|
|
43
|
-
"@ossy/platform": "^1.24.
|
|
44
|
-
"@ossy/router": "^1.25.
|
|
45
|
-
"@ossy/router-react": "^1.25.
|
|
46
|
-
"@ossy/sdk": "^1.25.
|
|
47
|
-
"@ossy/sdk-react": "^1.25.
|
|
48
|
-
"@ossy/themes": "^1.25.
|
|
43
|
+
"@ossy/platform": "^1.24.2",
|
|
44
|
+
"@ossy/router": "^1.25.2",
|
|
45
|
+
"@ossy/router-react": "^1.25.2",
|
|
46
|
+
"@ossy/sdk": "^1.25.2",
|
|
47
|
+
"@ossy/sdk-react": "^1.25.2",
|
|
48
|
+
"@ossy/themes": "^1.25.2",
|
|
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": "
|
|
82
|
+
"gitHead": "6e44e53bf3c9b5c14c5bc2b0a02e60a590389b55"
|
|
83
83
|
}
|
package/runtime/task-runtime.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
export function createTaskEntry (taskModule) {
|
|
2
2
|
const metadata = taskModule.metadata || {}
|
|
3
|
-
const handler = taskModule.
|
|
3
|
+
const handler = taskModule.run
|
|
4
4
|
return {
|
|
5
5
|
metadata,
|
|
6
6
|
async run (context) {
|
|
7
7
|
if (typeof handler !== 'function') {
|
|
8
|
-
throw new Error('[@ossy/app][task] No
|
|
8
|
+
throw new Error('[@ossy/app][task] No exported "run" function to call')
|
|
9
9
|
}
|
|
10
10
|
return handler(context)
|
|
11
11
|
},
|