{ "name": "replicache", "description": "Offline-First for Every Application", "version": "0.9.0", "repository": "github:rocicorp/replicache-sdk-js", "scripts": { "test": "web-test-runner src/replicache.test.ts --playwright --browsers chromium firefox", "test:watch": "web-test-runner src/replicache.test.ts --playwright --browsers chromium firefox webkit --watch", "format": "prettier --write '{src,sample}/**/*.{js,jsx,json,ts,tsx,html,css,md}' '*.{js,jsx,json,ts,tsx,html,css,md}'", "check-format": "prettier --check '{src,sample}/**/*.{js,jsx,json,ts,tsx,html,css,md}' '*.{js,jsx,json,ts,tsx,html,css,md}'", "lint": "eslint --ext .ts src/", "doc": "typedoc --name Replicache --mode library --exclude node_modules --exclude src/*.test.ts --excludeNotExported --excludePrivate --excludeProtected --out docs --excludeExternals src/mod.ts", "build": "tsc && rm -rf out/wasm && mkdir out/wasm && cp -R src/wasm/* out/wasm", "build:watch": "tsc --watch", "build:cjs": "tsc --outDir out.cjs --module CommonJS && rm -rf out.cjs/wasm && mkdir out.cjs/wasm && cp -R src/wasm/* out.cjs/wasm", "start:diff-server": "bin/diff-server --db=/tmp/diffs serve", "postinstall": "rm -f node_modules/fetch-mock/esm/client.d.ts && tool/get-deps.sh", "prepublishOnly": "tool/validate-binaries-for-publish.js && npm run lint && npm run test && rm -rf out && npm run build && rm -rf out.cjs && npm run build:cjs", "perf": "node perf/runner.mjs" }, "bin": { "diff-server": "bin/diff-server" }, "devDependencies": { "@esm-bundle/chai": "^4.1.5", "@types/mocha": "^8.0.3", "@types/sinon": "^9.0.5", "@typescript-eslint/eslint-plugin": "^4.5.0", "@typescript-eslint/parser": "^4.5.0", "@web/dev-server": "0.0.10", "@web/dev-server-esbuild": "^0.2.4", "@web/test-runner": "^0.7.23", "@web/test-runner-playwright": "^0.5.6", "benchmark": "^2.1.4", "eslint": "^7.11.0", "fetch-mock": "^9.10.7", "get-port": "^5.1.1", "playwright": "^1.4.1", "prettier": "^2.1.2", "sinon": "^9.0.3", "typedoc": "^0.17.0-3", "typescript": "^4.0.3" }, "module": "out/mod.js", "main": "out.cjs/mod.js", "types": "out/mod.js", "dependencies": {}, "files": [ "out", "out.cjs", "tool/get-deps.sh" ] }