@stacksjs/build 0.62.0 → 0.63.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/dist/index.js +23 -46
- package/dist/index.js.map +186 -0
- package/package.json +1 -5
- package/src/index.ts +5 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/build",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.63.1",
|
|
5
5
|
"description": "The Stacks framework build tools and configurations.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"license": "MIT",
|
|
@@ -50,10 +50,6 @@
|
|
|
50
50
|
"typecheck": "bun --bun tsc --noEmit",
|
|
51
51
|
"prepublishOnly": "bun run build"
|
|
52
52
|
},
|
|
53
|
-
"peerDependencies": {
|
|
54
|
-
"bun-plugin-dts-auto": "^0.11.1",
|
|
55
|
-
"vue-docgen-web-types": "^0.1.8"
|
|
56
|
-
},
|
|
57
53
|
"dependencies": {
|
|
58
54
|
"@stacksjs/cli": "latest",
|
|
59
55
|
"@stacksjs/path": "latest",
|
package/src/index.ts
CHANGED
|
@@ -7,10 +7,11 @@ export async function outro(options: {
|
|
|
7
7
|
dir: string
|
|
8
8
|
startTime: number
|
|
9
9
|
result: any
|
|
10
|
+
pkgName?: string
|
|
10
11
|
}) {
|
|
11
12
|
const endTime = Date.now()
|
|
12
13
|
const timeTaken = endTime - options.startTime
|
|
13
|
-
const pkgName = `@stacksjs/${p.basename(options.dir)}`
|
|
14
|
+
const pkgName = options.pkgName ?? `@stacksjs/${p.basename(options.dir)}`
|
|
14
15
|
|
|
15
16
|
if (!options.result.success) {
|
|
16
17
|
console.log(options.result.logs[0])
|
|
@@ -18,7 +19,7 @@ export async function outro(options: {
|
|
|
18
19
|
}
|
|
19
20
|
|
|
20
21
|
// loop over all the files in the dist directory and log them and their size
|
|
21
|
-
const files = await glob(p.resolve(options.dir, 'dist', '
|
|
22
|
+
const files = await glob(p.resolve(options.dir, 'dist', '**/*'))
|
|
22
23
|
for (const file of files) {
|
|
23
24
|
const stats = await fs.stat(file)
|
|
24
25
|
|
|
@@ -38,8 +39,8 @@ export async function outro(options: {
|
|
|
38
39
|
log.success(`${bold(dim(`[${timeTaken}ms]`))} Built ${italic(bold(green(pkgName)))}`)
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
export async function intro(options: { dir: string }) {
|
|
42
|
-
const pkgName = `@stacksjs/${p.basename(options.dir)}`
|
|
42
|
+
export async function intro(options: { dir: string; pkgName?: string }) {
|
|
43
|
+
const pkgName = options.pkgName ?? `@stacksjs/${p.basename(options.dir)}`
|
|
43
44
|
|
|
44
45
|
log.info(`Building ${italic(pkgName)}...`)
|
|
45
46
|
const startTime = Date.now()
|