Skip to content

Commit

Permalink
Silence package.json warnings (#47)
Browse files Browse the repository at this point in the history
  • Loading branch information
DangoDev authored Mar 22, 2019
1 parent 10a15b9 commit 96282de
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,14 @@
},
"author": "manifoldco",
"license": "ISC",
"files": [
"dist/"
],
"main": "dist/index.js",
"esnext": "dist/esm",
"module": "dist/esm",
"types": "dist/types/components.d.ts",
"collection": "dist/collection/collection-manifest.json",
"scripts": {
"build": "stencil build",
"dev": "stencil build --dev --docs --watch --serve",
Expand Down
3 changes: 2 additions & 1 deletion scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ if (flag && flag[0].length > 1) {

// 3. Generate package.json for npm
const packageJSON = JSON.parse(readFileSync(resolve(__dirname, '..', 'package.json'), 'utf8'));
// These have to be overridden to work on npm, and Stencil complains about these values
const newPackageJSON = {
...packageJSON,
version,
files: ['*'],
main: './manifold.js',
main: './index.js',
esnext: './esm',
module: './esm',
types: './types/components.d.ts',
Expand Down

0 comments on commit 96282de

Please sign in to comment.