Skip to content

Commit

Permalink
Fix missing README.md in package build
Browse files Browse the repository at this point in the history
  • Loading branch information
dk981234 committed Feb 2, 2024
1 parent 07a3667 commit 349af68
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
5 changes: 3 additions & 2 deletions packages/survey-vue3-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,18 +25,19 @@
"@vue/eslint-config-typescript": "^11.0.0",
"@vue/test-utils": "latest",
"@vue/tsconfig": "^0.1.3",
"commit-and-tag-version": "^11.0.0",
"rollup-plugin-copy": "^3.5.0",
"eslint": "^8.22.0",
"eslint-plugin-vue": "^9.3.0",
"npm-run-all": "^4.1.5",
"prettier": "^2.7.1",
"rollup-plugin-generate-package-json": "^3.2.0",
"survey-core": "../../build/survey-core",
"commit-and-tag-version": "^11.0.0",
"typescript": "~4.7.4",
"vite": "^3.1.8",
"vitest": "~0.32.4",
"vitest-canvas-mock": "^0.3.3",
"vue": "^3.2.41",
"vue-tsc": "^1.0.8"
}
}
}
7 changes: 6 additions & 1 deletion packages/survey-vue3-ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { resolve } from "node:path";
import { fileURLToPath, URL } from "node:url";
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import copy from "rollup-plugin-copy";
import generatePackageJson from "rollup-plugin-generate-package-json";
const json = require("./publish/package.json");
const packageJson = require("./package.json");
Expand All @@ -14,7 +15,6 @@ const libraryName = "survey-vue3-ui";
export default defineConfig(({ mode }) => {
return {
plugins: [vue()],

build: {
sourcemap: mode == "development",
// Output compiled files to /dist.
Expand All @@ -33,6 +33,11 @@ export default defineConfig(({ mode }) => {
external: ["vue", "survey-core"],

plugins: [
copy({
targets: [
{ src: "./README.md", dest: "../../build/survey-vue3-ui" },
],
}),
generatePackageJson({
inputFolder: "publish",
outputFolder: "../../build/survey-vue3-ui",
Expand Down

0 comments on commit 349af68

Please sign in to comment.