@stacksjs/cli 0.65.0 → 0.67.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/dist/index.js +21640 -12
- package/dist/utils.d.ts +1 -1
- package/package.json +11 -13
- package/dist/index.js.map +0 -120
- package/src/actions/index.ts +0 -1
- package/src/actions/install.ts +0 -41
- package/src/app.ts +0 -777
- package/src/cli.ts +0 -30
- package/src/command.ts +0 -54
- package/src/console.ts +0 -4
- package/src/exec.ts +0 -140
- package/src/helpers.ts +0 -79
- package/src/index.ts +0 -10
- package/src/parse.ts +0 -182
- package/src/run.ts +0 -112
- package/src/spinner.ts +0 -3
- package/src/utils.ts +0 -83
package/src/actions/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './install'
|
package/src/actions/install.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { installPackage as installPkg } from '@antfu/install-pkg'
|
|
2
|
-
|
|
3
|
-
interface InstallPackageOptions {
|
|
4
|
-
cwd?: string
|
|
5
|
-
dev?: boolean
|
|
6
|
-
silent?: boolean
|
|
7
|
-
packageManager?: string
|
|
8
|
-
packageManagerVersion?: string
|
|
9
|
-
preferOffline?: boolean
|
|
10
|
-
additionalArgs?: string[]
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
// TODO: improve return types here
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* Install an npm package.
|
|
17
|
-
*
|
|
18
|
-
* @param name - The package name to install.
|
|
19
|
-
* @param options - The options to pass to the install.The options to pass to the install.
|
|
20
|
-
* @returns The result of the install.
|
|
21
|
-
*/
|
|
22
|
-
export async function installPackage(name: string, options?: InstallPackageOptions): Promise<any> {
|
|
23
|
-
if (options)
|
|
24
|
-
return await installPkg(name, options)
|
|
25
|
-
|
|
26
|
-
return await installPkg(name, { silent: true })
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Install a Stack into your project.
|
|
31
|
-
*
|
|
32
|
-
* @param name - The Stack name to install.
|
|
33
|
-
* @param options - The options to pass to the install.
|
|
34
|
-
* @returns The result of the install.
|
|
35
|
-
*/
|
|
36
|
-
export async function installStack(name: string, options?: InstallPackageOptions): Promise<any> {
|
|
37
|
-
if (options)
|
|
38
|
-
return await installPkg(`@stacksjs/${name}`, options)
|
|
39
|
-
|
|
40
|
-
return await installPkg(`@stacksjs/${name}`, { silent: true })
|
|
41
|
-
}
|