{ "name": "root", "scripts": { "build": "lerna run build", "bootstrap": "npm-run-all bootstrap:lerna build", "bootstrap:lerna": "lerna bootstrap --hoist --strict --force-local", "changelog": "lerna-changelog", "link": "lerna link --force-local", "generate:changelog": "lerna-changelog", "prepublishOnly": "npm run build", "publish": "lerna publish --exact", "publish:canary": "lerna publish --preid canary --dist-tag canary --exact", "test": "npm-run-all build test:node test:browser lint", "test:node": "jest", "test:optimizer:snapshot": "OPTIMIZER_SNAPSHOT=true jest", "test:page-experience:snapshot": "PAGE_EXPERIENCE_SNAPSHOT=true jest", "test:browser": "karma start --single-run --browsers ChromeHeadless karma.conf.js", "format": "prettier --config=prettier.config.js --write '**/*.{js,ts}'", "lint": "eslint -c .eslintrc.json .", "lint:fix": "eslint -c .eslintrc.json --fix '**/*.{js,ts}'" }, "repository": { "type": "git", "url": "git+https://github.com/ampproject/amp-toolbox.git" }, "devDependencies": { "@ampproject/rollup-plugin-closure-compiler": "0.27.0", "@babel/core": "7.13.10", "@types/cheerio": "0.22.35", "@types/debug": "4.1.5", "@types/diff": "5.0.0", "@types/escape-html": "1.0.0", "@types/jest": "29.5.12", "@types/nock": "11.1.0", "@types/node-fetch": "2.5.8", "@typescript-eslint/eslint-plugin": "7.10.0", "@typescript-eslint/parser": "7.10.0", "amphtml-validator": "1.0.35", "babel-plugin-filter-imports": "4.0.0", "colorette": "1.2.2", "cssnano-simple": "2.0.0", "diff": "5.0.0", "eslint": "8.56.0", "eslint-config-google": "0.14.0", "eslint-config-prettier": "8.5.0", "eslint-plugin-prettier": "4.0.0", "execa": "5.0.0", "fetch-mock": "9.11.0", "file-url": "3.0.0", "html-minifier": "4.0.0", "husky": "5.2.0", "jest": "29.7.0", "jimp": "0.16.1", "js-beautify": "1.13.5", "karma": "6.4.0", "karma-chrome-launcher": "3.1.1", "karma-jasmine": "4.0.1", "lerna": "7.4.2", "lerna-changelog": "2.2.0", "lint-staged": "10.5.4", "lru-cache": "6.0.0", "mock-express-request": "0.2.2", "mock-express-response": "0.3.0", "nanoid": "3.1.22", "needle": "2.6.0", "nock": "13.0.11", "npm-run-all": "4.1.5", "prettier": "2.2.1", "prettier-eslint": "12.0.0", "probe-image-size": "7.0.1", "rollup": "2.42.3", "rollup-plugin-babel": "4.4.0", "rollup-plugin-commonjs": "10.1.0", "rollup-plugin-filesize": "9.1.1", "rollup-plugin-json": "4.0.0", "rollup-plugin-node-resolve": "5.2.0", "rollup-plugin-serve": "1.1.0", "semver": "7.3.4", "tap-parser": "10.1.0", "tar": "6.1.11", "throat": "6.0.1", "ts-jest": "29.1.3", "typescript": "5.4.5" }, "dependencies": { "@ampproject/toolbox-cache-list": "file:packages/cache-list", "@ampproject/toolbox-cache-url": "file:packages/cache-url", "@ampproject/toolbox-cli": "file:packages/cli", "@ampproject/toolbox-core": "file:packages/core", "@ampproject/toolbox-cors": "file:packages/cors", "@ampproject/toolbox-linter": "file:packages/linter", "@ampproject/toolbox-optimizer": "file:packages/optimizer", "@ampproject/toolbox-optimizer-express": "file:packages/optimizer-express", "@ampproject/toolbox-page-experience": "file:packages/page-experience", "@ampproject/toolbox-runtime-fetch": "file:packages/runtime-fetch", "@ampproject/toolbox-runtime-version": "file:packages/runtime-version", "@ampproject/toolbox-script-csp": "file:packages/script-csp", "@ampproject/toolbox-update-cache": "file:packages/update-cache", "@ampproject/toolbox-validator-rules": "file:packages/validator-rules", "toolbox-optimizer-docker": "file:packages/optimizer-docker" }, "husky": { "hooks": { "pre-push": "npm test", "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,ts}": [ "eslint -c .eslintrc.json --cache --fix", "prettier --write" ] } }