Use package.json/files instead of npmignore.
This commit is contained in:
Родитель
e95ad0e63c
Коммит
a6f889c8d0
|
@ -1,9 +0,0 @@
|
||||||
/components
|
|
||||||
/resources
|
|
||||||
index.html
|
|
||||||
babel.config.js
|
|
||||||
jest.config.js
|
|
||||||
webpack.config.js
|
|
||||||
webpack.config.*.js
|
|
||||||
tsconfig.json
|
|
||||||
index.ts
|
|
|
@ -52,6 +52,10 @@
|
||||||
"react": "^16.8.6",
|
"react": "^16.8.6",
|
||||||
"react-dom": "^16.8.6"
|
"react-dom": "^16.8.6"
|
||||||
},
|
},
|
||||||
|
"files": [
|
||||||
|
"dist/components",
|
||||||
|
"dist/index.js"
|
||||||
|
],
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/components/Viewer.d.ts"
|
"types": "dist/components/Viewer.d.ts"
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче