diff --git a/packages/docx/index.d.ts b/packages/docx/index.d.ts new file mode 100644 index 0000000..a2698eb --- /dev/null +++ b/packages/docx/index.d.ts @@ -0,0 +1,4 @@ +declare const VueOfficeDocx: { + install: (vue: any) => void; +}; +export default VueOfficeDocx; \ No newline at end of file diff --git a/packages/docx/package.json b/packages/docx/package.json index b18def1..116c923 100644 --- a/packages/docx/package.json +++ b/packages/docx/package.json @@ -1,6 +1,6 @@ { "name": "@vue-office/docx", - "version": "0.2.2", + "version": "0.2.4", "description": "", "main": "lib/index.js", "files": [ @@ -11,10 +11,11 @@ "copyFile2": "cp lib/v2/vue-office-docx.umd.js lib/v2/index.js && cp lib/v2/style.css lib/v2/index.css", "copyFile3": "cp lib/v3/vue-office-docx.umd.js lib/v3/index.js && cp lib/v3/style.css lib/v3/index.css", "copyReadme": "cp ../../README.md README.md", + "copyType": "cp index.d.ts lib/index.d.ts", "copyScripts": "mkdir lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js && cp ../../script/utils.js lib/script/utils.js", "build:2": "npx vue-demi-switch 2 vue2 && vite build && npm run copyFile2", "build:3": "npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3", - "build": "npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme", + "build": "npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType", "postinstall": "node lib/script/postinstall.js" }, "peerDependencies": { diff --git a/packages/excel/index.d.ts b/packages/excel/index.d.ts new file mode 100644 index 0000000..0d74ad5 --- /dev/null +++ b/packages/excel/index.d.ts @@ -0,0 +1,4 @@ +declare const VueOfficeExcel: { + install: (vue: any) => void; +}; +export default VueOfficeExcel; \ No newline at end of file diff --git a/packages/excel/package.json b/packages/excel/package.json index 1731279..e3b752d 100644 --- a/packages/excel/package.json +++ b/packages/excel/package.json @@ -1,6 +1,6 @@ { "name": "@vue-office/excel", - "version": "0.2.3", + "version": "0.2.4", "description": "", "main": "lib/index.js", "files": [ @@ -11,10 +11,11 @@ "copyFile2": "cp lib/v2/vue-office-excel.umd.js lib/v2/index.js && cp src/index.css lib/v2/index.css", "copyFile3": "cp lib/v3/vue-office-excel.umd.js lib/v3/index.js && cp src/index.css lib/v3/index.css", "copyReadme": "cp ../../README.md README.md", + "copyType": "cp index.d.ts lib/index.d.ts", "copyScripts": "mkdir lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js && cp ../../script/utils.js lib/script/utils.js", "build:2": "npx vue-demi-switch 2 vue2 && vite build && npm run copyFile2", "build:3": "npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3", - "build": "npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme", + "build": "npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType", "postinstall": "node lib/script/postinstall.js" }, "peerDependencies": { diff --git a/packages/pdf/index.d.ts b/packages/pdf/index.d.ts new file mode 100644 index 0000000..615a2bd --- /dev/null +++ b/packages/pdf/index.d.ts @@ -0,0 +1,4 @@ +declare const VueOfficePdf: { + install: (vue: any) => void; +}; +export default VueOfficePdf; \ No newline at end of file diff --git a/packages/pdf/package.json b/packages/pdf/package.json index 8050b12..291f8a5 100644 --- a/packages/pdf/package.json +++ b/packages/pdf/package.json @@ -1,6 +1,6 @@ { "name": "@vue-office/pdf", - "version": "0.2.2", + "version": "0.2.4", "description": "", "main": "lib/index.js", "files": [ @@ -11,10 +11,11 @@ "copyFile2": "cp lib/v2/vue-office-pdf.umd.js lib/v2/index.js", "copyFile3": "cp lib/v3/vue-office-pdf.umd.js lib/v3/index.js", "copyReadme": "cp ../../README.md README.md", + "copyType": "cp index.d.ts lib/index.d.ts", "copyScripts": "mkdir lib/script/ && cp ../../script/postinstall.js lib/script/postinstall.js && cp ../../script/switch-cli.js lib/script/switch-cli.js && cp ../../script/utils.js lib/script/utils.js", "build:2": "npx vue-demi-switch 2 vue2 && vite build && npm run copyFile2", "build:3": "npx vue-demi-switch 3 vue3 && vite build && npm run copyFile3", - "build": "npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme", + "build": "npm run clean && npm run build:2 && npm run build:3 && npm run copyScripts && npm run copyReadme && npm run copyType", "postinstall": "node lib/script/postinstall.js" }, "peerDependencies": {