Skip to content

Commit

Permalink
feat: add copy-ts
Browse files Browse the repository at this point in the history
  • Loading branch information
AbigailDeng authored and AbigailDeng committed Sep 29, 2024
1 parent db5cbde commit 8646118
Show file tree
Hide file tree
Showing 2 changed files with 304 additions and 14 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"unpkg": "dist/aelf.umd.js",
"jsdelivr": "dist/aelf.umd.js",
"scripts": {
"build": "npm run clean && npm run build:browser && npm run build:node",
"build": "npm run clean && npm run build:browser && npm run build:node && npm run copy-ts",
"build:browser": "cross-env RUNTIME_ENV=browser webpack --progress --color --config ./build/webpack.browser.js",
"build:node": "cross-env RUNTIME_ENV=node webpack --progress --color --config ./build/webpack.node.js",
"analyze:node": "npm run clean && cross-env RUNTIME_ENV=node webpack --config ./build/webpack.analyze.js",
Expand All @@ -25,7 +25,8 @@
"test:node:watch": "jest --config=jest.node.config.js --watch",
"test:coverage": "jest --config=jest.browser.config.js --coverage",
"test:coverageNode": "jest --config=jest.node.config.js --coverage",
"prepare": "husky install"
"prepare": "husky install",
"copy-ts": "cpx \"types/**/*.ts\" dist/"
},
"keywords": [
"aelf-web3"
Expand Down Expand Up @@ -107,6 +108,7 @@
"chalk": "^4.1.2",
"commitizen": "^4.3.0",
"core-js": "^3.30.1",
"cpx": "^1.5.0",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.0.2",
"eslint": "^8.39.0",
Expand Down
Loading

0 comments on commit 8646118

Please sign in to comment.