gdsi 3.0.2 → 3.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.
Files changed (2) hide show
  1. package/README.md +17 -0
  2. package/package.json +6 -4
package/README.md CHANGED
@@ -169,4 +169,21 @@ export default defineConfig({
169
169
  </template>
170
170
  ```
171
171
 
172
+ ## FAQ
173
+
174
+ ### Unknown file extension
175
+ > TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".vue" for xxx/node_modules/@gdsicon/vue/dist/accessibility-unread.vue
176
+
177
+ This situation usually occurs in vue projects. Because it is a directly exported sfc file, the node can't recognize this file, so it only needs to change the file import path to a specific file name.
178
+
179
+ e.g.
180
+ ```js
181
+ import { CopyIcon } from '@gdsicon/vue'
182
+ ```
183
+
184
+ Change to:
185
+ ```js
186
+ import CopyIcon from '@gdsicon/vue/copy'
187
+ ```
188
+
172
189
  enjoy~
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "gdsi",
3
3
  "type": "module",
4
- "version": "3.0.2",
4
+ "version": "3.0.4",
5
5
  "description": "Geist design system icons maintained by the community.",
6
6
  "author": "Libon <bon.li@outlook.com>",
7
7
  "license": "MIT",
@@ -56,9 +56,9 @@
56
56
  "dist"
57
57
  ],
58
58
  "dependencies": {
59
- "@gdsicon/react": "1.0.1",
60
- "@gdsicon/vue": "1.0.1",
61
- "@gdsicon/svg": "1.0.1"
59
+ "@gdsicon/react": "1.0.4",
60
+ "@gdsicon/vue": "1.0.4",
61
+ "@gdsicon/svg": "1.0.4"
62
62
  },
63
63
  "devDependencies": {
64
64
  "@antfu/eslint-config": "^3.11.2",
@@ -75,6 +75,8 @@
75
75
  "sync": "tsx ./scripts/sync.ts",
76
76
  "gen": "tsx ./scripts/gen.ts svg vue react",
77
77
  "dev:core": "unbuild --stub",
78
+ "dev": "pnpm --filter docs dev",
79
+ "build": "pnpm --filter docs build",
78
80
  "build:core": "unbuild",
79
81
  "build:lib": "pnpm run build:svg && pnpm run build:vue && pnpm run build:react",
80
82
  "build:svg": "pnpm --filter @gdsicon/svg build",