copy-file-util 1.3.0 → 1.3.1

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/README.md CHANGED
@@ -65,7 +65,7 @@ Examples:
65
65
  - `copy-file 'src/Legal Notice.md' --folder dist`<br>
66
66
  Copies a file that has a space in its filename.
67
67
 
68
- - `copy-file node_modules/ui-xlib/colors.less --platform-eol --folder src/css`<br>
68
+ - `copy-file node_modules/ui-xlib/colors.less --folder src/css --platform-eol`<br>
69
69
  Copies `colors.less` into your project and converts the file's EOL characters to `\n` for LF
70
70
  on Unix and `\r\n` for CRLF on Windows.
71
71
 
package/bin/cli.js CHANGED
@@ -53,6 +53,7 @@ const options = {
53
53
  cd: cli.flagMap.cd ?? null,
54
54
  move: cli.flagOn.move,
55
55
  overwrite: !cli.flagOn.noOverwrite,
56
+ platformEol: cli.flagOn.platformEol,
56
57
  [targetKey]: target.replace(templateVariables, getPackageField),
57
58
  };
58
59
  const result = copyFile.cp(source, options);
@@ -1,4 +1,4 @@
1
- //! copy-file-util v1.3.0 ~~ https://github.com/center-key/copy-file-util ~~ MIT License
1
+ //! copy-file-util v1.3.1 ~~ https://github.com/center-key/copy-file-util ~~ MIT License
2
2
 
3
3
  export type Settings = {
4
4
  cd: string;
package/dist/copy-file.js CHANGED
@@ -1,4 +1,4 @@
1
- //! copy-file-util v1.3.0 ~~ https://github.com/center-key/copy-file-util ~~ MIT License
1
+ //! copy-file-util v1.3.1 ~~ https://github.com/center-key/copy-file-util ~~ MIT License
2
2
 
3
3
  import { EOL } from 'node:os';
4
4
  import chalk from 'chalk';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "copy-file-util",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Copy or rename a file with optional package version number (CLI tool designed for use in npm package.json scripts)",
5
5
  "license": "MIT",
6
6
  "type": "module",