Skip to content

Commit 9bc89c9

Browse files
authored
Fix package not being read from local config (#72)
1 parent df0d036 commit 9bc89c9

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

commands/package.mjs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,13 @@ import { compilePack, extractPack, TYPE_COLLECTION_MAP } from "../lib/package.mj
3636
* The working package ID.
3737
* @type {string|null}
3838
*/
39-
let currentPackageId = Config.instance.get("currentPackageId");
39+
let currentPackageId = null;
4040

4141
/**
4242
* The working package type.
4343
* @type {PackageType|null}
4444
*/
45-
let currentPackageType = Config.instance.get("currentPackageType");
45+
let currentPackageType = null;
4646

4747
/**
4848
* Get the command object for the package command
@@ -142,6 +142,8 @@ export function getCommand() {
142142
return yargs;
143143
},
144144
handler: async argv => {
145+
currentPackageId = Config.instance.get("currentPackageId");
146+
currentPackageType = Config.instance.get("currentPackageType");
145147
if ( argv.id ) currentPackageId = argv.id;
146148
if ( argv.type ) currentPackageType = argv.type;
147149

0 commit comments

Comments
 (0)