pmcf 1.59.4 → 1.59.6
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/bin/pmcf-package +3 -2
- package/package.json +1 -1
- package/src/cmd.mjs +3 -0
- package/types/cmd.d.mts +1 -0
package/bin/pmcf-package
CHANGED
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
import { readFile, mkdtemp } from "node:fs/promises";
|
|
5
5
|
import { tmpdir } from "node:os";
|
|
6
|
+
import { env } from "node:process";
|
|
6
7
|
import { packageDirectory } from "pkg-dir";
|
|
7
8
|
import { FileContentProvider, createPublishingDetails } from "npm-pkgbuild";
|
|
8
9
|
import { prepare } from "../src/cmd.mjs";
|
|
10
|
+
import { asArray } from "../src/utils.mjs";
|
|
9
11
|
|
|
10
12
|
const { root, args, options } = await prepare();
|
|
11
13
|
|
|
@@ -15,9 +17,8 @@ if (!options.output) {
|
|
|
15
17
|
|
|
16
18
|
const pkgDir = await packageDirectory({ cwd: options.root });
|
|
17
19
|
const pkg = JSON.parse(await readFile(join(pkgDir, "package.json"), "utf8"));
|
|
18
|
-
const publishingDetails = createPublishingDetails(options.publish,
|
|
20
|
+
const publishingDetails = createPublishingDetails(asArray(options.publish), env);
|
|
19
21
|
|
|
20
|
-
console.log(publishingDetails);
|
|
21
22
|
for (const name of args) {
|
|
22
23
|
const object = await root.load(name);
|
|
23
24
|
const stagingDir = join(options.output, object.fullName);
|
package/package.json
CHANGED
package/src/cmd.mjs
CHANGED