@ossy/app 1.25.0 → 1.25.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.
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
- "// Generated by @ossy/app — do not edit",
115
- "import { createTaskEntry } from '@ossy/app/runtime/task-runtime'",
116
- `import * as task from '${importPath}'`,
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.0",
3
+ "version": "1.25.1",
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.0",
41
- "@ossy/design-system": "^1.25.0",
40
+ "@ossy/connected-components": "^1.25.1",
41
+ "@ossy/design-system": "^1.25.1",
42
42
  "@ossy/pages": "^1.23.0",
43
- "@ossy/platform": "^1.24.0",
44
- "@ossy/router": "^1.25.0",
45
- "@ossy/router-react": "^1.25.0",
46
- "@ossy/sdk": "^1.25.0",
47
- "@ossy/sdk-react": "^1.25.0",
48
- "@ossy/themes": "^1.25.0",
43
+ "@ossy/platform": "^1.24.1",
44
+ "@ossy/router": "^1.25.1",
45
+ "@ossy/router-react": "^1.25.1",
46
+ "@ossy/sdk": "^1.25.1",
47
+ "@ossy/sdk-react": "^1.25.1",
48
+ "@ossy/themes": "^1.25.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": "9b116b6a4fadd570c1e6c0c6d9a4867448f7410c"
82
+ "gitHead": "c8a5e5af59c1975ea8e0c5a974202c6c146236c3"
83
83
  }
@@ -1,11 +1,11 @@
1
1
  export function createTaskEntry (taskModule) {
2
2
  const metadata = taskModule.metadata || {}
3
- const handler = taskModule.default
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 default export to run')
8
+ throw new Error('[@ossy/app][task] No exported "run" function to call')
9
9
  }
10
10
  return handler(context)
11
11
  },