adnbn 0.0.29 → 0.0.30
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 +6 -6
- package/dist/cli/index.cjs.map +1 -1
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/cli/index.cjs
CHANGED
|
@@ -3434,9 +3434,9 @@ var watch = (compiler) => {
|
|
|
3434
3434
|
var import_dotenv = __toESM(require_main());
|
|
3435
3435
|
|
|
3436
3436
|
// src/core/define.ts
|
|
3437
|
-
|
|
3437
|
+
function definePlugin(plugin) {
|
|
3438
3438
|
return plugin;
|
|
3439
|
-
}
|
|
3439
|
+
}
|
|
3440
3440
|
|
|
3441
3441
|
// src/cli/plugins/dotenv.ts
|
|
3442
3442
|
var dotenv_default = definePlugin((vars = {}) => {
|
|
@@ -4130,7 +4130,7 @@ import _isString from "lodash/isString";
|
|
|
4130
4130
|
import _isEmpty from "lodash/isEmpty";
|
|
4131
4131
|
|
|
4132
4132
|
try {
|
|
4133
|
-
const
|
|
4133
|
+
const commandName = 'virtual:command-name';
|
|
4134
4134
|
|
|
4135
4135
|
const {default: defaultDefinition, ...otherDefinition} = module;
|
|
4136
4136
|
|
|
@@ -4139,10 +4139,10 @@ try {
|
|
|
4139
4139
|
if (_isPlainObject(defaultDefinition)) {
|
|
4140
4140
|
definition = {...definition, ...defaultDefinition};
|
|
4141
4141
|
} else if (_isFunction(defaultDefinition)) {
|
|
4142
|
-
definition = {...definition,
|
|
4142
|
+
definition = {...definition, execute: defaultDefinition};
|
|
4143
4143
|
}
|
|
4144
4144
|
|
|
4145
|
-
const {execute, name =
|
|
4145
|
+
const {execute, name = commandName, ...options} = definition;
|
|
4146
4146
|
|
|
4147
4147
|
if (!_isFunction(execute)) {
|
|
4148
4148
|
throw new Error('The command entrypoint must export a execute function');
|
|
@@ -4928,7 +4928,7 @@ var app_default = async (config) => {
|
|
|
4928
4928
|
};
|
|
4929
4929
|
|
|
4930
4930
|
// package.json
|
|
4931
|
-
var version = "0.0.
|
|
4931
|
+
var version = "0.0.29";
|
|
4932
4932
|
|
|
4933
4933
|
// src/cli/index.ts
|
|
4934
4934
|
var cli = cac__default.default("adnbn");
|