add dts bundle to package .d.ts

This commit is contained in:
pengfei.zhou 2020-01-03 15:28:33 +08:00 committed by osborn
parent 7cde16a75d
commit 3d021754a2
3 changed files with 1064 additions and 3 deletions

6
doric-js/dts-bundle.json Normal file
View File

@ -0,0 +1,6 @@
{
"name": "doric",
"baseDir": "./",
"main": "lib/index.d.ts",
"out": "./index.d.ts"
}

1054
doric-js/index.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{
"name": "doric",
"version": "0.2.2-alpha.0",
"version": "0.2.2-alpha.1",
"description": "The JS Framework of Doric",
"main": "bundle/doric-vm.js",
"types": "./lib/index.d.ts",
@ -9,7 +9,7 @@
"build": "tsc -d -p .&& rollup -c",
"dev": "tsc -w -p . & rollup -c -w",
"clean": "rm -rf build && rm -rf bundle",
"prepublish": "npm run build"
"prepublish": "npm run build && dts-bundle --configJson dts-bundle.json"
},
"repository": {
"type": "https",
@ -22,10 +22,11 @@
},
"homepage": "https://github.com/doric-pub/doric#readme",
"dependencies": {
"@rollup/plugin-node-resolve": "^6.0.0",
"@types/ws": "^6.0.4",
"dts-bundle": "^0.7.3",
"reflect-metadata": "^0.1.13",
"rollup": "^1.27.14",
"@rollup/plugin-node-resolve": "^6.0.0",
"tslib": "^1.10.0",
"typescript": "^3.7.4",
"ws": "^7.2.1"