message: fix 1.8.32 not working with angular anymore
diff: @@ -113,6 +113,23 @@ module.exports = function(options) {
  packagePath + (options.buildType === "prod" ? "modern.min.css" : "modern.css")
  });
  + function removeLines(fileName, regex) {
  + replace.sync(
  + {
  + files: fileName,
  + from: regex,
  + to: ""
  + },
  + (error, changes) => {
  + if (error) {
  + return console.error("Error occurred:", error);
  + }
  + console.log("check me : " + fileName);
  + console.log("Modified files:", changes.join(", "));
  + }
  + );
  + }
  +
  var percentage_handler = function handler(percentage, msg) {
  if (0 === percentage) {
  console.log("Build started... good luck!");
  @@ -125,27 +142,17 @@ module.exports = function(options) {
  headerText: dts_banner
  });
  - if (options.platform === "vue") {
  - replace(
  - {
  - files: packagePath + "survey.vue.d.ts",
  - from: /export default\s+\w+;/g,
  - to: ""
  - },
  - (error, changes) => {
  - if (error) {
  - return console.error("Error occurred:", error);
  - }
  - console.log("Modified files:", changes.join(", "));
  - }
  - );
  + var fileName = packagePath + "survey." + options.platformPrefix + ".d.ts";
  - fs
  - .createReadStream(packagePath + "survey.vue.js")
  - .pipe(fs.createWriteStream(packagePath + "survey-vue.js"));
  - fs
  - .createReadStream(packagePath + "survey.vue.min.js")
  - .pipe(fs.createWriteStream(packagePath + "survey-vue.min.js"));
  + removeLines(fileName, /^import\s+.*("|')survey-core("|');\s*(\n|\r)?/gm);
  + removeLines(fileName, /^import\s+.*("|')\..*("|');\s*(\n|\r)?/gm);
  +
  + if (options.platform === "vue") {
  + removeLines(fileName, /export default\s+\w+;/g);
  + if (fs.existsSync(packagePath + "survey.vue.js"))
  + fs.copyFileSync(packagePath + "survey.vue.js", packagePath + "survey-vue.js");
  + if (fs.existsSync(packagePath + "survey.vue.min.js"))
  + fs.copyFileSync(packagePath + "survey.vue.min.js", packagePath + "survey-vue.min.js");
  }
  rimraf.sync(packagePath + "typings");
  