Skip to content

Commit

Permalink
Release v1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Aug 21, 2023
1 parent 829f0df commit 33bfc05
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 11 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,13 @@ Example **package.json** scripts:
},
```

### 2. Global
You can install **copy-folder-util** globally and then run it anywhere directly from the terminal.

### 2. Command-line npx
Example terminal commands:
```shell
$ npm install --global copy-folder-util
$ copy-folder src/web ext=.html docs/api-manual
$ npm install --save-dev copy-folder-util
$ npx copy-folder src/web ext=.html docs/api-manual
```
You can also install **copy-folder-util** globally (`--global`) and then run it anywhere directly from the terminal.

### 3. CLI flags
Command-line flags:
Expand Down Expand Up @@ -89,6 +88,7 @@ See the **TypeScript Declarations** at the top of [copy-folder.ts](copy-folder.t
- 🎋 [add-dist-header](https://github.com/center-key/add-dist-header):  _Prepend a one-line banner comment (with license notice) to distribution files_
- 📄 [copy-file-util](https://github.com/center-key/copy-file-util):  _Copy or rename a file with optional package version number_
- 📂 [copy-folder-util](https://github.com/center-key/copy-folder-util):  _Recursively copy files from one folder to another folder_
- 🪺 [recursive-exec](https://github.com/center-key/recursive-exec):  _Run a command on each file in a folder and its subfolders_
- 🔍 [replacer-util](https://github.com/center-key/replacer-util):  _Find and replace strings or template outputs in text files_
- 🔢 [rev-web-assets](https://github.com/center-key/rev-web-assets):  _Revision web asset filenames with cache busting content hash fingerprints_
- 🚆 [run-scripts-util](https://github.com/center-key/run-scripts-util):  _Organize npm scripts into named groups of easy to manage commands_
Expand Down
2 changes: 1 addition & 1 deletion bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// },
//
// Usage from command line:
// $ npm install --global copy-folder-util
// $ npm install --save-dev copy-folder-util
// $ copy-folder build dist
// $ copy-folder src/web --ext=.js,.html docs
//
Expand Down
2 changes: 1 addition & 1 deletion dist/copy-folder.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! copy-folder-util v1.1.0 ~~ https://github.com/center-key/copy-folder-util ~~ MIT License
//! copy-folder-util v1.1.1 ~~ https://github.com/center-key/copy-folder-util ~~ MIT License

export type Settings = {
basename: string;
Expand Down
4 changes: 2 additions & 2 deletions dist/copy-folder.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//! copy-folder-util v1.1.0 ~~ https://github.com/center-key/copy-folder-util ~~ MIT License
//! copy-folder-util v1.1.1 ~~ https://github.com/center-key/copy-folder-util ~~ MIT License

import fs from 'fs';
import path from 'path';
Expand All @@ -12,7 +12,7 @@ const copyFolder = {
cd: null,
fileExtensions: [],
};
const settings = Object.assign(Object.assign({}, defaults), options);
const settings = { ...defaults, ...options };
const startTime = Date.now();
const normalize = (folder) => !folder ? '' : slash(path.normalize(folder)).replace(/\/$/, '');
const startFolder = settings.cd ? normalize(settings.cd) + '/' : '';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "copy-folder-util",
"version": "1.1.0",
"version": "1.1.1",
"description": "Recursively copy files from one folder to another folder (CLI tool designed for use in npm scripts)",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"compilerOptions": {
"target": "ES2016",
"target": "ES2021",
"module": "ES2020",
"moduleResolution": "node",
"declaration": true,
Expand Down

0 comments on commit 33bfc05

Please sign in to comment.