@bb-labs/bldr 0.0.1 → 0.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +17 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -134,13 +134,13 @@ async function main() {
134
134
  const rootDirAbs = path.isAbsolute(cfg.rootDir) ? cfg.rootDir : path.resolve(cfg.configDir, cfg.rootDir);
135
135
  const outDirAbs = path.isAbsolute(cfg.outDir) ? cfg.outDir : path.resolve(cfg.configDir, cfg.outDir);
136
136
  console.log([
137
- `\n[tsbuild] project: ${rel(cwd, tsconfigPath)}`,
138
- `[tsbuild] rootDir : ${rel(cwd, rootDirAbs)}`,
139
- `[tsbuild] outDir : ${rel(cwd, outDirAbs)}`,
140
- `[tsbuild] mode : ${args.watch ? "watch" : "build"}\n`,
137
+ `\n[bldr] project: ${rel(cwd, tsconfigPath)}`,
138
+ `[bldr] rootDir : ${rel(cwd, rootDirAbs)}`,
139
+ `[bldr] outDir : ${rel(cwd, outDirAbs)}`,
140
+ `[bldr] mode : ${args.watch ? "watch" : "build"}\n`,
141
141
  ].join("\n"));
142
142
  // Clean the output directory first
143
- console.log(`[tsbuild] cleaning output directory...`);
143
+ console.log(`[bldr] cleaning output directory...`);
144
144
  await rmIfExists(outDirAbs);
145
145
  const tscArgs = ["-p", tsconfigPath];
146
146
  const aliasArgs = ["-p", tsconfigPath];
@@ -152,7 +152,7 @@ async function main() {
152
152
  }
153
153
  catch (error) {
154
154
  // Clean up partial output on build failure
155
- console.error(`[tsbuild] build failed, cleaning output directory...`);
155
+ console.error(`[bldr] build failed, cleaning output directory...`);
156
156
  await rmIfExists(outDirAbs);
157
157
  throw error;
158
158
  }
@@ -165,9 +165,9 @@ async function main() {
165
165
  await run("tsc-alias", aliasArgs, cwd);
166
166
  }
167
167
  catch (error) {
168
- console.error(`[tsbuild] initial build failed: ${error}`);
168
+ console.error(`[bldr] initial build failed: ${error}`);
169
169
  // Continue in watch mode even if initial build fails
170
- console.log(`[tsbuild] continuing in watch mode...`);
170
+ console.log(`[bldr] continuing in watch mode...`);
171
171
  }
172
172
  // 2) Start watchers
173
173
  const tscWatch = spawnLongRunning("tsc", [...tscArgs, "-w"], cwd);
@@ -211,7 +211,7 @@ async function main() {
211
211
  });
212
212
  }
213
213
  catch (error) {
214
- console.error(`[tsbuild] error handling file deletion ${absPath}: ${error}`);
214
+ console.error(`[bldr] error handling file deletion ${absPath}: ${error}`);
215
215
  }
216
216
  });
217
217
  srcWatcher.on("unlinkDir", async (absDir) => {
@@ -219,32 +219,32 @@ async function main() {
219
219
  await cleaner.removeOutDirForSourceDir(absDir);
220
220
  }
221
221
  catch (error) {
222
- console.error(`[tsbuild] error handling directory deletion ${absDir}: ${error}`);
222
+ console.error(`[bldr] error handling directory deletion ${absDir}: ${error}`);
223
223
  }
224
224
  });
225
225
  // TypeScript compiler handles additions and changes automatically
226
226
  const shutdown = async () => {
227
- console.log("\n[tsbuild] shutting down...");
227
+ console.log("\n[bldr] shutting down...");
228
228
  try {
229
229
  srcWatcher.close();
230
- console.log("[tsbuild] src watcher closed");
230
+ console.log("[bldr] src watcher closed");
231
231
  }
232
232
  catch (error) {
233
- console.error(`[tsbuild] error closing src watcher: ${error}`);
233
+ console.error(`[bldr] error closing src watcher: ${error}`);
234
234
  }
235
235
  try {
236
236
  tscWatch.kill();
237
- console.log("[tsbuild] tsc watcher killed");
237
+ console.log("[bldr] tsc watcher killed");
238
238
  }
239
239
  catch (error) {
240
- console.error(`[tsbuild] error killing tsc watcher: ${error}`);
240
+ console.error(`[bldr] error killing tsc watcher: ${error}`);
241
241
  }
242
242
  try {
243
243
  aliasWatch.kill();
244
- console.log("[tsbuild] tsc-alias watcher killed");
244
+ console.log("[bldr] tsc-alias watcher killed");
245
245
  }
246
246
  catch (error) {
247
- console.error(`[tsbuild] error killing tsc-alias watcher: ${error}`);
247
+ console.error(`[bldr] error killing tsc-alias watcher: ${error}`);
248
248
  }
249
249
  process.exit(0);
250
250
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bb-labs/bldr",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "bin": {
5
5
  "bldr": "./dist/index.js"
6
6
  },