diff --git a/package-lock.json b/package-lock.json index 6321f79..45d72d4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,16 @@ { "name": "@vueless/nuxt", - "version": "1.0.0", + "version": "1.0.1-beta.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vueless/nuxt", - "version": "1.0.0", + "version": "1.0.1-beta.6", "license": "MIT", "dependencies": { "@nuxt/kit": "^3.17.4", - "vueless": "^1.0.1" + "vueless": "^1.0.2-beta.9" }, "devDependencies": { "@material-symbols/svg-500": "^0.31.4", @@ -17210,9 +17210,9 @@ } }, "node_modules/vueless": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/vueless/-/vueless-1.0.1.tgz", - "integrity": "sha512-98LJm9arbYjAp/tlg7D35Nxyi41f99AuRHgMP7yv/NBfmtd5Yn90vZhXbfqu3iVGNMLYW45LOhQVN7Zg9ah5Wg==", + "version": "1.0.2-beta.9", + "resolved": "https://registry.npmjs.org/vueless/-/vueless-1.0.2-beta.9.tgz", + "integrity": "sha512-275Y51zgXfeGJs7hIynhOJOWFVWks+LVxvGvwhkmX+mn81/GJSej/CsUmHj+25zbYMF04qdLzKvF3/ez3qDZGg==", "license": "MIT", "dependencies": { "@tailwindcss/forms": "^0.5.10", diff --git a/package.json b/package.json index 1c5db33..80a4a2b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vueless/nuxt", - "version": "1.0.0", + "version": "1.0.1-beta.6", "license": "MIT", "description": "Nuxt Styleless UI Component Library, powered by Tailwind CSS.", "keywords": [ @@ -46,15 +46,16 @@ "release:patch": "release-it patch --ci --npm.publish", "release:minor": "release-it minor --ci --npm.publish --git.tag --github.release", "release:major": "release-it major --ci --npm.publish --git.tag --github.release", - "lint": "eslint .", - "lint:ci": "eslint --no-fix --max-warnings=0", + "lint": "eslint . --no-fix", + "lint:fix": "eslint . --fix", + "lint:ci": "eslint . --no-fix --max-warnings=0", "test": "vitest run", "test:watch": "vitest watch", "test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit" }, "dependencies": { "@nuxt/kit": "^3.17.4", - "vueless": "^1.0.1" + "vueless": "^1.0.2-beta.9" }, "devDependencies": { "@material-symbols/svg-500": "^0.31.4", diff --git a/playground/components/SignupForm.vue b/playground/components/SignupForm.vue index ff89d10..30ce4b8 100644 --- a/playground/components/SignupForm.vue +++ b/playground/components/SignupForm.vue @@ -54,10 +54,9 @@ placeholder="johndoe@example.com" type="email" /> - diff --git a/src/module.ts b/src/module.ts index ed2afe6..6ebbd02 100644 --- a/src/module.ts +++ b/src/module.ts @@ -1,11 +1,15 @@ +import fs from 'node:fs' import path from 'node:path' import { cwd } from 'node:process' -import fs from 'node:fs' +import { pathToFileURL } from 'node:url' +import { createRequire } from 'node:module' import { defineNuxtModule, addPlugin, createResolver, addComponent, addImportsDir, hasNuxtModule } from '@nuxt/kit' import { Vueless, TailwindCSS } from 'vueless/plugin-vite.js' import { cacheMergedConfigs } from 'vueless/utils/node/helper.js' import { COMPONENTS, VUELESS_CONFIG_FILE_NAME, NUXT_MODULE_ENV, VUELESS_PACKAGE_DIR } from 'vueless/constants.js' +const require = createRequire(import.meta.url) + export default defineNuxtModule({ meta: { name: '@vueless/nuxt', @@ -55,7 +59,7 @@ export default defineNuxtModule({ if (_nuxt.options.dev) { /* Reload nuxt when vueless config was changed. */ const chokidarPath = require.resolve('chokidar') - const chokidar = await import(chokidarPath) + const chokidar = await import(pathToFileURL(chokidarPath).href) const watcher = chokidar.watch(dependencies, { ignoreInitial: true }) @@ -98,8 +102,7 @@ export default defineNuxtModule({ async function getVuelessConfig() { /* Using esbuild. This prevents `Inlined implicit external` issue. */ const esbuildPath = require.resolve('esbuild') - const esbuild = await import(esbuildPath) - + const esbuild = await import(pathToFileURL(esbuildPath).href) const esbuildConfig = { bundle: true, platform: 'node', pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy