Skip to content

Commit fae2f57

Browse files
committed
chore: wip
1 parent c3dc954 commit fae2f57

File tree

3 files changed

+12
-9
lines changed

3 files changed

+12
-9
lines changed

storage/framework/core/cli/build.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// import { dts } from 'bun-plugin-dts-auto'
12
import { intro, outro } from '../build/src'
23
import { dts } from './dts'
34

@@ -22,7 +23,11 @@ const result = await Bun.build({
2223
'@stacksjs/collections',
2324
],
2425

25-
plugins: [dts()],
26+
plugins: [
27+
dts({
28+
root: './src',
29+
}),
30+
],
2631
})
2732

2833
await outro({

storage/framework/core/cli/src/actions/install.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ interface InstallPackageOptions {
1010
additionalArgs?: string[]
1111
}
1212

13+
// TODO: improve return types here
14+
1315
/**
1416
* Install an npm package.
1517
*
1618
* @param name - The package name to install.
1719
* @param options - The options to pass to the install.The options to pass to the install.
1820
* @returns The result of the install.
1921
*/
20-
export async function installPackage(name: string, options?: InstallPackageOptions) {
22+
export async function installPackage(name: string, options?: InstallPackageOptions): Promise<any> {
2123
if (options) return await installPkg(name, options)
2224

2325
return await installPkg(name, { silent: true })
@@ -30,7 +32,7 @@ export async function installPackage(name: string, options?: InstallPackageOptio
3032
* @param options - The options to pass to the install.
3133
* @returns The result of the install.
3234
*/
33-
export async function installStack(name: string, options?: InstallPackageOptions) {
35+
export async function installStack(name: string, options?: InstallPackageOptions): Promise<any> {
3436
if (options) return await installPkg(`@stacksjs/${name}`, options)
3537

3638
return await installPkg(`@stacksjs/${name}`, { silent: true })
Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"compilerOptions": {
3-
// "isolatedDeclarations": true,
4-
"rootDir": "./src",
5-
"outDir": "./dist",
6-
"baseUrl": "."
3+
"isolatedDeclarations": true,
4+
"outDir": "./dist"
75
},
8-
"include": ["src/**/*"],
9-
"exclude": ["node_modules", "dist"],
106
"extends": "../tsconfig.json"
117
}

0 commit comments

Comments
 (0)