pmcf 1.54.0 → 1.54.2

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 +3 -6
  2. package/package.json +2 -2
package/bin/pmcf-package CHANGED
@@ -3,7 +3,6 @@
3
3
  import { join } from "node:path";
4
4
  import { readFile } from "node:fs/promises";
5
5
  import { packageDirectory } from "pkg-dir";
6
-
7
6
  import {
8
7
  FileContentProvider,
9
8
  createPublishingDetails,
@@ -14,20 +13,18 @@ import { prepare } from "../src/cmd.mjs";
14
13
  const { root, args, options } = await prepare();
15
14
 
16
15
  const objectName = args[0];
17
- const object = await root.load(objectName);
18
16
 
19
17
  const pkgDir = await packageDirectory({ cwd: options.root });
20
-
21
18
  const pkg = JSON.parse(await readFile(join(pkgDir,'package.json'), "utf8"));
22
19
 
23
-
24
- console.log(object);
25
20
  const publishingDetails = createPublishingDetails(["somewhere"]);
26
21
 
22
+ const object = await root.load(objectName);
23
+
27
24
  const { properties } = await object.preparePackage(options.output);
28
25
 
29
26
  properties.version = pkg.version;
30
-
27
+ properties.license = pkg.license;
31
28
  console.log(properties);
32
29
 
33
30
  const sources = [options.output].map(base =>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pmcf",
3
- "version": "1.54.0",
3
+ "version": "1.54.2",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -38,7 +38,7 @@
38
38
  "lint:typescript": "tsc --allowJs --checkJs --noEmit --resolveJsonModule --target es2024 --lib esnext -m esnext --module nodenext --moduleResolution nodenext ./src**/*.mjs"
39
39
  },
40
40
  "dependencies": {
41
- "npm-pkgbuild": "^16.1.1",
41
+ "npm-pkgbuild": "^17.0.0",
42
42
  "pacc": "^3.3.0",
43
43
  "pkg-dir": "^8.0.0"
44
44
  },