adnbn 0.0.42 → 0.0.43
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/cli/index.cjs +12 -2
- package/dist/cli/index.cjs.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.cjs
CHANGED
|
@@ -3297,9 +3297,16 @@ var FileBuilder_default = class {
|
|
|
3297
3297
|
constructor(config) {
|
|
3298
3298
|
this.config = config;
|
|
3299
3299
|
}
|
|
3300
|
+
withBanner() {
|
|
3301
|
+
return true;
|
|
3302
|
+
}
|
|
3300
3303
|
build() {
|
|
3301
3304
|
const systemDirPath = getRootPath(getInputPath(this.config, SystemDir));
|
|
3302
|
-
|
|
3305
|
+
let content = this.content();
|
|
3306
|
+
if (this.withBanner()) {
|
|
3307
|
+
const banner = "// This file is automatically generated. \n\n";
|
|
3308
|
+
content = `${banner}${content}`;
|
|
3309
|
+
}
|
|
3303
3310
|
fs2__default.default.mkdirSync(systemDirPath, { recursive: true });
|
|
3304
3311
|
fs2__default.default.writeFileSync(path6__default.default.join(systemDirPath, this.filename()), content);
|
|
3305
3312
|
return this;
|
|
@@ -3314,6 +3321,9 @@ var TypescriptConfig_default = class extends FileBuilder_default {
|
|
|
3314
3321
|
filename() {
|
|
3315
3322
|
return "tsconfig.json";
|
|
3316
3323
|
}
|
|
3324
|
+
withBanner() {
|
|
3325
|
+
return false;
|
|
3326
|
+
}
|
|
3317
3327
|
content() {
|
|
3318
3328
|
return JSON.stringify(this.json(), null, 2);
|
|
3319
3329
|
}
|
|
@@ -4528,7 +4538,7 @@ var app_default = async (config) => {
|
|
|
4528
4538
|
|
|
4529
4539
|
// package.json
|
|
4530
4540
|
var name = "adnbn";
|
|
4531
|
-
var version = "0.0.
|
|
4541
|
+
var version = "0.0.42";
|
|
4532
4542
|
|
|
4533
4543
|
// src/cli/index.ts
|
|
4534
4544
|
var cli = cac__default.default(name);
|