File tree Expand file tree Collapse file tree 3 files changed +428
-506
lines changed Expand file tree Collapse file tree 3 files changed +428
-506
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,14 @@ build_types() {
30
30
{
31
31
"name": "@govtechsg/document-store",
32
32
"version": "1.0.0",
33
- "main": "index.ts",
33
+ "main": "index.js",
34
+ "module": "index.mjs",
35
+ "types": "./types/index.d.ts",
36
+ "exports": {
37
+ "types": "./types/index.d.ts",
38
+ "require": "./index.js",
39
+ "default": "./index.mjs"
40
+ },
34
41
"repository": "git+https://github.com/Open-Attestation/document-store.git",
35
42
"license": "Apache-2.0",
36
43
"publishConfig": {
47
54
48
55
npm install " @typechain/$target " --save-dev --no-fund --no-audit
49
56
50
- npx typechain --target $target --out-dir . ' ../../artifacts/src/**/*[^dbg].json'
57
+ npx --yes typechain --target $target --out-dir ./output ' ../../artifacts/src/**/*[^dbg].json'
51
58
52
- echo " ✅ Completed building types for $target !"
59
+ echo " Typechain build completed."
60
+
61
+ npm install --no-save rollup-plugin-typescript2 @rollup/plugin-commonjs @rollup/plugin-node-resolve
62
+
63
+ cp ../../rollup.config.mjs .
64
+
65
+ npx --yes rollup -c
66
+
67
+ mkdir -p types && mv .build/types-$target /output/* types/
68
+
69
+ rm -rf .build output rollup.config.mjs
70
+
71
+ echo " Bundling completed."
72
+
73
+ echo " ✅ Completed building for $target !"
53
74
}
54
75
55
76
publish_types () {
You can’t perform that action at this time.
0 commit comments