{
  "name": "@photostructure/sqlite",
  "version": "1.2.1",
  "description": "Drop-in replacement for node:sqlite",
  "homepage": "https://photostructure.github.io/node-sqlite/",
  "types": "./dist/index.d.ts",
  "main": "./dist/index.cjs",
  "module": "./dist/index.mjs",
  "exports": {
    ".": {
      "require": {
        "types": "./dist/index.d.cts",
        "default": "./dist/index.cjs"
      },
      "import": {
        "types": "./dist/index.d.ts",
        "default": "./dist/index.mjs"
      }
    },
    "./package.json": "./package.json"
  },
  "repository": {
    "type": "git",
    "url": "git+https://github.com/photostructure/node-sqlite.git"
  },
  "license": "MIT",
  "private": false,
  "scripts": {
    "install": "node-gyp-build",
    "//build": "build commands",
    "build": "run-p build:dist build:native",
    "build:dist": "tsup && node scripts/post-build.mjs",
    "build:native": "tsx scripts/build-native.ts",
    "build:native:linux": "bash scripts/prebuild-linux-glibc.sh",
    "build:native:rebuild": "node-gyp rebuild",
    "rebuild": "run-s clean build",
    "//clean": "cleanup commands",
    "clean": "run-p clean:dist clean:native",
    "clean:dist": "del-cli dist \"*.tsbuildinfo\"",
    "clean:native": "node-gyp clean && del-cli prebuilds",
    "clean:docker": "docker rm -f $(docker ps -aq --filter name=node-sqlite-test 2>/dev/null) 2>/dev/null || true",
    "clean:docker:cache": "del-cli .cache",
    "clean:all": "run-p clean:dist clean:native clean:docker clean:docker:cache",
    "//sync": "sync upstream sources",
    "sync": "run-s sync:node sync:sqlite sync:tests",
    "sync:node": "tsx scripts/sync-from-node.ts",
    "sync:sqlite": "tsx scripts/sync-from-sqlite.ts",
    "sync:tests": "tsx scripts/sync-node-tests.ts",
    "//test": "'test' is quick dev feedback, 'test:all' is comprehensive",
    "test": "npm run build:dist && node --expose-gc node_modules/jest/bin/jest.js --no-coverage",
    "test:cjs": "node --expose-gc node_modules/jest/bin/jest.js",
    "test:esm": "cross-env TEST_ESM=1 node --expose-gc --experimental-vm-modules --no-warnings node_modules/jest/bin/jest.js",
    "test:all": "npm run build && run-s test:cjs test:esm",
    "test:serial": "node --expose-gc node_modules/jest/bin/jest.js --runInBand --no-coverage",
    "test:api": "jest --config jest.config.api-compat.cjs",
    "test:node": "node --test test/node-compat/*.js test/node-compat/*.mjs",
    "test:memory": "cross-env TEST_MEMORY=1 node --expose-gc node_modules/jest/bin/jest.js --no-coverage test/memory.test.ts",
    "test:extension": "cd test/fixtures/test-extension && node build.js",
    "test:docker:debian": "REUSE_BUILD=1 REUSE_CONTAINER=1 bash scripts/test-docker-debian.sh",
    "test:docker:alpine": "REUSE_BUILD=1 REUSE_CONTAINER=1 bash scripts/test-docker-alpine.sh",
    "//lint": "'lint' runs everywhere, 'lint:full' adds optional tools",
    "lint": "run-p lint:ts lint:eslint",
    "lint:ts": "tsc --noEmit",
    "lint:ts:build": "tsc -p tsconfig.build.json --noEmit",
    "lint:ts:scripts": "tsc --noEmit --module esnext --target es2022 --moduleResolution node --project scripts/tsconfig.json",
    "lint:ts:bench": "cd benchmark && npm install && tsc --noEmit",
    "lint:eslint": "eslint src/ test/ scripts/",
    "lint:native": "tsx scripts/clang-tidy.ts",
    "lint:api": "tsx scripts/check-api-compat.ts",
    "lint:full": "run-s lint lint:native lint:api",
    "//fmt": "code formatting",
    "fmt": "run-p fmt:prettier fmt:native",
    "fmt:prettier": "prettier --cache --write .",
    "fmt:native": "clang-format --style=LLVM -i src/shims/*.h src/*.cpp src/*.h test/fixtures/test-extension/*.c || true",
    "//memory": "memory analysis tools",
    "memory:check": "npx --yes tsx scripts/check-memory.ts",
    "memory:valgrind": "bash scripts/valgrind-test.sh",
    "memory:asan": "bash scripts/sanitizers-test.sh",
    "//bench": "benchmarks",
    "bench": "cd benchmark && npm install && npm run bench",
    "bench:memory": "cd benchmark && npm install && npm run bench:memory",
    "bench:full": "cd benchmark && npm install && npm run bench && npm run bench:memory",
    "//stress": "stress tests",
    "stress": "cd benchmark && npm install && cd .. && tsx scripts/stress-test.ts",
    "stress:validate": "node --expose-gc node_modules/jest/bin/jest.js --no-coverage benchmark/stress-test.test.ts",
    "stress:ci": "cd benchmark && npm install && cd .. && tsx scripts/stress-test.ts --ci --output-file stress-test-results.json",
    "//security": "security scanning",
    "security": "run-s security:audit security:osv",
    "security:audit": "npm audit --production",
    "security:audit:fix": "npm audit fix --force",
    "security:osv": "osv-scanner scan --recursive . || true",
    "//docs": "documentation",
    "docs": "typedoc",
    "//ci": "CI and release commands",
    "precommit": "npx --yes tsx scripts/precommit.ts",
    "release:prepare": "npm run build:dist",
    "update:actions": "pinact run -u",
    "install:osv-scanner": "go install github.com/google/osv-scanner/cmd/osv-scanner@latest",
    "install:actions": "go install github.com/suzuki-shunsuke/pinact/cmd/pinact@latest"
  },
  "gypfile": true,
  "publishConfig": {
    "access": "public"
  },
  "engines": {
    "node": ">=20.0.0"
  },
  "os": [
    "darwin",
    "linux",
    "win32"
  ],
  "cpu": [
    "x64",
    "arm64"
  ],
  "keywords": [
    "sqlite",
    "node:sqlite",
    "drop-in-replacement",
    "database",
    "sql",
    "native",
    "node-addon",
    "DatabaseSync",
    "StatementSync",
    "sync",
    "performance"
  ],
  "dependencies": {
    "node-addon-api": "^8.7.0",
    "node-gyp-build": "^4.8.4"
  },
  "devDependencies": {
    "@photostructure/sqlite-vec": "^1.1.1",
    "@types/jest": "^30.0.0",
    "@types/node": "^25.6.0",
    "better-sqlite3": "^12.9.0",
    "cross-env": "^10.1.0",
    "del-cli": "^7.0.0",
    "eslint": "^9.39.2",
    "eslint-plugin-regexp": "^3.1.0",
    "eslint-plugin-security": "^4.0.0",
    "globals": "^17.5.0",
    "jest": "^30.3.0",
    "node-gyp": "^12.2.0",
    "npm-check-updates": "^19.6.3",
    "npm-run-all2": "8.0.4",
    "prebuildify": "^6.0.1",
    "prettier": "^3.8.3",
    "prettier-plugin-organize-imports": "^4.3.0",
    "ts-jest": "^29.4.9",
    "tsup": "^8.5.1",
    "tsx": "^4.21.0",
    "typedoc": "^0.28.19",
    "typescript": "^5.9.3",
    "typescript-eslint": "^8.56.1"
  },
  "versions": {
    "nodejs": "v25.x-staging@ffa9b8f",
    "sqlite": "3.53.0"
  }
}
