Skip to content

Commit

Permalink
Remove obsolete "main" field from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
dpilafian committed Jan 25, 2024
1 parent 2439e05 commit 504d9c4
Show file tree
Hide file tree
Showing 11 changed files with 17 additions and 23 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# recursive-exec
<img src=https://centerkey.com/graphics/center-key-logo.svg align=right width=200 alt=logo>

_Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm scripts)_
_Run a command on each file in a folder and its subfolders (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/recursive-exec/blob/main/LICENSE.txt)
[![npm](https://img.shields.io/npm/v/recursive-exec.svg)](https://www.npmjs.com/package/recursive-exec)
Expand All @@ -19,7 +19,7 @@ $ npm install --save-dev recursive-exec
```

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

Parameters:
Expand Down Expand Up @@ -108,7 +108,7 @@ See the **TypeScript Declarations** at the top of [recursive-exec.ts](recursive-
- 🪺 [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": "recursive-exec",
"version": "1.0.0",
"description": "Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm scripts)",
"description": "Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm package.json scripts)",
"license": "MIT",
"type": "module",
"module": "dist/recursive-exec.js",
"main": "dist/recursive-exec.js",
"types": "dist/recursive-exec.d.ts",
"exports": "./dist/recursive-exec.js",
"files": [
"dist"
],
"exports": {
".": {
"import": "./dist/recursive-exec.js"
},
"./": "./dist/"
},
"bin": {
"recursive-exec": "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/mock-file1.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>🪺🪺🪺 recursive-exec 🪺🪺🪺</h1>
<h2>Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm scripts)</h2>
<h2>Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/source/mock-file1.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// recursive-exec ~~ MIT License

console.log('🪺🪺🪺 recursive-exec 🪺🪺🪺');
console.log('Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm scripts)');
console.log('Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/source/subfolder/mock-file2.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>🪺🪺🪺 recursive-exec 🪺🪺🪺</h1>
<h2>Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm scripts)</h2>
<h2>Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/source/subfolder/mock-file2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// recursive-exec ~~ MIT License

console.log('🪺🪺🪺 recursive-exec 🪺🪺🪺');
console.log('Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm scripts)');
console.log('Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/target/exclude/subfolder/mock-file2.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// recursive-exec ~~ MIT License

console.log('🪺🪺🪺 recursive-exec 🪺🪺🪺');
console.log('Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm scripts)');
console.log('Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm package.json scripts)');
2 changes: 1 addition & 1 deletion spec/fixtures/target/html/mock-file1.mockFile1.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>🪺🪺🪺 recursive-exec 🪺🪺🪺</h1>
<h2>Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm scripts)</h2>
<h2>Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
</head>
<body>
<h1>🪺🪺🪺 recursive-exec 🪺🪺🪺</h1>
<h2>Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm scripts)</h2>
<h2>Run a command on each file in a folder and its subfolders (CLI tool designed for use in npm package.json scripts)</h2>
</body>
</html>
2 changes: 1 addition & 1 deletion spec/fixtures/target/js/mock-file1.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion spec/fixtures/target/js/subfolder/mock-file2.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 504d9c4

Please sign in to comment.