Skip to content

Commit

Permalink
build: filter files using .npmignore instead of files in package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
nelson6e65 committed Oct 12, 2023
1 parent 6b53062 commit 29b3e18
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 13 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ node_modules/
lib/
dist/
*.tgz
elegantech-prettier-multi-config-0.0.0-development/
*.tsbuildinfo
tsconfig.*.tsbuildinfo
/build
Expand Down
17 changes: 10 additions & 7 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
node_modules/
.vscode
.eslintrc.csj
.nvmrc
.prettierrc.js
.jsconfig.json
**/*.tsbuildinfo
*
# Ignore all, except:

# Distribution files
!dist/**/*

# Assets
!NOTICE
!README.md
!LICENSE
1 change: 1 addition & 0 deletions examples/shareable-typescript/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import {
getMergedOverrideFor,
getPluginsFor,
} from '@elegantech/prettier-multi-config/presets';

import { Config } from 'prettier';

const selectedPresets: PresetName[] = ['base', 'php', 'sh'];
Expand Down
6 changes: 0 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,6 @@
}
},
"types": "./dist/index.d.ts",
"files": [
"NOTICE",
"dist",
"README.md",
"LICENSE"
],
"keywords": [
"prettier",
"prettier-plugin",
Expand Down

0 comments on commit 29b3e18

Please sign in to comment.