Skip to content

Commit 4ac4b18

Browse files
author
David Joy
committed
Using .npmignore to clean up npm package
Using the “files” option in package.json doesn’t let you ignore subsets of it. .npmignore offers more flexibility.
1 parent 4362460 commit 4ac4b18

File tree

2 files changed

+15
-8
lines changed

2 files changed

+15
-8
lines changed

.npmignore

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
__mocks__
2+
babel.config.js
3+
codecov.yml
4+
commitlint.config.js
5+
coverage
6+
example
7+
jest.config.js
8+
Makefile
9+
public
10+
renovate.json
11+
src/**/*.test.js
12+
src/**/*.test.jsx
13+
src/**/tests
14+
src/**/setupTest.js
15+
webpack.dev.config.js

package.json

-8
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,6 @@
2828
"type": "git",
2929
"url": "git+https://github.com/davidjoy/frontend-platform.git"
3030
},
31-
"files": [
32-
"/src",
33-
"/analytics.js",
34-
"/auth.js",
35-
"/i18n.js",
36-
"/logging.js",
37-
"/basejs"
38-
],
3931
"author": "edX",
4032
"license": "AGPL-3.0",
4133
"bugs": {

0 commit comments

Comments
 (0)