@witchcraft/ui 0.3.0 → 0.3.1
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/module.json +1 -1
- package/dist/module.mjs +4 -1
- package/package.json +9 -2
- package/src/module.ts +4 -1
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -145,7 +145,10 @@ const module = defineNuxtModule({
|
|
|
145
145
|
const mainCssFile = await resolvePath(options.mainCssFile, nuxt.options.alias);
|
|
146
146
|
const exists = fs.existsSync(mainCssFile);
|
|
147
147
|
if (exists) {
|
|
148
|
-
|
|
148
|
+
logger.info(`Adding ${options.mainCssFile}.`);
|
|
149
|
+
nuxt.options.css.push(options.mainCssFile);
|
|
150
|
+
} else {
|
|
151
|
+
logger.warn(`Could not find ${options.mainCssFile} (resolved to ${mainCssFile}).`);
|
|
149
152
|
}
|
|
150
153
|
nuxt.options.alias["#witchcraft-ui"] = resolve("runtime");
|
|
151
154
|
nuxt.options.alias["#witchcraft-ui-helpers"] = resolve("runtime/helpers");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@witchcraft/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Vue component library.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/runtime/main.lib.js",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"lint:types": "vue-tsc --noEmit --pretty --project tsconfig.types.json",
|
|
67
67
|
"lint:commits": "commitlint --from-last-tag --to HEAD --verbose",
|
|
68
68
|
"lint:imports": "madge --circular --extensions ts ./src",
|
|
69
|
-
"lint": "pnpm lint:types && pnpm lint:
|
|
69
|
+
"lint": "pnpm lint:eslint && pnpm lint:types && pnpm lint:commits && pnpm lint:imports",
|
|
70
70
|
"//actions:debug": "echo For debugging github build action locally with nektos/act. Requires act and docker. Note: Cache will never work locally because of https://github.com/nektos/act/issues/285",
|
|
71
71
|
"actions:debug": "act -r -j release",
|
|
72
72
|
"gen:exports": "indexit update --ignore **.d.ts **.stories.ts **.vue -o '${path}.js'",
|
|
@@ -179,6 +179,13 @@
|
|
|
179
179
|
"@alanscodelog"
|
|
180
180
|
]
|
|
181
181
|
},
|
|
182
|
+
"madge": {
|
|
183
|
+
"detectiveOptions": {
|
|
184
|
+
"ts": {
|
|
185
|
+
"skipTypeImports": true
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
},
|
|
182
189
|
"engines": {
|
|
183
190
|
"node": ">=20.0.0"
|
|
184
191
|
},
|
package/src/module.ts
CHANGED
|
@@ -214,7 +214,10 @@ export default defineNuxtModule<ModuleOptions>({
|
|
|
214
214
|
|
|
215
215
|
const exists = fs.existsSync(mainCssFile)
|
|
216
216
|
if (exists) {
|
|
217
|
-
|
|
217
|
+
logger.info(`Adding ${options.mainCssFile!}.`)
|
|
218
|
+
nuxt.options.css.push(options.mainCssFile!)
|
|
219
|
+
} else {
|
|
220
|
+
logger.warn(`Could not find ${options.mainCssFile!} (resolved to ${mainCssFile}).`)
|
|
218
221
|
}
|
|
219
222
|
|
|
220
223
|
// todo make names more specific
|