Skip to content

Commit

Permalink
Remove obsolete "main" field
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jan 25, 2024
1 parent df6b3ae commit 2ed553c
Show file tree
Hide file tree
Showing 22 changed files with 28 additions and 34 deletions.
6 changes: 3 additions & 3 deletions README.md
@@ -1,7 +1,7 @@
# copy-folder-util
<img src=https://centerkey.com/graphics/center-key-logo.svg align=right width=200 alt=logo>

_Recursively copy files from one folder to another folder (CLI tool designed for use in npm scripts)_
_Recursively copy files from one folder to another folder (CLI tool designed for use in npm package.json scripts)_

[![License:MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://github.com/center-key/copy-folder-util/blob/main/LICENSE.txt)
[![npm](https://img.shields.io/npm/v/copy-folder-util.svg)](https://www.npmjs.com/package/copy-folder-util)
Expand All @@ -20,7 +20,7 @@ $ npm install --save-dev copy-folder-util
```

## B) Usage
### 1. npm scripts
### 1. npm package.json scripts
Run `copy-folder` from the `"scripts"` section of your **package.json** file.

Parameters:
Expand Down Expand Up @@ -96,7 +96,7 @@ See the **TypeScript Declarations** at the top of [copy-folder.ts](copy-folder.t
- 馃 [recursive-exec](https://github.com/center-key/recursive-exec):&nbsp; _Run a command on each file in a folder and its subfolders_
- 馃攳 [replacer-util](https://github.com/center-key/replacer-util):&nbsp; _Find and replace strings or template outputs in text files_
- 馃敘 [rev-web-assets](https://github.com/center-key/rev-web-assets):&nbsp; _Revision web asset filenames with cache busting content hash fingerprints_
- 馃殕 [run-scripts-util](https://github.com/center-key/run-scripts-util):&nbsp; _Organize npm scripts into named groups of easy to manage commands_
- 馃殕 [run-scripts-util](https://github.com/center-key/run-scripts-util):&nbsp; _Organize npm package.json scripts into named groups of easy to manage commands_
- 馃殾 [w3c-html-validator](https://github.com/center-key/w3c-html-validator):&nbsp; _Check the markup validity of HTML files using the W3C validator_

Feel free to submit questions at:<br>
Expand Down
16 changes: 5 additions & 11 deletions package.json
@@ -1,21 +1,15 @@
{
"name": "copy-folder-util",
"version": "1.1.3",
"description": "Recursively copy files from one folder to another folder (CLI tool designed for use in npm scripts)",
"description": "Recursively copy files from one folder to another folder (CLI tool designed for use in npm package.json scripts)",
"license": "MIT",
"type": "module",
"module": "dist/copy-folder.js",
"main": "dist/copy-folder.js",
"types": "dist/copy-folder.d.ts",
"exports": "./dist/copy-folder.js",
"files": [
"dist"
],
"exports": {
".": {
"import": "./dist/copy-folder.js"
},
"./": "./dist/"
},
"bin": {
"copy-folder": "bin/cli.js",
"copy-folder-util": "bin/cli.js"
Expand Down Expand Up @@ -93,9 +87,9 @@
},
"devDependencies": {
"@types/fancy-log": "~2.0",
"@types/node": "~20.10",
"@typescript-eslint/eslint-plugin": "~6.17",
"@typescript-eslint/parser": "~6.17",
"@types/node": "~20.11",
"@typescript-eslint/eslint-plugin": "~6.19",
"@typescript-eslint/parser": "~6.19",
"add-dist-header": "~1.3",
"assert-deep-strict-equal": "~1.1",
"copy-file-util": "~1.1",
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/source/mock1.html
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨</h1>
<h2>Recursively copy a folder (CLI tool designed for use in npm scripts)</h2>
<h2>Recursively copy a folder (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/source/mock1.js
@@ -1,4 +1,4 @@
//! copy-folder-util ~~ MIT License

console.log('馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨');
console.log('Recursively copy a folder (CLI tool designed for use in npm scripts)');
console.log('Recursively copy a folder (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/source/subfolder/mock2.html
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨</h1>
<h2>Recursively copy a folder (CLI tool designed for use in npm scripts)</h2>
<h2>Recursively copy a folder (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/source/subfolder/mock2.js
@@ -1,4 +1,4 @@
//! copy-folder-util ~~ MIT License

console.log('馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨');
console.log('Recursively copy a folder (CLI tool designed for use in npm scripts)');
console.log('Recursively copy a folder (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/target/basename-mock2/subfolder/mock2.html
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨</h1>
<h2>Recursively copy a folder (CLI tool designed for use in npm scripts)</h2>
<h2>Recursively copy a folder (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/basename-mock2/subfolder/mock2.js
@@ -1,4 +1,4 @@
//! copy-folder-util ~~ MIT License

console.log('馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨');
console.log('Recursively copy a folder (CLI tool designed for use in npm scripts)');
console.log('Recursively copy a folder (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/target/basename/mock1.html
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨</h1>
<h2>Recursively copy a folder (CLI tool designed for use in npm scripts)</h2>
<h2>Recursively copy a folder (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/basename/mock1.js
@@ -1,4 +1,4 @@
//! copy-folder-util ~~ MIT License

console.log('馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨');
console.log('Recursively copy a folder (CLI tool designed for use in npm scripts)');
console.log('Recursively copy a folder (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/target/basename/subfolder/mock2.html
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨</h1>
<h2>Recursively copy a folder (CLI tool designed for use in npm scripts)</h2>
<h2>Recursively copy a folder (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/basename/subfolder/mock2.js
@@ -1,4 +1,4 @@
//! copy-folder-util ~~ MIT License

console.log('馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨');
console.log('Recursively copy a folder (CLI tool designed for use in npm scripts)');
console.log('Recursively copy a folder (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/target/default/mock1.html
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨</h1>
<h2>Recursively copy a folder (CLI tool designed for use in npm scripts)</h2>
<h2>Recursively copy a folder (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/default/mock1.js
@@ -1,4 +1,4 @@
//! copy-folder-util ~~ MIT License

console.log('馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨');
console.log('Recursively copy a folder (CLI tool designed for use in npm scripts)');
console.log('Recursively copy a folder (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/target/default/subfolder/mock2.html
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨</h1>
<h2>Recursively copy a folder (CLI tool designed for use in npm scripts)</h2>
<h2>Recursively copy a folder (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/default/subfolder/mock2.js
@@ -1,4 +1,4 @@
//! copy-folder-util ~~ MIT License

console.log('馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨');
console.log('Recursively copy a folder (CLI tool designed for use in npm scripts)');
console.log('Recursively copy a folder (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/target/ext-js/mock1.js
@@ -1,4 +1,4 @@
//! copy-folder-util ~~ MIT License

console.log('馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨');
console.log('Recursively copy a folder (CLI tool designed for use in npm scripts)');
console.log('Recursively copy a folder (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/target/ext-js/subfolder/mock2.js
@@ -1,4 +1,4 @@
//! copy-folder-util ~~ MIT License

console.log('馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨');
console.log('Recursively copy a folder (CLI tool designed for use in npm scripts)');
console.log('Recursively copy a folder (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/target/ext/mock1.html
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨</h1>
<h2>Recursively copy a folder (CLI tool designed for use in npm scripts)</h2>
<h2>Recursively copy a folder (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/ext/mock1.js
@@ -1,4 +1,4 @@
//! copy-folder-util ~~ MIT License

console.log('馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨');
console.log('Recursively copy a folder (CLI tool designed for use in npm scripts)');
console.log('Recursively copy a folder (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/target/ext/subfolder/mock2.html
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨</h1>
<h2>Recursively copy a folder (CLI tool designed for use in npm scripts)</h2>
<h2>Recursively copy a folder (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/ext/subfolder/mock2.js
@@ -1,4 +1,4 @@
//! copy-folder-util ~~ MIT License

console.log('馃搨馃搨馃搨 copy-folder-util 馃搨馃搨馃搨');
console.log('Recursively copy a folder (CLI tool designed for use in npm scripts)');
console.log('Recursively copy a folder (CLI tool designed for use in npm package.json scripts)');

0 comments on commit 2ed553c

Please sign in to comment.