UNPKG

@bufbuild/cel

Version:

A CEL evaluator for ECMAScript

62 lines (61 loc) 1.89 kB
{ "name": "@bufbuild/cel", "version": "0.3.0", "description": "A CEL evaluator for ECMAScript", "keywords": [ "javascript", "typescript", "protobuf", "cel", "common-expression-language" ], "license": "Apache-2.0", "repository": { "type": "git", "url": "git+https://github.com/bufbuild/cel-es.git", "directory": "packages/cel" }, "scripts": { "generate": "cd ./src && peggy cel.peggy --format bare --extra-options '{\"typescript\":true}' --plugin peggy-ts -o parser.ts", "postgenerate": "biome format src/parser.ts --write", "test": "npx tsx --test ./src/*.test.ts ./src/*/*.test.ts", "prebuild": "rm -rf ./dist/*", "build": "npm run build:cjs && npm run build:esm", "build:cjs": "tsc --project tsconfig.json --module commonjs --verbatimModuleSyntax false --moduleResolution node10 --outDir ./dist/cjs && echo >./dist/cjs/package.json '{\"type\":\"commonjs\"}'", "build:esm": "tsc --project tsconfig.json --outDir ./dist/esm", "format": "biome format --write", "lint": "biome lint --error-on-warnings", "attw": "attw --pack", "license-header": "license-header --ignore 'src/parser.ts'" }, "type": "module", "sideEffects": false, "main": "./dist/cjs/index.js", "types": "./dist/cjs/index.d.ts", "exports": { ".": { "import": "./dist/esm/index.js", "require": "./dist/cjs/index.js" }, "./ext/strings": { "import": "./dist/esm/ext/strings/index.js", "require": "./dist/cjs/ext/strings/index.js" } }, "typesVersions": { "*": { "ext/strings": ["./dist/cjs/ext/strings/index.d.ts"] } }, "peerDependencies": { "@bufbuild/protobuf": "^2.6.2" }, "dependencies": { "@bufbuild/cel-spec": "0.3.0" }, "devDependencies": { "peggy": "^4.0.3", "peggy-ts": "github:hudlow/peggy-ts", "expect-type": "^1.2.1" } }