pmcf 1.54.3 → 1.54.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 +16 -21
- package/package.json +2 -2
package/bin/pmcf-package
CHANGED
|
@@ -12,32 +12,27 @@ import { prepare } from "../src/cmd.mjs";
|
|
|
12
12
|
|
|
13
13
|
const { root, args, options } = await prepare();
|
|
14
14
|
|
|
15
|
-
const objectName = args[0];
|
|
16
|
-
|
|
17
15
|
const pkgDir = await packageDirectory({ cwd: options.root });
|
|
18
|
-
const pkg = JSON.parse(await readFile(join(pkgDir,
|
|
16
|
+
const pkg = JSON.parse(await readFile(join(pkgDir, "package.json"), "utf8"));
|
|
19
17
|
|
|
20
18
|
const publishingDetails = createPublishingDetails(["somewhere"]);
|
|
21
19
|
|
|
22
|
-
const
|
|
23
|
-
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
properties.version = pkg.version;
|
|
27
|
-
properties.license = pkg.license;
|
|
28
|
-
console.log(properties);
|
|
20
|
+
for (const name of args) {
|
|
21
|
+
const object = await root.load(name);
|
|
22
|
+
const stagingDir = join(options.output, object.fullName);
|
|
23
|
+
const { properties } = await object.preparePackage(stagingDir);
|
|
29
24
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
})[Symbol.asyncIterator]()
|
|
34
|
-
);
|
|
25
|
+
properties.version = pkg.version;
|
|
26
|
+
properties.license = pkg.license;
|
|
27
|
+
console.log(properties);
|
|
35
28
|
|
|
36
|
-
const output = new ARCH(properties);
|
|
29
|
+
const output = new ARCH(properties);
|
|
30
|
+
const sources = new FileContentProvider({ base: stagingDir})[Symbol.asyncIterator]();
|
|
37
31
|
|
|
38
|
-
const fileName = await output.create(sources, [], publishingDetails, {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
});
|
|
32
|
+
const fileName = await output.create(sources, [], publishingDetails, {
|
|
33
|
+
...options,
|
|
34
|
+
destination: "dist"
|
|
35
|
+
});
|
|
42
36
|
|
|
43
|
-
console.log(fileName);
|
|
37
|
+
console.log(fileName);
|
|
38
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pmcf",
|
|
3
|
-
"version": "1.54.
|
|
3
|
+
"version": "1.54.5",
|
|
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": "^17.0.
|
|
41
|
+
"npm-pkgbuild": "^17.0.1",
|
|
42
42
|
"pacc": "^3.3.0",
|
|
43
43
|
"pkg-dir": "^8.0.0"
|
|
44
44
|
},
|