@bunit/build 0.0.3 → 0.0.4

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.
@@ -11,4 +11,4 @@ export declare function transformModule(entryPath: string, entryDistPath: string
11
11
  /**
12
12
  * Generate type declarations using TypeScript Compiler API.
13
13
  */
14
- export declare function generateDeclarations(entry: TransformEntry): Promise<void>;
14
+ export declare function generateDeclarations(ctx: BuildContext, entry: TransformEntry): Promise<void>;
package/dist/cli.mjs CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env bun
2
2
  // @bun
3
- import{c as d}from"./_chunks/index-pr420ekh.mjs";import"./_chunks/index-7fhf6mty.mjs";import{defineCommand as u,runMain as l}from"citty";import{loadConfig as p}from"c12";var c=u({meta:{name:"build",version:"0.0.0",description:"Build your project with Bun"},args:{dir:{type:"string",description:"Project root directory",default:"."},stub:{type:"boolean",description:"Generate stub builds (re-export source files)",default:!1},entries:{type:"positional",description:"Build entries (e.g., src/index.ts or src/)",required:!1}},async run({args:i}){let{config:r={}}=await p({name:"build",configFile:"build.config",cwd:i.dir}),n=i.entries?Array.isArray(i.entries)?i.entries:[i.entries]:r.entries||[],o=n.map((e)=>{if(typeof e==="string"){let[t,s]=e.split(":");return t.endsWith("/")?{type:"transform",input:t,outDir:s}:{type:"bundle",input:t.split(","),outDir:s}}return e});if(i.stub)for(let e of o)e.stub=!0;if(n.length===0)console.error("No build entries specified."),process.exit(1);await d({cwd:i.dir,...r,entries:o})}});l(c);
3
+ import{d}from"./_chunks/index-ywe4p313.mjs";import"./_chunks/index-364t643j.mjs";import{defineCommand as u,runMain as l}from"citty";import{loadConfig as p}from"c12";var c=u({meta:{name:"build",version:"0.0.0",description:"Build your project with Bun"},args:{dir:{type:"string",description:"Project root directory",default:"."},stub:{type:"boolean",description:"Generate stub builds (re-export source files)",default:!1},entries:{type:"positional",description:"Build entries (e.g., src/index.ts or src/)",required:!1}},async run({args:i}){let{config:r={}}=await p({name:"build",configFile:"build.config",cwd:i.dir}),n=i.entries?Array.isArray(i.entries)?i.entries:[i.entries]:r.entries||[],o=n.map((e)=>{if(typeof e==="string"){let[t,s]=e.split(":");return t.endsWith("/")?{type:"transform",input:t,outDir:s}:{type:"bundle",input:t.split(","),outDir:s}}return e});if(i.stub)for(let e of o)e.stub=!0;if(n.length===0)console.error("No build entries specified."),process.exit(1);await d({cwd:i.dir,...r,entries:o})}});l(c);
package/dist/config.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import"./_chunks/index-7fhf6mty.mjs";function n(i){return i}export{n as defineBuildConfig};
2
+ import"./_chunks/index-364t643j.mjs";function n(i){return i}export{n as defineBuildConfig};
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
1
  // @bun
2
- import{a as g,b as j,c as k}from"./_chunks/index-pr420ekh.mjs";import"./_chunks/index-7fhf6mty.mjs";export{g as fmtPath,k as build,j as analyzeDir};
2
+ import{a as g,b as j,c as k,d as q}from"./_chunks/index-ywe4p313.mjs";import"./_chunks/index-364t643j.mjs";export{j as fmtPath,g as detectExports,q as build,k as analyzeDir};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bunit/build",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "A blazing-fast build tool powered by Bun for TypeScript libraries with flexible bundling and transformation modes",
5
5
  "keywords": [
6
6
  "build",
package/dist/utils.d.ts DELETED
@@ -1,5 +0,0 @@
1
- export declare function fmtPath(path: string, cwd?: string): string;
2
- export declare function analyzeDir(dir: string | string[]): {
3
- size: number;
4
- files: number;
5
- };