wireit
Version:
Upgrade your npm scripts to make them smarter and more efficient
474 lines (473 loc) • 11.7 kB
JSON
{
"name": "wireit",
"version": "0.15.0",
"description": "Upgrade your npm scripts to make them smarter and more efficient",
"author": "Google LLC",
"license": "Apache-2.0",
"repository": {
"type": "git",
"url": "https://github.com/google/wireit.git"
},
"type": "module",
"bin": {
"wireit": "bin/wireit.js"
},
"files": [
"bin/wireit.js",
"lib/**/*.js",
"!lib/test/**",
"schema.json",
"wireit.svg"
],
"engines": {
"node": ">=18.0.0"
},
"scripts": {
"build": "wireit",
"lint": "wireit",
"prepack": "npm run build",
"format": "prettier . -w",
"format:check": "prettier . -c",
"test": "wireit",
"test:headless": "wireit",
"test:local": "wireit",
"test:analysis": "wireit",
"test:basic": "wireit",
"test:cache-github-fake": "wireit",
"test:cache-github-real": "wireit",
"test:cache-local": "wireit",
"test:clean": "wireit",
"test:cli-options": "wireit",
"test:codeactions": "wireit",
"test:copy": "wireit",
"test:delete": "wireit",
"test:diagnostic": "wireit",
"test:errors-analysis": "wireit",
"test:errors-usage": "wireit",
"test:failures": "wireit",
"test:freshness": "wireit",
"test:fs": "wireit",
"test:ide": "wireit",
"test:gc": "wireit",
"test:glob": "wireit",
"test:json-schema": "wireit",
"test:local-cache": "wireit",
"test:metrics": "wireit",
"test:optimize-mkdirs": "wireit",
"test:parallelism": "wireit",
"test:quiet": "wireit",
"test:service": "wireit",
"test:watch": "wireit"
},
"wireit": {
"build": {
"command": "tsc --build --pretty",
"files": [
"src/**/*.ts",
"tsconfig.json"
],
"output": [
"lib/**",
".tsbuildinfo"
],
"clean": "if-file-deleted"
},
"test": {
"dependencies": [
"test:headless",
"./vscode-extension:test"
]
},
"test:headless": {
"dependencies": [
"test:cache-github-fake",
"test:local"
]
},
"test:local": {
"#comment": "Run tests that don't require network access.",
"dependencies": [
"test:analysis",
"test:basic",
"test:cache-local",
"test:clean",
"test:cli-options",
"test:codeactions",
"test:copy",
"test:delete",
"test:diagnostic",
"test:errors-analysis",
"test:errors-usage",
"test:failures",
"test:freshness",
"test:fs",
"test:glob",
"test:ide",
"test:gc",
"test:json-schema",
"test:local-cache",
"test:metrics",
"test:optimize-mkdirs",
"test:parallelism",
"test:quiet",
"test:service",
"test:watch"
]
},
"lint": {
"dependencies": [
"build"
],
"#comment": "Need to build first so that the vscode-extension lint can see our types.",
"command": "eslint --color --cache --cache-location .eslintcache .",
"files": [
"eslint.config.js",
"bin/*.js"
],
"output": []
},
"test:analysis": {
"command": "node --test --test-reporter=dot lib/test/analysis.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:basic": {
"command": "node --test --test-reporter=dot lib/test/basic.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:cache-github-fake": {
"command": "node --test --test-reporter=dot lib/test/cache-github-fake.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:cache-github-real": {
"#comment": "Only works on GitHub CI",
"command": "node --test --test-reporter=dot lib/test/cache-github-real.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:cache-local": {
"command": "node --test --test-reporter=dot lib/test/cache-local.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:local-cache": {
"command": "node --test --test-reporter=dot lib/test/local-cache.test.js lib/test/fingerprint.test.js lib/test/cache-root.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:clean": {
"command": "node --test --test-reporter=dot lib/test/clean.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:cli-options": {
"command": "node --test --test-reporter=dot lib/test/cli-options.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:codeactions": {
"command": "node --test --test-reporter=dot lib/test/codeactions.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:copy": {
"command": "node --test --test-reporter=dot lib/test/copy.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:delete": {
"command": "node --test --test-reporter=dot lib/test/delete.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:diagnostic": {
"command": "node --test --test-reporter=dot lib/test/diagnostic.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:errors-analysis": {
"command": "node --test --test-reporter=dot lib/test/errors-analysis.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:errors-usage": {
"command": "node --test --test-reporter=dot lib/test/errors-usage.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:failures": {
"command": "node --test --test-reporter=dot lib/test/failures.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:freshness": {
"command": "node --test --test-reporter=dot lib/test/freshness.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:gc": {
"command": "node --expose-gc lib/test/gc.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:glob": {
"command": "node --test --test-reporter=dot lib/test/glob.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:ide": {
"command": "node --test --test-reporter=dot lib/test/ide.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:json-schema": {
"command": "node --test --test-reporter=dot lib/test/json-schema.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [
"schema.json"
],
"output": []
},
"test:metrics": {
"command": "node --test --test-reporter=dot lib/test/metrics.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:optimize-mkdirs": {
"command": "node --test --test-reporter=dot lib/test/optimize-mkdirs.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:parallelism": {
"command": "node --test --test-reporter=dot lib/test/parallelism.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:quiet": {
"command": "node --test --test-reporter=dot lib/test/quiet-logger.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:service": {
"command": "node --test --test-reporter=dot lib/test/service.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:watch": {
"command": "node --test --test-reporter=dot lib/test/watch.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
},
"test:fs": {
"command": "node --test --test-reporter=dot lib/test/fs.test.js",
"env": {
"NODE_OPTIONS": "--enable-source-maps"
},
"dependencies": [
"build"
],
"files": [],
"output": []
}
},
"devDependencies": {
"@eslint/js": "^10.0.1",
"@types/glob-parent": "^5.1.3",
"@types/node": "^18.19.130",
"@types/node-forge": "^1.3.0",
"@types/picomatch": "^4.0.3",
"@types/proper-lockfile": "^4.1.2",
"@types/vscode": "^1.66.0",
"@vscode/test-electron": "^3.0.0",
"@vscode/vsce": "^4.0.0",
"cmd-shim": "^9.0.2",
"esbuild": "^0.28.1",
"eslint": "^10.5.0",
"eslint-plugin-no-only-tests": "^3.1.0",
"jsonc-parser": "^3.0.0",
"jsonschema": "^1.4.0",
"pnpm": "^12.15.0",
"prettier": "^3.3.3",
"selfsigned": "^5.2.0",
"typescript": "^6.0.3",
"typescript-eslint": "^8.4.0",
"vscode-languageclient": "^11.0.0",
"vscode-languageserver": "^11.0.0",
"vscode-languageserver-textdocument": "^1.0.4",
"wireit": "^0.14.13",
"yarn": "^1.22.18"
},
"prettier": {
"singleQuote": true,
"bracketSpacing": false
},
"dependencies": {
"brace-expansion": "^5.0.6",
"chokidar": "^4.0.3",
"fast-glob": "^3.2.11",
"glob-parent": "^6.0.2",
"jsonc-parser": "^3.0.0",
"picomatch": "^4.0.7",
"proper-lockfile": "^4.1.2"
},
"workspaces": [
"vscode-extension"
]
}