mirror of
https://github.com/kamranahmedse/driver.js.git
synced 2026-10-31 20:31:43 +08:00
packages/driver is the library (still published as driver.js, with repository.directory set); playground and docs move to apps/. One root pnpm workspace and lockfile replace the three standalone projects, with turbo orchestrating build/test/lint:package (apps depend on the library build; local + CI caching via .turbo). Apps keep importing the library from source for HMR — the aliases now point at ../../packages/driver/src and each app gains a workspace:* dependency so the task graph knows the edge. The dev-server fs scope widens to the repo root accordingly. Releases run from packages/driver (root `pnpm release` delegates). The changelog still lives in the docs app, so the release scripts reach it via ../../../apps/docs and the after:bump hook stages it explicitly — release-it no longer sits above both directories. The merged workspace settings keep sharp unbuilt on purpose (prebuilt binaries; building from source needs node-gyp and fails) — the docs app had this right and the playground setting was the accident. postcss and postcss-scss were unreferenced devDependencies and are dropped; prettier moves to the root as the only shared tool.
100 lines
2.4 KiB
JSON
100 lines
2.4 KiB
JSON
{
|
|
"name": "driver.js",
|
|
"license": "MIT",
|
|
"private": false,
|
|
"version": "1.7.0",
|
|
"main": "./dist/driver.js.cjs",
|
|
"module": "./dist/driver.js.mjs",
|
|
"types": "./dist/driver.js.d.ts",
|
|
"homepage": "https://driverjs.com",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/nilbuild/driver.js.git",
|
|
"directory": "packages/driver"
|
|
},
|
|
"author": "Kamran Ahmed <kamranahmed.se@gmail.com>",
|
|
"bugs": {
|
|
"url": "https://github.com/nilbuild/driver.js/issues"
|
|
},
|
|
"sideEffects": [
|
|
"**/*.css"
|
|
],
|
|
"exports": {
|
|
".": {
|
|
"import": {
|
|
"types": "./dist/driver.js.d.mts",
|
|
"default": "./dist/driver.js.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/driver.js.d.cts",
|
|
"default": "./dist/driver.js.cjs"
|
|
}
|
|
},
|
|
"./hints": {
|
|
"import": {
|
|
"types": "./dist/hints.d.mts",
|
|
"default": "./dist/hints.mjs"
|
|
},
|
|
"require": {
|
|
"types": "./dist/hints.d.cts",
|
|
"default": "./dist/hints.cjs"
|
|
}
|
|
},
|
|
"./dist/driver.css": {
|
|
"import": "./dist/driver.css",
|
|
"require": "./dist/driver.css",
|
|
"default": "./dist/driver.css"
|
|
},
|
|
"./dist/hints.css": {
|
|
"import": "./dist/hints.css",
|
|
"require": "./dist/hints.css",
|
|
"default": "./dist/hints.css"
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "tsc && tsdown && node scripts/postbuild.mjs",
|
|
"test": "vitest",
|
|
"test:run": "vitest run",
|
|
"test:coverage": "vitest run --coverage",
|
|
"lint:package": "publint && attw --pack . --exclude-entrypoints ./dist/driver.css ./dist/hints.css",
|
|
"release": "release-it",
|
|
"prepublishOnly": "pnpm build && pnpm lint:package"
|
|
},
|
|
"files": [
|
|
"!tests/**/*",
|
|
"dist/**/*",
|
|
"hints/package.json",
|
|
"!dist/**/*.js.map"
|
|
],
|
|
"devDependencies": {
|
|
"@arethetypeswrong/cli": "^0.18.3",
|
|
"@release-it/keep-a-changelog": "^7.1.0",
|
|
"@tsdown/css": "^0.22.8",
|
|
"@types/jsdom": "^28.0.3",
|
|
"@types/node": "^26.0.0",
|
|
"@vitest/coverage-v8": "^4.1.9",
|
|
"jsdom": "^29.1.1",
|
|
"publint": "^0.3.21",
|
|
"release-it": "^20.2.0",
|
|
"tsdown": "^0.22.8",
|
|
"typescript": "^6.0.3",
|
|
"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"
|
|
]
|
|
}
|