adnbn 0.2.0 → 0.2.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.
- package/dist/cli/index.cjs +25 -11
- package/dist/cli/index.cjs.map +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/package.json +3 -3
package/dist/cli/index.cjs
CHANGED
|
@@ -514,7 +514,7 @@ var EntrypointPlugin = class _EntrypointPlugin {
|
|
|
514
514
|
}
|
|
515
515
|
apply(compiler) {
|
|
516
516
|
this.plugin.apply(compiler);
|
|
517
|
-
compiler.hooks.entryOption.tap(this.pluginName, (
|
|
517
|
+
compiler.hooks.entryOption.tap(this.pluginName, (_29, entry) => {
|
|
518
518
|
this.hookEntryOption(entry);
|
|
519
519
|
});
|
|
520
520
|
if (this.update) {
|
|
@@ -1321,7 +1321,7 @@ var AbstractViewFinder_default = class extends AbstractPluginFinder_default {
|
|
|
1321
1321
|
return true;
|
|
1322
1322
|
}
|
|
1323
1323
|
async getAliasToFilename() {
|
|
1324
|
-
return Array.from(await this.views()).reduce((aliases, [
|
|
1324
|
+
return Array.from(await this.views()).reduce((aliases, [_29, item]) => {
|
|
1325
1325
|
return {
|
|
1326
1326
|
...aliases,
|
|
1327
1327
|
[item.alias]: item.filename
|
|
@@ -1883,7 +1883,7 @@ var OptionFile_default = class extends EntryFile {
|
|
|
1883
1883
|
ts12__default.default.forEachChild(node, parse);
|
|
1884
1884
|
};
|
|
1885
1885
|
parse(this.getSourceFile());
|
|
1886
|
-
return _9__default.default.pickBy(options, (
|
|
1886
|
+
return _9__default.default.pickBy(options, (_29, key) => this.properties.has(key));
|
|
1887
1887
|
}
|
|
1888
1888
|
getExpressionForOptions(expr) {
|
|
1889
1889
|
this.definition = null;
|
|
@@ -4030,7 +4030,7 @@ var LocaleValidator_default = class {
|
|
|
4030
4030
|
throw new LocaleError(
|
|
4031
4031
|
this.browser,
|
|
4032
4032
|
this.language,
|
|
4033
|
-
`Short name ${shortName} [${this.shortNameKey}] exceeds ${this.shortNameLimit} characters`
|
|
4033
|
+
`Short name "${shortName}" [${this.shortNameKey}] exceeds ${this.shortNameLimit} characters`
|
|
4034
4034
|
);
|
|
4035
4035
|
}
|
|
4036
4036
|
if (description && description.length > this.descriptionLimit) {
|
|
@@ -5269,15 +5269,15 @@ var output_default = definePlugin(() => {
|
|
|
5269
5269
|
bundler: ({ config }) => {
|
|
5270
5270
|
const { app, jsDir, jsFilename } = config;
|
|
5271
5271
|
const kebabApp = _9__default.default.kebabCase(app);
|
|
5272
|
-
const
|
|
5272
|
+
const camelApp = _9__default.default.camelCase(app);
|
|
5273
5273
|
const filename = appFilenameResolver(app, jsFilename, jsDir);
|
|
5274
5274
|
return {
|
|
5275
5275
|
output: {
|
|
5276
5276
|
path: getRootPath(getOutputPath(config)),
|
|
5277
5277
|
filename,
|
|
5278
5278
|
chunkFilename: filename,
|
|
5279
|
-
hotUpdateGlobal:
|
|
5280
|
-
chunkLoadingGlobal:
|
|
5279
|
+
hotUpdateGlobal: camelApp + "HotUpdate",
|
|
5280
|
+
chunkLoadingGlobal: camelApp + "ChunkLoading",
|
|
5281
5281
|
uniqueName: kebabApp
|
|
5282
5282
|
}
|
|
5283
5283
|
};
|
|
@@ -5565,6 +5565,20 @@ var Author_default = class extends AbstractMeta {
|
|
|
5565
5565
|
getValue() {
|
|
5566
5566
|
return this.config.author;
|
|
5567
5567
|
}
|
|
5568
|
+
isValid(value) {
|
|
5569
|
+
return _9__default.default.isString(value) && value.length > 0;
|
|
5570
|
+
}
|
|
5571
|
+
getResolved() {
|
|
5572
|
+
const value = this.getValue();
|
|
5573
|
+
let resolved = _9__default.default.isFunction(value) ? value() : value;
|
|
5574
|
+
if (!this.isValid(resolved)) {
|
|
5575
|
+
return;
|
|
5576
|
+
}
|
|
5577
|
+
resolved = getEnv(resolved, resolved);
|
|
5578
|
+
if (this.isValid(resolved)) {
|
|
5579
|
+
return resolved;
|
|
5580
|
+
}
|
|
5581
|
+
}
|
|
5568
5582
|
};
|
|
5569
5583
|
var Email_default = class extends AbstractMeta {
|
|
5570
5584
|
constructor(config) {
|
|
@@ -5968,7 +5982,7 @@ var Popup_default = class extends PopupFinder_default {
|
|
|
5968
5982
|
}
|
|
5969
5983
|
}
|
|
5970
5984
|
async manifestByAlias() {
|
|
5971
|
-
return Array.from(await this.views()).reduce((aliases, [
|
|
5985
|
+
return Array.from(await this.views()).reduce((aliases, [_29, item]) => {
|
|
5972
5986
|
const { options, filename } = item;
|
|
5973
5987
|
const { title, icon } = options;
|
|
5974
5988
|
return {
|
|
@@ -6116,7 +6130,7 @@ var Sidebar_default = class extends SidebarFinder_default {
|
|
|
6116
6130
|
}
|
|
6117
6131
|
}
|
|
6118
6132
|
async manifestByAlias() {
|
|
6119
|
-
return Array.from(await this.views()).reduce((aliases, [
|
|
6133
|
+
return Array.from(await this.views()).reduce((aliases, [_29, item]) => {
|
|
6120
6134
|
const { options, filename } = item;
|
|
6121
6135
|
const { title, icon } = options;
|
|
6122
6136
|
return {
|
|
@@ -6538,7 +6552,7 @@ var config_default = async (config) => {
|
|
|
6538
6552
|
app = "myapp",
|
|
6539
6553
|
version: version2 = "VERSION",
|
|
6540
6554
|
minimumVersion = "MINIMUM_VERSION",
|
|
6541
|
-
author =
|
|
6555
|
+
author = void 0,
|
|
6542
6556
|
email = "EMAIL",
|
|
6543
6557
|
homepage = "HOMEPAGE",
|
|
6544
6558
|
incognito,
|
|
@@ -7302,7 +7316,7 @@ var app_default = async (config) => {
|
|
|
7302
7316
|
|
|
7303
7317
|
// package.json
|
|
7304
7318
|
var name = "adnbn";
|
|
7305
|
-
var version = "0.2.
|
|
7319
|
+
var version = "0.2.2";
|
|
7306
7320
|
|
|
7307
7321
|
// src/cli/index.ts
|
|
7308
7322
|
var cli = cac__default.default(name);
|