@stacksjs/actions 0.58.49 → 0.58.51
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/dist/src/index.js +2 -0
- package/dist/src/release.js +2 -0
- package/dist/src/upgrade.js +1 -1
- package/package.json +1 -1
- package/src/action.ts +2 -0
- package/src/generate/custom-cli-file.ts +24 -0
package/dist/src/index.js
CHANGED
|
@@ -526,10 +526,12 @@ export default <Model> {
|
|
|
526
526
|
class Action3 {
|
|
527
527
|
name;
|
|
528
528
|
description;
|
|
529
|
+
longRunning;
|
|
529
530
|
handle;
|
|
530
531
|
constructor({ name, description, handle }) {
|
|
531
532
|
this.name = name;
|
|
532
533
|
this.description = description;
|
|
534
|
+
this.longRunning = false;
|
|
533
535
|
this.handle = handle;
|
|
534
536
|
}
|
|
535
537
|
}
|
package/dist/src/release.js
CHANGED
|
@@ -528,10 +528,12 @@ export default <Model> {
|
|
|
528
528
|
class Action3 {
|
|
529
529
|
name;
|
|
530
530
|
description;
|
|
531
|
+
longRunning;
|
|
531
532
|
handle;
|
|
532
533
|
constructor({ name, description, handle }) {
|
|
533
534
|
this.name = name;
|
|
534
535
|
this.description = description;
|
|
536
|
+
this.longRunning = false;
|
|
535
537
|
this.handle = handle;
|
|
536
538
|
}
|
|
537
539
|
}
|
package/dist/src/upgrade.js
CHANGED
|
@@ -6,7 +6,7 @@ import {log} from "@stacksjs/logging";
|
|
|
6
6
|
import {projectPath} from "@stacksjs/path";
|
|
7
7
|
import * as storage from "@stacksjs/storage";
|
|
8
8
|
// package.json
|
|
9
|
-
var version = "0.58.
|
|
9
|
+
var version = "0.58.51";
|
|
10
10
|
|
|
11
11
|
// src/upgrade.ts
|
|
12
12
|
function checkForUncommittedChanges(options2) {
|
package/package.json
CHANGED
package/src/action.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
export class Action {
|
|
2
2
|
name: string
|
|
3
3
|
description: string
|
|
4
|
+
longRunning: boolean
|
|
4
5
|
handle: () => Promise<string>
|
|
5
6
|
|
|
6
7
|
constructor({ name, description, handle }: { name: string, description: string, handle: () => Promise<string> }) {
|
|
7
8
|
this.name = name
|
|
8
9
|
this.description = description
|
|
10
|
+
this.longRunning = false // TODO: Implement long running actions
|
|
9
11
|
this.handle = handle
|
|
10
12
|
}
|
|
11
13
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import process from 'node:process'
|
|
2
|
+
import { ExitCode } from '@stacksjs/types'
|
|
3
|
+
import { writeTextFile } from '@stacksjs/storage'
|
|
4
|
+
import { projectPath } from '@stacksjs/path'
|
|
5
|
+
import { cli } from '@stacksjs/config'
|
|
6
|
+
|
|
7
|
+
log.info('Creating Vue Component Library Entry Point...')
|
|
8
|
+
|
|
9
|
+
if (!cli.command) {
|
|
10
|
+
log.error('No command defined in the CLI configuration')
|
|
11
|
+
process.exit(ExitCode.FatalError)
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
await writeTextFile({
|
|
15
|
+
path: projectPath(cli.command),
|
|
16
|
+
data: `#!/usr/bin/env bun
|
|
17
|
+
import('./storage/framework/core/buddy/src/custom-cli')
|
|
18
|
+
`,
|
|
19
|
+
}).catch((err) => {
|
|
20
|
+
log.error('There was an error generating your custom CLI file.', err)
|
|
21
|
+
process.exit(ExitCode.FatalError)
|
|
22
|
+
})
|
|
23
|
+
|
|
24
|
+
log.success('Generated custom CLI file')
|