94 lines
3.8 KiB
JSON
94 lines
3.8 KiB
JSON
{
|
|
"author": "Christoph Guttandin",
|
|
"bugs": {
|
|
"url": "https://github.com/chrisguttandin/worker-timers/issues"
|
|
},
|
|
"config": {
|
|
"commitizen": {
|
|
"path": "cz-conventional-changelog"
|
|
}
|
|
},
|
|
"contributors": [
|
|
{
|
|
"email": "a-anng@expedia.com",
|
|
"name": "Anthony Ng"
|
|
}
|
|
],
|
|
"dependencies": {
|
|
"@babel/runtime": "^7.29.2",
|
|
"tslib": "^2.8.1",
|
|
"worker-timers-broker": "^8.0.16",
|
|
"worker-timers-worker": "^9.0.14"
|
|
},
|
|
"description": "A replacement for setInterval() and setTimeout() which works in unfocused windows.",
|
|
"devDependencies": {
|
|
"@babel/cli": "^7.28.6",
|
|
"@babel/core": "^7.29.0",
|
|
"@babel/plugin-external-helpers": "^7.27.1",
|
|
"@babel/plugin-transform-runtime": "^7.29.0",
|
|
"@babel/preset-env": "^7.29.2",
|
|
"@babel/register": "^7.28.6",
|
|
"@commitlint/cli": "^20.5.0",
|
|
"@commitlint/config-angular": "^20.5.0",
|
|
"@rollup/plugin-babel": "^7.0.0",
|
|
"@rollup/plugin-replace": "^6.0.3",
|
|
"@vitest/browser-webdriverio": "^4.0.18",
|
|
"babel-loader": "^10.1.1",
|
|
"commitizen": "^4.3.1",
|
|
"cz-conventional-changelog": "^3.3.0",
|
|
"eslint": "^8.57.0",
|
|
"eslint-config-holy-grail": "^61.0.11",
|
|
"husky": "^9.1.7",
|
|
"lint-staged": "^16.4.0",
|
|
"memfs": "^4.56.11",
|
|
"prettier": "^3.8.1",
|
|
"rimraf": "^6.1.3",
|
|
"rollup": "^4.59.0",
|
|
"terser-webpack-plugin": "^5.4.0",
|
|
"tsconfig-holy-grail": "^15.0.3",
|
|
"tslint": "^6.1.3",
|
|
"tslint-config-holy-grail": "^56.0.7",
|
|
"typescript": "^5.9.3",
|
|
"vitest": "^4.0.18",
|
|
"webpack": "^5.105.4",
|
|
"webpack-cli": "^6.0.1"
|
|
},
|
|
"files": [
|
|
"build/es2019/",
|
|
"build/es5/",
|
|
"src/"
|
|
],
|
|
"homepage": "https://github.com/chrisguttandin/worker-timers",
|
|
"keywords": [
|
|
"Web Workers",
|
|
"WindowTimers",
|
|
"clearInterval",
|
|
"clearTimeout",
|
|
"interval",
|
|
"setInterval",
|
|
"setTimeout"
|
|
],
|
|
"license": "MIT",
|
|
"main": "build/es5/bundle.js",
|
|
"module": "build/es2019/module.js",
|
|
"name": "worker-timers",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/chrisguttandin/worker-timers.git"
|
|
},
|
|
"scripts": {
|
|
"build": "rimraf build/* && webpack --config config/webpack/worker-es2019.js && tsc --project src/tsconfig.json && rollup --config config/rollup/bundle.mjs && babel ./build/es2019 --config-file ./config/babel/build.json --out-dir ./build/node",
|
|
"lint": "npm run lint:config && npm run lint:src && npm run lint:test",
|
|
"lint:config": "eslint --config config/eslint/config.json --ext .cjs --ext .js --ext .mjs --report-unused-disable-directives config/",
|
|
"lint:src": "tslint --config config/tslint/src.json --project src/tsconfig.json src/*.ts src/**/*.ts",
|
|
"lint:test": "eslint --config config/eslint/test.json --ext .js --report-unused-disable-directives test/",
|
|
"prepare": "husky",
|
|
"prepublishOnly": "npm run build",
|
|
"test": "npm run lint && npm run build && npm run test:integration-browser && npm run test:integration-node",
|
|
"test:integration-browser": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"integration\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"chrome\" -o \"$TARGET\" = \"firefox\" -o \"$TARGET\" = \"safari\" ]; then npx vitest --config config/vitest/integration.ts; fi",
|
|
"test:integration-node": "if [ \"$TYPE\" = \"\" -o \"$TYPE\" = \"integration\" ] && [ \"$TARGET\" = \"\" -o \"$TARGET\" = \"node\" ]; then npx vitest --browser.enabled false --config config/vitest/integration.ts; fi"
|
|
},
|
|
"types": "build/es2019/module.d.ts",
|
|
"version": "8.0.31"
|
|
}
|