Skip to content

Commit

Permalink
Add all the needed files in the npm package (#498)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandruandrei91 authored Aug 16, 2021
1 parent 3493151 commit c08d398
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
13 changes: 10 additions & 3 deletions react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,11 @@
"url": "https://github.com/equinor/webviz-subsurface-components/issues"
},
"homepage": "https://github.com/equinor/webviz-subsurface-components",
"main": "build/index.js",
"types": "index.d.ts",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
"dist/**/*"
],
"scripts": {
"start": "webpack serve --mode development --devtool inline-source-map --entry ./src/demo/index.js --open",
"copy-package-json": "copyfiles ./package.json ../webviz_subsurface_components/",
Expand All @@ -32,7 +35,11 @@
"test": "jest --coverage",
"test:watch": "npm test -- --watch",
"build:npm": "rimraf dist && tsc --declaration && npm run copy-files",
"copy-files": "copyfiles package.json dist && copyfiles --up 1 ../README.md dist && copyfiles --up 2 src/lib/**/*.css src/lib/**/*.glsl src/lib/**/*.svg src/lib/inputSchema/*.json dist/"
"copy-files": "copyfiles package.json dist && copyfiles --up 1 ../README.md dist && copyfiles --up 2 src/lib/**/*.css src/lib/**/*.glsl src/lib/**/*.svg src/lib/inputSchema/*.json dist/",
"prepare": "npm run build:npm",
"postpack": "npm run tidy-up",
"prepublishOnly": "npm test && npm run lint",
"preversion": "npm run lint"
},
"author": "Equinor <[email protected]>",
"license": "MPL",
Expand Down
1 change: 1 addition & 0 deletions react/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"compilerOptions": {
"baseUrl": "src",
"outDir": "./dist/", // path to output directory
"declaration": true,
"sourceMap": true, // allow sourcemap support
Expand Down

0 comments on commit c08d398

Please sign in to comment.