Skip to content

Commit

Permalink
Change .npmignore
Browse files Browse the repository at this point in the history
  • Loading branch information
pashak09 committed Jul 10, 2023
1 parent 4aeef62 commit ee694a4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ jobs:

- name: Check if files exist
run: |
test -f package.json || { echo "File package.json does not exist"; exit 1; }
test -f README.md || { echo "File README.md does not exist"; exit 1; }
for file in dist/package.json dist/README.md dist/.npmignore; do
test -f "$file" || { echo "File $file does not exist in a dist folder"; exit 1; }
done
- run: yarn publish ./dist
env:
Expand Down
2 changes: 0 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
*.d.ts
/*
!dist/
!index.d.ts
!FixtureContainer.d.ts
!FixtureBucket.d.ts
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"name": "fixturio",
"version": "0.0.4",
"version": "0.0.5",
"description": "Fixtures",
"keywords": [
"Persistence",
"fixture",
"test",
"testing"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"main": "index.js",
"types": "index.d.ts",
"author": "pashak09",
"license": "MIT",
"scripts": {
"lint": "eslint src",
"build": "rimraf ./dist && tsc -p tsconfig.build.json && tsc-alias -p tsconfig.build.json",
"postbuild": "cp package.json README.md ./dist",
"postbuild": "cp package.json README.md .npmignore ./dist",
"tests": "jest",
"tests:coverage": "jest --coverage"
},
Expand Down Expand Up @@ -50,7 +50,7 @@
"node": ">=16.17.0"
},
"files": [
"index.d.ts",
"**/*.d.ts",
"**/*.js"
]
}

0 comments on commit ee694a4

Please sign in to comment.