prepare-package 1.2.1 → 1.2.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/dist/index.js +10 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -48,13 +48,15 @@ module.exports = async function (options) {
48
48
  // console.log(chalk.blue(`[prepare-package]: input=${theirPackageJSON.preparePackage.input}`));
49
49
  // console.log(chalk.blue(`[prepare-package]: output=${theirPackageJSON.preparePackage.output}`));
50
50
  // console.log(chalk.blue(`[prepare-package]: main=${theirPackageJSON.main}`));
51
- logger.log(`Starting...`);
52
- logger.log({
53
- purge: options.purge,
54
- input: theirPackageJSON.preparePackage.input,
55
- output: theirPackageJSON.preparePackage.output,
56
- main: theirPackageJSON.main,
57
- });
51
+ if (!options.singleFile) {
52
+ logger.log(`Starting...`);
53
+ logger.log({
54
+ purge: options.purge,
55
+ input: theirPackageJSON.preparePackage.input,
56
+ output: theirPackageJSON.preparePackage.output,
57
+ main: theirPackageJSON.main,
58
+ });
59
+ }
58
60
 
59
61
  // Set the paths relative to the cwd
60
62
  const mainPath = path.resolve(options.cwd, theirPackageJSON.main);
@@ -70,7 +72,7 @@ module.exports = async function (options) {
70
72
  if (options.singleFile) {
71
73
  const relativePath = path.relative(inputPath, options.singleFile);
72
74
  const destPath = path.join(outputPath, relativePath);
73
-
75
+
74
76
  // Copy single file
75
77
  if (jetpack.exists(options.singleFile)) {
76
78
  jetpack.copy(options.singleFile, destPath, { overwrite: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "prepare-package",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "description": "Prepare a Node.js package before being published",
5
5
  "main": "dist/index.js",
6
6
  "exports": {