Skip to content

Commit ab7ae02

Browse files
committed
Patch the aliases run method
1 parent 4107aec commit ab7ae02

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ class Main {
360360
});
361361
},
362362
check: () => {
363-
if (!utils.is.realObject(this.#_helpers.aliases)) { return }
363+
if (!(utils.is.realObject(this.#_config.aliases) && Object.keys(this.#_config.aliases))) { return }
364364
const aliasPatterns = this.#_helpers.aliases.getPatterns();
365365
if (this.#_config.esmDir) {
366366
this.#_helpers.aliases.processFiles(this.#_config.esmDir, aliasPatterns);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nasriya/postbuild",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"description": "A package that does some tasks after compilation",
55
"main": "main.js",
66
"type": "module",

0 commit comments

Comments
 (0)