Files
driver.js/package.json
T
Kamran Ahmed af71fdd4d1 Modernize tooling and add an Astro examples playground
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
2026-06-23 00:57:27 +01:00

70 lines
1.7 KiB
JSON

{
"name": "driver.js",
"license": "MIT",
"private": false,
"version": "1.4.0",
"main": "./dist/driver.js.cjs",
"module": "./dist/driver.js.mjs",
"types": "./dist/driver.js.d.ts",
"homepage": "https://driverjs.com",
"repository": "https://github.com/kamranahmedse/driver.js",
"author": "Kamran Ahmed <kamranahmed.se@gmail.com>",
"bugs": {
"url": "https://github.com/kamranahmedse/driver.js/issues"
},
"exports": {
".": {
"types": "./dist/driver.js.d.ts",
"require": "./dist/driver.js.cjs",
"import": "./dist/driver.js.mjs"
},
"./dist/driver.css": {
"require": "./dist/driver.css",
"import": "./dist/driver.css",
"default": "./dist/driver.css"
}
},
"scripts": {
"dev": "pnpm --dir playground dev",
"playground:install": "pnpm --dir playground install",
"build": "tsc && vite build && dts-bundle-generator --config ./dts-bundle-generator.config.ts",
"test": "vitest",
"format": "prettier . --write"
},
"files": [
"!tests/**/*",
"!docs/**/*",
"dist/**/*",
"!dist/**/*.js.map"
],
"devDependencies": {
"@types/jsdom": "^28.0.3",
"@types/node": "^26.0.0",
"@vitest/coverage-v8": "^4.1.9",
"dts-bundle-generator": "^9.5.1",
"jsdom": "^29.1.1",
"postcss": "^8.5.15",
"postcss-scss": "^4.0.9",
"prettier": "^3.8.4",
"typescript": "^6.0.3",
"vite": "^8.0.16",
"vitest": "^4.1.9"
},
"keywords": [
"driver.js",
"driver",
"tour",
"guide",
"overlay",
"tooltip",
"walkthrough",
"product tour",
"product walkthrough",
"product guide",
"product tutorial",
"product demo",
"modal",
"lightbox"
]
}