@vertesia/create-worker 0.81.1 → 0.82.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertesia/create-worker",
3
- "version": "0.81.1",
3
+ "version": "0.82.0",
4
4
  "description": "Initialize workflow worker package (deprecated - use @vertesia/create-plugin instead)",
5
5
  "type": "module",
6
6
  "bin": {
package/lib/main.d.ts DELETED
@@ -1,9 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * @vertesia/create-worker
4
- *
5
- * This package has been deprecated in favor of @vertesia/create-plugin.
6
- * It now acts as a thin wrapper that redirects to create-plugin with the worker template pre-selected.
7
- */
8
- export {};
9
- //# sourceMappingURL=main.d.ts.map
package/lib/main.d.ts.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AAEA;;;;;GAKG"}
package/lib/main.js DELETED
@@ -1,53 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * @vertesia/create-worker
4
- *
5
- * This package has been deprecated in favor of @vertesia/create-plugin.
6
- * It now acts as a thin wrapper that redirects to create-plugin with the worker template pre-selected.
7
- */
8
- import { spawn } from 'child_process';
9
- const DEPRECATION_MESSAGE = `
10
- ┌─────────────────────────────────────────────────────────────────────────────┐
11
- │ │
12
- │ ⚠️ @vertesia/create-worker is deprecated │
13
- │ │
14
- │ Please use @vertesia/create-plugin instead: │
15
- │ │
16
- │ pnpm create @vertesia/plugin my-worker │
17
- │ npm create @vertesia/plugin my-worker │
18
- │ │
19
- │ Then select "Vertesia Workflow Worker" from the template list. │
20
- │ │
21
- │ Continuing with legacy behavior for backwards compatibility... │
22
- │ │
23
- └─────────────────────────────────────────────────────────────────────────────┘
24
- `;
25
- async function main(argv) {
26
- console.log(DEPRECATION_MESSAGE);
27
- const projectName = argv[2];
28
- if (!projectName) {
29
- console.error('Please specify a project name:');
30
- console.error(' npx @vertesia/create-worker my-worker');
31
- process.exit(1);
32
- }
33
- // Forward to create-plugin - user will need to select the worker template
34
- console.log('Launching @vertesia/create-plugin...\n');
35
- const child = spawn('npx', ['@vertesia/create-plugin', projectName], {
36
- stdio: 'inherit',
37
- shell: true
38
- });
39
- child.on('close', (code) => {
40
- process.exit(code || 0);
41
- });
42
- child.on('error', (err) => {
43
- console.error('Failed to launch create-plugin:', err.message);
44
- console.error('\nPlease install and run create-plugin directly:');
45
- console.error(` npx @vertesia/create-plugin ${projectName}`);
46
- process.exit(1);
47
- });
48
- }
49
- main(process.argv).catch(err => {
50
- console.error("Error: ", err);
51
- process.exit(1);
52
- });
53
- //# sourceMappingURL=main.js.map
package/lib/main.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"main.js","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":";AAEA;;;;;GAKG;AAEH,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,MAAM,mBAAmB,GAAG;;;;;;;;;;;;;;;CAe3B,CAAC;AAEF,KAAK,UAAU,IAAI,CAAC,IAAc;IAC9B,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;IAEjC,MAAM,WAAW,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC;IAE5B,IAAI,CAAC,WAAW,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,gCAAgC,CAAC,CAAC;QAChD,OAAO,CAAC,KAAK,CAAC,yCAAyC,CAAC,CAAC;QACzD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACpB,CAAC;IAED,0EAA0E;IAC1E,OAAO,CAAC,GAAG,CAAC,wCAAwC,CAAC,CAAC;IAEtD,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,EAAE,CAAC,yBAAyB,EAAE,WAAW,CAAC,EAAE;QACjE,KAAK,EAAE,SAAS;QAChB,KAAK,EAAE,IAAI;KACd,CAAC,C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