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 7fa9776 commit 2100aef
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 21 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# copy-file-util
<img src=https://centerkey.com/graphics/center-key-logo.svg align=right width=200 alt=logo>

_Copy or rename a file with optional package version number (CLI tool designed for use in npm scripts)_
_Copy or rename a file with optional package version number (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-file-util/blob/main/LICENSE.txt)
[![npm](https://img.shields.io/npm/v/copy-file-util.svg)](https://www.npmjs.com/package/copy-file-util)
Expand All @@ -20,7 +20,7 @@ $ npm install --save-dev copy-file-util
```

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

Parameters:
Expand Down Expand Up @@ -98,7 +98,7 @@ See the **TypeScript Declarations** at the top of [copy-file.ts](copy-file.ts) f
- 🪺 [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
Original file line number Diff line number Diff line change
@@ -1,21 +1,15 @@
{
"name": "copy-file-util",
"version": "1.1.3",
"description": "Copy or rename a file with optional package version number (CLI tool designed for use in npm scripts)",
"description": "Copy or rename a file with optional package version number (CLI tool designed for use in npm package.json scripts)",
"license": "MIT",
"type": "module",
"module": "dist/copy-file.js",
"main": "dist/copy-file.js",
"types": "dist/copy-file.d.ts",
"exports": "./dist/copy-file.js",
"files": [
"dist"
],
"exports": {
".": {
"import": "./dist/copy-file.js"
},
"./": "./dist/"
},
"bin": {
"copy-file": "bin/cli.js",
"copy-file-util": "bin/cli.js"
Expand Down Expand Up @@ -91,9 +85,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",
"eslint": "~8.56",
Expand Down
2 changes: 1 addition & 1 deletion spec/fixtures/source/mock.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>📂📂📂 copy-file-util 📂📂📂</h1>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm scripts)</h2>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/cd-rename/mock2.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>📂📂📂 copy-file-util 📂📂📂</h1>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm scripts)</h2>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/cd/mock.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>📂📂📂 copy-file-util 📂📂📂</h1>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm scripts)</h2>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/module/copy-file-util-v1.1.3.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>📂📂📂 copy-file-util 📂📂📂</h1>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm scripts)</h2>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/move/b/mock.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>📂📂📂 copy-file-util 📂📂📂</h1>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm scripts)</h2>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/to-file/mock2.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>📂📂📂 copy-file-util 📂📂📂</h1>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm scripts)</h2>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/to-folder/mock.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>📂📂📂 copy-file-util 📂📂📂</h1>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm scripts)</h2>
<h2>Copy or rename a file with optional package version number (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>

0 comments on commit 2100aef

Please sign in to comment.