vectify 2.0.3 → 2.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -912,7 +912,7 @@ async function generateIndexFile(svgFiles, config, dryRun = false) {
912
912
  const typescript = config.typescript ?? true;
913
913
  const strategy = getFrameworkStrategy(config.framework);
914
914
  const ext = strategy.getIndexExtension(typescript);
915
- const usesDefaultExport = ["vue", "svelte", "react", "preact"].includes(config.framework);
915
+ const usesDefaultExport = ["vue", "vue2", "svelte", "react", "preact"].includes(config.framework);
916
916
  const exports = svgFiles.map((svgFile) => {
917
917
  const fileName = path4.basename(svgFile);
918
918
  const componentName = getComponentName(
package/dist/cli.js CHANGED
@@ -1052,7 +1052,7 @@ async function generateIndexFile(svgFiles, config, dryRun = false) {
1052
1052
  const typescript = config.typescript ?? true;
1053
1053
  const strategy = getFrameworkStrategy(config.framework);
1054
1054
  const ext = strategy.getIndexExtension(typescript);
1055
- const usesDefaultExport = ["vue", "svelte", "react", "preact"].includes(config.framework);
1055
+ const usesDefaultExport = ["vue", "vue2", "svelte", "react", "preact"].includes(config.framework);
1056
1056
  const exports2 = svgFiles.map((svgFile) => {
1057
1057
  const fileName = import_node_path4.default.basename(svgFile);
1058
1058
  const componentName = getComponentName(
package/dist/cli.mjs CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  generate,
4
4
  init,
5
5
  watch
6
- } from "./chunk-BKDGWTE6.mjs";
6
+ } from "./chunk-GY4VNET5.mjs";
7
7
  import "./chunk-CIKTK6HI.mjs";
8
8
 
9
9
  // src/cli.ts
package/dist/index.js CHANGED
@@ -1060,7 +1060,7 @@ async function generateIndexFile(svgFiles, config, dryRun = false) {
1060
1060
  const typescript = config.typescript ?? true;
1061
1061
  const strategy = getFrameworkStrategy(config.framework);
1062
1062
  const ext = strategy.getIndexExtension(typescript);
1063
- const usesDefaultExport = ["vue", "svelte", "react", "preact"].includes(config.framework);
1063
+ const usesDefaultExport = ["vue", "vue2", "svelte", "react", "preact"].includes(config.framework);
1064
1064
  const exports2 = svgFiles.map((svgFile) => {
1065
1065
  const fileName = import_node_path4.default.basename(svgFile);
1066
1066
  const componentName = getComponentName(
package/dist/index.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  init,
8
8
  loadConfig,
9
9
  watch
10
- } from "./chunk-BKDGWTE6.mjs";
10
+ } from "./chunk-GY4VNET5.mjs";
11
11
  import "./chunk-CIKTK6HI.mjs";
12
12
 
13
13
  // src/types.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vectify",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "packageManager": "pnpm@9.15.9",
5
5
  "description": "A powerful command-line tool to generate React, Vue, and Svelte icon components from SVG files",
6
6
  "author": "Xiaobing Zhu <hellozxb252@gmail.com>",