rman 0.33.2 → 0.35.0
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.
|
@@ -63,9 +63,14 @@ class PublishCommand extends run_command_js_1.RunCommand {
|
|
|
63
63
|
if (command === '#') {
|
|
64
64
|
if (pkg === this.repository.rootPackage)
|
|
65
65
|
return { code: 0 };
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
66
|
+
let cwd = pkg.dirname;
|
|
67
|
+
if (this.options.contents) {
|
|
68
|
+
const contents = this.options.contents.replaceAll('${package.basename}', pkg.basename);
|
|
69
|
+
if (contents.startsWith('/'))
|
|
70
|
+
cwd = path_1.default.join(this.repository.dirname, contents);
|
|
71
|
+
else
|
|
72
|
+
cwd = path_1.default.join(pkg.dirname, contents);
|
|
73
|
+
}
|
|
69
74
|
return super._exec(pkg, 'npm publish' +
|
|
70
75
|
(this.options.access ? ' --access=' + this.options.access : '') +
|
|
71
76
|
(this.options.userconfig ? ` --userconfig="${this.options.userconfig}"` : ''), {
|
package/cjs/core/package.js
CHANGED
|
@@ -59,9 +59,14 @@ export class PublishCommand extends RunCommand {
|
|
|
59
59
|
if (command === '#') {
|
|
60
60
|
if (pkg === this.repository.rootPackage)
|
|
61
61
|
return { code: 0 };
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
let cwd = pkg.dirname;
|
|
63
|
+
if (this.options.contents) {
|
|
64
|
+
const contents = this.options.contents.replaceAll('${package.basename}', pkg.basename);
|
|
65
|
+
if (contents.startsWith('/'))
|
|
66
|
+
cwd = path.join(this.repository.dirname, contents);
|
|
67
|
+
else
|
|
68
|
+
cwd = path.join(pkg.dirname, contents);
|
|
69
|
+
}
|
|
65
70
|
return super._exec(pkg, 'npm publish' +
|
|
66
71
|
(this.options.access ? ' --access=' + this.options.access : '') +
|
|
67
72
|
(this.options.userconfig ? ` --userconfig="${this.options.userconfig}"` : ''), {
|
package/esm/core/package.js
CHANGED
package/package.json
CHANGED