UNPKG

@sprucelabs/spruce-event-utils

Version:

Some helpful utilities to speed up working with Mercury! 🚅

103 lines (102 loc) • 3.77 kB
{ "name": "@sprucelabs/spruce-event-utils", "publishConfig": { "access": "public" }, "version": "42.0.27", "files": [ "build/**/*", "!build/__tests__" ], "main": "./build/index.js", "types": "./build/index.d.ts", "module": "./build/esm/index.js", "sideEffects": false, "license": "MIT", "skill": { "namespace": "spruceEventUtils", "upgradeIgnoreList": [ "@sprucelabs/spruce-test-fixtures" ] }, "description": "Some helpful utilities to speed up working with Mercury! 🚅", "keywords": [ "node", "sprucelabs" ], "homepage": "https://github.com/sprucelabsai/spruce-event-utils", "bugs": { "url": "https://github.com/sprucelabsai/spruce-event-utils/issues" }, "scripts": { "build.ci": "yarn run build.tsc && yarn run build.resolve-paths && yarn run lint", "build.copy-files": "mkdir -p build && rsync -avzq --exclude='*.ts' ./src/ ./build/", "build.dev": "yarn run build.tsc --sourceMap ; yarn run resolve-paths.lint", "build.dist": "tsc --project tsconfig.dist.json && yarn build.resolve-paths && mv build esm && yarn build.esm-postbuild && yarn build.tsc && yarn build.resolve-paths && mv esm build/ && yarn clean.dist", "build.esm-postbuild": "esm-postbuild --target esm --patterns '**/*.js'", "build.resolve-paths": "resolve-path-aliases --target build --patterns '**/*.js,**/*.d.ts'", "build.tsc": "yarn run build.copy-files && tsc", "clean": "yarn run clean.build", "clean.all": "yarn run clean.dependencies && yarn run clean.build", "clean.build": "rm -rf build/", "clean.dependencies": "rm -rf node_modules/ package-lock.json yarn.lock", "clean.dist": "rm -rf build/__tests__ build/esm/__tests__", "fix.lint": "eslint --fix --cache '**/*.ts'", "lint": "eslint --cache '**/*.ts'", "lint.tsc": "tsc -p . --noEmit", "post.watch.build": "yarn run build.copy-files && yarn run build.resolve-paths", "rebuild": "yarn run clean.all && yarn install && yarn run build.dev", "release": "semantic-release", "resolve-paths.lint": "yarn run build.resolve-paths ; yarn run lint", "test": "jest", "update.dependencies": "yarn run clean.dependencies && yarn", "watch.build.dev": "tsc-watch --sourceMap --onCompilationComplete 'yarn run post.watch.build'", "watch.rebuild": "yarn run clean.all && yarn install && yarn run watch.build.dev", "watch.tsc": "tsc -w" }, "dependencies": { "@sprucelabs/error": "^8.0.14", "@sprucelabs/mercury-types": "^49.0.28", "@sprucelabs/schema": "^33.0.24", "@sprucelabs/spruce-core-schemas": "^42.0.29", "@sprucelabs/spruce-skill-utils": "^33.0.28", "@sprucelabs/test-utils": "^7.1.2" }, "devDependencies": { "@sprucelabs/esm-postbuild": "^9.0.12", "@sprucelabs/jest-json-reporter": "^10.0.17", "@sprucelabs/resolve-path-aliases": "^4.0.12", "@sprucelabs/semantic-release": "^6.0.0", "@sprucelabs/test": "^11.0.5", "@types/memoizee": "^0.4.12", "@types/node": "^25.0.3", "chokidar-cli": "^3.0.0", "eslint": "^9.39.2", "eslint-config-spruce": "^11.2.26", "jest": "^30.2.0", "jest-circus": "^30.2.0", "prettier": "^3.7.4", "ts-node": "^10.9.2", "tsc-watch": "^7.2.0", "tsconfig-paths": "^4.2.0", "typescript": "^5.9.3" }, "jest": { "maxWorkers": 4, "testTimeout": 300000, "testEnvironment": "node", "testPathIgnorePatterns": [ "<rootDir>/tmp/", "<rootDir>/src/", "<rootDir>/node_modules/", "<rootDir>/build/__tests__/testDirsAndFiles/", "<rootDir>/build/esm/" ], "testMatch": [ "**/__tests__/**/*.test.js?(x)" ], "moduleNameMapper": { "^#spruce/(.*)$": "<rootDir>/build/.spruce/$1" } } }