mirror of
https://github.com/lucide-icons/lucide.git
synced 2026-11-13 13:48:26 +00:00
* test(lucide-solid): add Vite and SolidStart integration fixtures Mirror the `lucide-react` integration suite for `lucide-solid`. Both fixtures are scaffolded by `pnpm create solid` and consume the built package through its public entry points only: - `integrations/lucide-solid/vite` (vanilla/basic template) - `integrations/lucide-solid/solid-start` (solid-start-v2/basic template) Each runs a production build, `tsc --noEmit`, and a Vitest Browser Mode test in Chromium under a `check` script, wired into the new root `test:integrations:solid` script and an `integration` job on the `lucide-solid` workflow. The showcase exercises the bare export, per-icon props, `LucideProvider`, an alias against its canonical icon, and the `lucide-solid/icons/circle` deep import. `lucide-solid` has no `DynamicIcon`, so the deep import takes the place of the React fixtures' dynamic-icon block. The SolidStart spec additionally navigates between two routes. Both fixtures resolve the package through its `solid` export condition and compile the raw JSX in `dist/source`; the SolidStart build bundles it into the SSR server chunk. Each fixture carries a second TypeScript project, `tsconfig.declarations.json`, that compiles the showcase with `skipLibCheck: false` so the declarations shipped in `dist/types` are actually read. That catches a `.d.ts` pointing at a file the build never emitted, which the app typecheck silently degrades to `any`. `@solidjs/start@2` requires Vite 8 while the repository pins Vite 7, so the SolidStart fixture is released from that pin by a parent-scoped `'@lucide/integration-solid-solid-start>vite'` override. Only that importer resolves to Vite 8; every other package stays on 7.3.6. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EAmVJZqdypLNwEFhCmfsPN * fix(solid): align SolidStart fixture with Vite 7 * Upgrade vite dependency from 7.3.6 to 8.3.2 Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> * Update README.md to clarify Vite overrides Removed duplicate note about bug #4846 and added a section on Vite overrides. --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
95 lines
4.5 KiB
JSON
95 lines
4.5 KiB
JSON
{
|
|
"private": true,
|
|
"type": "module",
|
|
"scripts": {
|
|
"build": "pnpm -r --filter './packages/**' build",
|
|
"test": "pnpm -r --filter './packages/**' test",
|
|
"test:update": "pnpm -r --filter './packages/**' --filter !'./packages/lucide-angular' test -- -u",
|
|
"test:integrations:react": "pnpm --filter lucide-react build && pnpm -r --workspace-concurrency=1 --filter './integrations/lucide-react/**' check",
|
|
"test:integrations:solid": "pnpm --filter lucide-solid build && pnpm -r --workspace-concurrency=1 --filter './integrations/lucide-solid/**' check",
|
|
"test:integrations:vue": "pnpm --filter @lucide/vue build && pnpm -r --workspace-concurrency=1 --filter './integrations/lucide-vue/**' check",
|
|
"test:font": "pnpm --filter build-font test",
|
|
"lucide": "pnpm --filter lucide",
|
|
"lucide-angular": "pnpm --filter lucide-angular",
|
|
"lucide-react": "pnpm --filter lucide-react",
|
|
"lucide-react-native": "pnpm --filter lucide-react-native",
|
|
"lucide-preact": "pnpm --filter lucide-preact",
|
|
"lucide-solid": "pnpm --filter lucide-solid",
|
|
"lucide-vue": "pnpm --filter lucide-vue",
|
|
"lucide-astro": "pnpm --filter @lucide/astro",
|
|
"lucide-vue-next": "pnpm --filter lucide-vue-next",
|
|
"lucide-svelte": "pnpm --filter lucide-svelte",
|
|
"lucide-static": "pnpm --filter lucide-static",
|
|
"build:outline-icons": "pnpm --filter outline-svg start",
|
|
"build:font": "pnpm --filter build-font start",
|
|
"optimize": "node ./scripts/optimizeSvgs.mts",
|
|
"addjsons": "node ./scripts/addMissingIconJsonFiles.mts",
|
|
"checkIcons": "node ./scripts/checkIconsAndCategories.mts",
|
|
"checkLabIcons": "node ./scripts/checkLabIcons.mts",
|
|
"generate:sponsors": "node scripts/updateSponsors.mts",
|
|
"generate:contributors": "node ./scripts/updateContributors.mts icons/*.svg",
|
|
"generate:nextJSAliases": "node ./scripts/generateNextJSAliases.mts",
|
|
"suggest:metadata": "node ./scripts/suggestMetaData.mts",
|
|
"suggest:metadata:debug": "node --env-file .env ./scripts/suggestMetaData.mts --debug",
|
|
"suggest:metadata:watch": "node --env-file .env --watch ./scripts/suggestMetaData.mts",
|
|
"postinstall": "husky",
|
|
"lint:es": "eslint .",
|
|
"lint:format": "prettier \"**/*.{js,mjs,ts,jsx,tsx,html,css,scss,json,yml,yaml}\" --check",
|
|
"lint:format-fix": "prettier \"**/*.{js,mjs,ts,jsx,tsx,html,css,scss,json,yml,yaml}\" --write",
|
|
"lint:icons": "prettier \"icons/*.svg\" --check",
|
|
"lint:icons-fix": "prettier \"icons/*.svg\" --write",
|
|
"lint:json:icons": "ajv --spec=draft2020 -s icon.schema.json -d 'icons/*.json' > /dev/null",
|
|
"lint:json:categories": "ajv --spec=draft2020 -s category.schema.json -d 'categories/*.json' > /dev/null",
|
|
"lint:json": "pnpm run lint:json:icons && pnpm run lint:json:categories",
|
|
"lint:icons:all": "pnpm run lint:icons && pnpm run lint:json:icons",
|
|
"lint": "pnpm lint:es && pnpm lint:format && pnpm lint:json && pnpm lint:icons",
|
|
"format": "prettier \"**/*.{js,mjs,ts,jsx,tsx,html,css,scss,json,yml,yaml}\" --write",
|
|
"prepare": "husky",
|
|
"gi": "node ./scripts/generate/generateIcons.mts",
|
|
"rename": "node ./scripts/rename/renameIcon.mts",
|
|
"renamePattern": "node ./scripts/rename/renamePattern.mts"
|
|
},
|
|
"devDependencies": {
|
|
"@actions/core": "^3.0.1",
|
|
"@actions/github": "^9.1.1",
|
|
"@eslint/compat": "^2.1.0",
|
|
"@eslint/js": "^10.0.1",
|
|
"@html-eslint/eslint-plugin": "^0.65.0",
|
|
"@html-eslint/parser": "^0.65.0",
|
|
"@octokit/rest": "^22.0.1",
|
|
"@types/yargs": "^17.0.35",
|
|
"@typescript-eslint/eslint-plugin": "^8.69.0",
|
|
"@typescript-eslint/parser": "^8.69.0",
|
|
"@vitest/coverage-v8": "4.1.10",
|
|
"@vitest/ui": "4.1.10",
|
|
"ajv-cli": "^5.0.0",
|
|
"cpy-cli": "^7.0.0",
|
|
"cspell": "^10.2.0",
|
|
"dotenv": "^17.4.2",
|
|
"eslint": "^10.9.1",
|
|
"eslint-config-prettier": "^10.1.8",
|
|
"eslint-plugin-import-x": "^4.17.1",
|
|
"husky": "^9.1.7",
|
|
"jsdom": "^30.0.1",
|
|
"lint-staged": "^17.4.1",
|
|
"minimist": "^1.2.8",
|
|
"openai": "^7.9.0",
|
|
"p-memoize": "^8.0.0",
|
|
"prettier": "3.9.6",
|
|
"prettier-plugin-astro": "^0.14.1",
|
|
"semver": "^7.8.5",
|
|
"simple-git": "^3.36.0",
|
|
"svgo": "^4.1.0",
|
|
"svgson": "^5.3.1",
|
|
"typescript": "^6.0.3",
|
|
"typescript-eslint": "^8.69.0",
|
|
"vitest": "4.1.11",
|
|
"yargs": "^18.1.0",
|
|
"zod": "^4.5.4"
|
|
},
|
|
"engines": {
|
|
"node": ">=24.11.1"
|
|
},
|
|
"packageManager": "pnpm@11.22.0+sha512.1ff870c4c6133dfd88fb2afc46dd13d47f09c9794b438c6fdb47ca98caf3bc16381ee0be93a091b8e3824cf01f889f46d7d9e20910fb0be1ab0fb5baa80dd621"
|
|
}
|