add cat script to append image.d.ts

This commit is contained in:
王劲鹏 2020-04-20 19:18:44 +08:00 committed by osborn
parent 4d3bd748db
commit c730a25df8
3 changed files with 5 additions and 1 deletions

4
doric-js/index.d.ts vendored
View File

@ -1282,3 +1282,7 @@ declare module 'doric/lib/src/pattern/mvvm' {
} }
} }
declare module '*.png' {
const value: any;
export default value;
}

View File

@ -6,7 +6,7 @@
"types": "index.d.ts", "types": "index.d.ts",
"scripts": { "scripts": {
"test": "echo \"Error: no test specified\" && exit 1", "test": "echo \"Error: no test specified\" && exit 1",
"build": "tsc -p tsconfig.es5.json && mv -f lib-es5/src/ui/view.es5.js lib-es5/src/ui/view.js && tsc -d -p . && rollup -c && dts-bundle --configJson dts-bundle.json", "build": "tsc -p tsconfig.es5.json && mv -f lib-es5/src/ui/view.es5.js lib-es5/src/ui/view.js && tsc -d -p . && rollup -c && dts-bundle --configJson dts-bundle.json && cat src/image.d.ts >> index.d.ts",
"dev": "tsc -w -p . & rollup -c -w", "dev": "tsc -w -p . & rollup -c -w",
"clean": "rm -rf lib && rm -rf lib-es5 && rm -rf bundle", "clean": "rm -rf lib && rm -rf lib-es5 && rm -rf bundle",
"prepublish": "npm run build" "prepublish": "npm run build"