pmcf 1.54.6 → 1.54.7

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.
Files changed (2) hide show
  1. package/bin/pmcf-package +11 -8
  2. package/package.json +1 -1
package/bin/pmcf-package CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
3
  import { join } from "node:path";
4
- import { readFile } from "node:fs/promises";
4
+ import { readFile, mkdtemp } from "node:fs/promises";
5
5
  import { packageDirectory } from "pkg-dir";
6
6
  import {
7
7
  FileContentProvider,
@@ -15,9 +15,7 @@ const { root, args, options } = await prepare();
15
15
  const pkgDir = await packageDirectory({ cwd: options.root });
16
16
  const pkg = JSON.parse(await readFile(join(pkgDir, "package.json"), "utf8"));
17
17
 
18
- const publishingDetails = createPublishingDetails(options.publish, {
19
- ...process.env
20
- });
18
+ const publishingDetails = createPublishingDetails(options.publish, process.env);
21
19
 
22
20
  for (const name of args) {
23
21
  const object = await root.load(name);
@@ -29,18 +27,23 @@ for (const name of args) {
29
27
  console.log(properties);
30
28
 
31
29
  const output = new ARCH(properties);
32
- const sources = new FileContentProvider({ base: stagingDir})[Symbol.asyncIterator]();
30
+ const sources = new FileContentProvider({ base: stagingDir })[
31
+ Symbol.asyncIterator
32
+ ]();
33
+
34
+ const destination = await mkdtemp(output.constructor.name);
35
+ console.log(destination);
33
36
 
34
37
  const artifact = await output.create(sources, [], publishingDetails, {
35
38
  ...options,
36
- destination: "dist"
39
+ destination
37
40
  });
38
41
 
42
+ console.log(artifact);
43
+
39
44
  await Promise.all(
40
45
  publishingDetails.map(publishDetail =>
41
46
  output.publish(artifact, publishDetail, output.properties)
42
47
  )
43
48
  );
44
-
45
- console.log(artifact);
46
49
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.54.6",
3
+ "version": "1.54.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },