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.
- package/dist/{chunk-BKDGWTE6.mjs → chunk-GY4VNET5.mjs} +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -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
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vectify",
|
|
3
|
-
"version": "2.0.
|
|
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>",
|