Skip to content

Commit 267fe70

Browse files
committed
fix: js build
1 parent 287eec0 commit 267fe70

File tree

3 files changed

+2
-12
lines changed

3 files changed

+2
-12
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ yarn-error.log
77
/src/contracts
88
/dist
99
/build
10+
/types

package.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"build:sol": "truffle build",
1717
"build:js:copy-src": "babel src -d dist --ignore src/**/*.spec.ts,src/**/*.test.ts -x .js,.ts,.tsx --copy-files",
18-
"build:js:copy-types": "cp src/contracts/*.d.ts dist/ts/contracts",
18+
"build:js:copy-types": "mkdir -p types && cp src/contracts/*.d.ts types/",
1919
"build:js": "tsc --emitDeclarationOnly && npm run build:js:copy-src && npm run build:js:copy-types",
2020
"build": "npm run build:sol && npm run build:js",
2121
"commit": "git-cz",
@@ -38,15 +38,6 @@
3838
"jest": {
3939
"globalSetup": "./jest/setup.ts",
4040
"globalTeardown": "./jest/teardown.ts",
41-
"moduleFileExtensions": [
42-
"js",
43-
"json",
44-
"jsx",
45-
"d.ts",
46-
"ts",
47-
"tsx",
48-
"node"
49-
],
5041
"testPathIgnorePatterns": [
5142
"/node_modules",
5243
"/build",

src/index.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,5 @@ export const connect = async (address: string, signerOrProvider: Signer | provid
2727
return DocumentStoreFactory.connect(address, signerOrProvider);
2828
};
2929

30-
export {DocumentStore} from "./contracts/DocumentStore";
3130
export {DocumentStoreFactory} from "./contracts/DocumentStoreFactory";
32-
export {DocumentStoreCreator} from "./contracts/DocumentStoreCreator";
3331
export {DocumentStoreCreatorFactory} from "./contracts/DocumentStoreCreatorFactory";

0 commit comments

Comments
 (0)