mirror of
https://github.com/kamranahmedse/driver.js.git
synced 2026-10-31 20:31:43 +08:00
Library: - Update all dev dependencies to latest (vite 4->8, vitest 0.34->4, typescript 5.2->6, @types/node 26, dts-bundle-generator 9, prettier 3.8) - Replace deprecated @vitest/coverage-c8 with @vitest/coverage-v8 - Drop unused ts-node; add jsdom and a jsdom test environment - ESM vite config, modern tsconfig (ES2020, Bundler resolution), Rollup 4 asset-name handling so the CSS still emits as driver.css Playground: - Replace the 1,165-line index.html with playground/, a self-contained Astro app that imports the library from source with HMR - Each scenario is its own file under playground/src/examples grouped into Highlight / Popover & Buttons / Tour / API, listed in a sidebar and run on its own page; shared demo markup lives in Stage.astro - All 41 original scenarios ported and type-checked against the library types - Wire `pnpm dev` to the playground; document local development in the readme
11 lines
198 B
JSON
11 lines
198 B
JSON
{
|
|
"extends": "astro/tsconfigs/strict",
|
|
"compilerOptions": {
|
|
"paths": {
|
|
"driver.js": ["../src/driver.ts"]
|
|
}
|
|
},
|
|
"include": [".astro/types.d.ts", "**/*"],
|
|
"exclude": ["dist"]
|
|
}
|