Skip to content

Commit

Permalink
fix: released files, build main ref & copy types (#67)
Browse files Browse the repository at this point in the history
* fix: released files, build main ref & copy types

* fix: copying .d.ts and .ts without babel

* fix: suggestions

* fix: removed contract build info

Co-authored-by: Raymond Yeh <[email protected]>
  • Loading branch information
yehjxraymond and yehjxraymond authored Mar 24, 2020
1 parent d4dedb2 commit b23c3b5
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,20 @@
{
"name": "@govtechsg/document-store",
"version": "1.0.0",
"main": "index.js",
"main": "dist/index.js",
"files": [
"dist",
"src"
],
"types": "dist/ts/src",
"repository": "[email protected]:Open-Attestation/document-store-contract.git",
"author": "GovTech",
"license": "Apache-2.0",
"scripts": {
"build:sol": "truffle build",
"build:js": "tsc --emitDeclarationOnly && babel src -d dist --ignore src/**/*.spec.ts,src/**/*.test.ts -x .js,.ts,.tsx --copy-files",
"build:js:copy-src": "babel src -d dist --ignore src/**/*.spec.ts,src/**/*.test.ts -x .js,.ts,.tsx --copy-files",
"build:js:copy-generated-types": "mkdir -p dist/ts/src/ethers-contracts && cp -r types/ethers-contracts/* dist/ts/src/ethers-contracts",
"build:js": "tsc --emitDeclarationOnly && npm run build:js:copy-src && npm run build:js:copy-generated-types",
"build": "npm run build:sol && npm run build:js",
"commit": "git-cz",
"commit:retry": "npm run commit -- --retry",
Expand Down

0 comments on commit b23c3b5

Please sign in to comment.