| { |
| "name": "gremlin", |
| "version": "4.0.0-alpha1", |
| "description": "JavaScript Gremlin Language Variant", |
| "author": { |
| "name": "Apache TinkerPop team" |
| }, |
| "keywords": [ |
| "graph", |
| "gremlin", |
| "tinkerpop", |
| "apache-tinkerpop", |
| "connection", |
| "glv", |
| "driver", |
| "database", |
| "graphdb" |
| ], |
| "license": "Apache-2.0", |
| "type": "module", |
| "main": "./build/cjs/index.cjs", |
| "types": "./build/esm/index.d.ts", |
| "exports": { |
| ".": { |
| "import": "./build/esm/index.js", |
| "require": "./build/cjs/index.cjs", |
| "types": "./build/esm/index.d.ts" |
| }, |
| "./language": { |
| "import": "./build/esm/language/index.js", |
| "types": "./build/esm/language/index.d.ts" |
| } |
| }, |
| "typesVersions": { |
| "*": { |
| "language": ["./build/esm/language/index.d.ts"] |
| } |
| }, |
| "files": [ |
| "build" |
| ], |
| "dependencies": { |
| "antlr4ng": "3.0.16", |
| "buffer": "^6.0.3", |
| "eventemitter3": "^5.0.1", |
| "readable-stream": "^4.5.2", |
| "uuid": "^9.0.1" |
| }, |
| "optionalDependencies": { |
| "@aws-sdk/credential-providers": "^3.967.0", |
| "@smithy/hash-node": "^4.2.12", |
| "@smithy/signature-v4": "^5.3.12" |
| }, |
| "devDependencies": { |
| "@cucumber/cucumber": "~12.7.0", |
| "@eslint/js": "^9.16.0", |
| "@knighted/duel": "^4.0.2", |
| "@tsconfig/node18": "^18.2.2", |
| "@types/readable-stream": "^4.0.10", |
| "@types/uuid": "^9.0.8", |
| "antlr-ng": "^1.0.10", |
| "chai": "~4.5.0", |
| "chai-string": "~1.5.0", |
| "colors": "1.4.0", |
| "cross-env": "^10.1.0", |
| "eslint": "^9.36.0", |
| "eslint-config-prettier": "^10.0.1", |
| "eslint-plugin-prettier": "^5.0.0", |
| "globals": "^15.14.0", |
| "js-yaml": "^3.14.2", |
| "mocha": "^11.7.5", |
| "prettier": "^3.0.0", |
| "ts-node": "^10.9.2", |
| "typedoc": "^0.28.18", |
| "typescript": "^5.4.2" |
| }, |
| "repository": { |
| "type": "git", |
| "url": "https://github.com/apache/tinkerpop.git" |
| }, |
| "homepage": "https://tinkerpop.apache.org/", |
| "bugs": { |
| "url": "https://issues.apache.org/jira/browse/TINKERPOP" |
| }, |
| "scripts": { |
| "generate": "mkdir -p lib/language/grammar && antlr-ng -Dlanguage=TypeScript -visitor --generate-listener --exact-output-dir -o lib/language/grammar ../../gremlin-language/src/main/antlr4/Gremlin.g4", |
| "prebuild": "node scripts/patch-antlr4ng.js && npm run generate", |
| "_prebuild_note": "patch-antlr4ng.js is a build-time stop-gap for antlr4ng missing .d.cts CJS type declarations (antlr4ng issues #23/#26). antlr4ng is pinned to an exact version in dependencies. Before upgrading antlr4ng, verify the patch still applies or that upstream has fixed the issue.", |
| "build": "rm -rf build && duel --dirs", |
| "prepare": "npm run generate && npm run build", |
| "test": "npm run unit-test && npm run integration-test", |
| "unit-test": "cross-env TS_NODE_PROJECT='tsconfig.test.json' mocha 'test/unit/**/*.{js,ts}'", |
| "integration-test": "npm run integration-test-graphbinary", |
| "integration-test-graphbinary": "cross-env TS_NODE_PROJECT='tsconfig.test.json' CLIENT_MIMETYPE='application/vnd.graphbinary-v4.0' mocha test/integration -t 5000", |
| "TODO": "# test other mime types like graphbinary stringd", |
| "features": "npm run features-graphbinary", |
| "features-graphbinary": "cross-env NODE_OPTIONS='--loader ts-node/esm' TS_NODE_PROJECT='tsconfig.test.json' CLIENT_MIMETYPE='application/vnd.graphbinary-v4.0' cucumber-js --tags \"not @DataBigDecimal and not @DataBigInt and not @DataUUID and not @DataLong and not @StepWrite\" --import test/cucumber ../../gremlin-test/src/main/resources/org/apache/tinkerpop/gremlin/test/features/", |
| "features-docker": "npm run features-graphbinary-docker", |
| "features-graphbinary-docker": "cross-env NODE_OPTIONS='--loader ts-node/esm' TS_NODE_PROJECT='tsconfig.test.json' CLIENT_MIMETYPE='application/vnd.graphbinary-v4.0' cucumber-js --tags \"not @DataBigDecimal and not @DataBigInt and not @DataUUID and not @DataLong and not @StepWrite\" --import test/cucumber ../gremlin-test/", |
| "lint": "eslint --ext .js .", |
| "doc": "typedoc --out doc --readme README.md --entryPointStrategy expand --entryPoints 'lib/**/*.ts' --tsconfig tsconfig.json --exclude 'lib/language/grammar/**'" |
| }, |
| "engines": { |
| "node": ">=22" |
| } |
| } |