Skip to content

Commit

Permalink
The "file-path-filter" package is now just a wrapper around the scope…
Browse files Browse the repository at this point in the history
…d "@jsdevtools/file-path-filter" package
  • Loading branch information
JamesMessinger committed Feb 16, 2020
1 parent 5dd79a2 commit 6c47850
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 1 deletion.
12 changes: 12 additions & 0 deletions .github/workflows/CI-CD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -94,3 +94,15 @@ jobs:
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}

- name: Prepare the non-scoped packaged
run: |
cp LICENSE *.md dist
VERSION=$(node -e "console.log(require('./package.json').version)")
sed -i "s/X.X.X/${VERSION}/g" dist/package.json
- name: Publish the non-scoped package to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
package: dist/package.json
3 changes: 3 additions & 0 deletions dist/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import filePathFilter from "@jsdevtools/file-path-filter";
export * from "@jsdevtools/file-path-filter";
export default filePathFilter;
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
"use strict";
module.exports = require("@jsdevtools/file-path-filter");
38 changes: 38 additions & 0 deletions dist/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"name": "file-path-filter",
"version": "X.X.X",
"description": "Filters file paths using globs, regular expressions, or custom criteria",
"keywords": [
"filter",
"find",
"file",
"path",
"regex",
"regexp",
"glob",
"include",
"exclude"
],
"author": {
"name": "James Messinger",
"url": "https://jamesmessinger.com"
},
"license": "MIT",
"homepage": "https://jstools.dev/file-path-filter",
"repository": {
"type": "git",
"url": "https://github.com/JS-DevTools/file-path-filter.git"
},
"main": "index.js",
"types": "index.d.ts",
"files": [
"index.js",
"index.d.ts"
],
"engines": {
"node": ">=10"
},
"dependencies": {
"@jsdevtools/file-path-filter": "X.X.X"
}
}
2 changes: 1 addition & 1 deletion package-lock.json

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

0 comments on commit 6c47850

Please sign in to comment.