pmcf 1.59.4 → 1.59.5

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 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,8 +17,9 @@ 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, process.env);
20
+ const publishingDetails = createPublishingDetails(asArray(options.publish), env);
19
21
 
22
+ console.log(env);
20
23
  console.log(publishingDetails);
21
24
  for (const name of args) {
22
25
  const object = await root.load(name);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.59.4",
3
+ "version": "1.59.5",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
package/src/cmd.mjs CHANGED
@@ -11,6 +11,9 @@ export async function prepare() {
11
11
  short: "v",
12
12
  default: false
13
13
  },
14
+ publish: {
15
+ type: "string",
16
+ },
14
17
  root: {
15
18
  type: "string",
16
19
  short: "r",
package/types/cmd.d.mts CHANGED
@@ -2,6 +2,7 @@ export function prepare(): Promise<{
2
2
  root: Root;
3
3
  options: {
4
4
  verbose: boolean;
5
+ publish: string;
5
6
  root: string;
6
7
  output: string;
7
8
  };