Skip to content

Commit 6c47850

Browse files
The "file-path-filter" package is now just a wrapper around the scoped "@jsdevtools/file-path-filter" package
1 parent 5dd79a2 commit 6c47850

File tree

5 files changed

+56
-1
lines changed

5 files changed

+56
-1
lines changed

.github/workflows/CI-CD.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,15 @@ jobs:
9494
uses: JS-DevTools/npm-publish@v1
9595
with:
9696
token: ${{ secrets.NPM_TOKEN }}
97+
98+
- name: Prepare the non-scoped packaged
99+
run: |
100+
cp LICENSE *.md dist
101+
VERSION=$(node -e "console.log(require('./package.json').version)")
102+
sed -i "s/X.X.X/${VERSION}/g" dist/package.json
103+
104+
- name: Publish the non-scoped package to NPM
105+
uses: JS-DevTools/npm-publish@v1
106+
with:
107+
token: ${{ secrets.NPM_TOKEN }}
108+
package: dist/package.json

dist/index.d.ts

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import filePathFilter from "@jsdevtools/file-path-filter";
2+
export * from "@jsdevtools/file-path-filter";
3+
export default filePathFilter;

dist/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
"use strict";
2+
module.exports = require("@jsdevtools/file-path-filter");

dist/package.json

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
{
2+
"name": "file-path-filter",
3+
"version": "X.X.X",
4+
"description": "Filters file paths using globs, regular expressions, or custom criteria",
5+
"keywords": [
6+
"filter",
7+
"find",
8+
"file",
9+
"path",
10+
"regex",
11+
"regexp",
12+
"glob",
13+
"include",
14+
"exclude"
15+
],
16+
"author": {
17+
"name": "James Messinger",
18+
"url": "https://jamesmessinger.com"
19+
},
20+
"license": "MIT",
21+
"homepage": "https://jstools.dev/file-path-filter",
22+
"repository": {
23+
"type": "git",
24+
"url": "https://github.com/JS-DevTools/file-path-filter.git"
25+
},
26+
"main": "index.js",
27+
"types": "index.d.ts",
28+
"files": [
29+
"index.js",
30+
"index.d.ts"
31+
],
32+
"engines": {
33+
"node": ">=10"
34+
},
35+
"dependencies": {
36+
"@jsdevtools/file-path-filter": "X.X.X"
37+
}
38+
}

package-lock.json

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)