ajv-ftl-i18n
Version:
Transpile Fluent (ftl) files into ajv error translations.
123 lines (122 loc) • 4.55 kB
JSON
{
"name": "ajv-ftl-i18n",
"version": "0.3.0",
"description": "Transpile Fluent (ftl) files into ajv error translations.",
"main": "index.js",
"types": "index.d.ts",
"type": "module",
"sideEffects": false,
"exports": {
".": {
"types": "./index.d.ts",
"default": "./index.js"
},
"./locale/*.js": "./locale/*.js",
"./locale/*.ftl": "./locale/*.ftl",
"./package.json": "./package.json"
},
"engines": {
"node": ">=24"
},
"bin": {
"ajv-ftl": "cli.js"
},
"files": [
"cli.js",
"commands/*.js",
"program.js",
"index.js",
"index.d.ts",
"transpile.js",
"transpile.d.ts",
"locale/*.js",
"locale/*.d.ts",
"locale/*.ftl"
],
"scripts": {
"prepare": "husky",
"prepack": "npm run build",
"git:pre-commit": "npm run git:lint-staged && npm run git:test-staged",
"git:commit-msg": "commitlint --config commitlint.config.cjs --edit",
"git:lint-staged": "biome check --staged --no-errors-on-unmatched",
"git:unit-staged": "node --test",
"git:test-staged": "npm run git:unit-staged",
"build": "./bin/build",
"lint": "biome check --write --no-errors-on-unmatched",
"test": "npm run test:lint && npm run build && npm run test:unit && npm run test:mutation && npm run test:types && npm run test:sast && npm run test:perf && npm run test:dast",
"test:lint": "biome ci --no-errors-on-unmatched",
"test:unit": "node --test --test-force-exit --experimental-test-coverage --test-coverage-lines=100 --test-coverage-branches=100 --test-coverage-functions=100 --test-coverage-exclude=locale/** --test-coverage-exclude=**/*.test.js --test-coverage-exclude=test/** ./test/*.js ./*.test.js",
"test:mutation": "stryker run",
"test:types": "tstyche",
"test:perf": "node --test --test-concurrency=1 ./*.perf.js",
"test:sast": "npm run test:sast:license && npm run test:sast:lockfile && npm run test:sast:semgrep && npm run test:sast:trufflehog && npm run test:sast:gitleaks && npm run test:sast:actionlint && npm run test:sast:zizmor && npm run test:sast:trivy",
"test:sast:actionlint": "actionlint",
"test:sast:gitleaks": "npm run test:sast:gitleaks:dir && npm run test:sast:gitleaks:git",
"test:sast:gitleaks:dir": "gitleaks dir . --redact --no-banner",
"test:sast:gitleaks:git": "gitleaks git . --redact --no-banner",
"test:sast:license": "license-check-and-add check -f .license.config.json",
"test:sast:lockfile": "lockfile-lint --path package-lock.json --type npm --allowed-hosts npm --validate-https",
"test:sast:semgrep": "semgrep scan --config auto --error",
"test:sast:trivy": "trivy fs --scanners vuln,license --include-dev-deps --ignored-licenses 0BSD,Apache-2.0,BSD-1-Clause,BSD-2-Clause,BSD-3-Clause,CC0-1.0,CC-BY-4.0,ISC,MIT,Python-2.0,LGPL-3.0-or-later,MPL-2.0,BlueOak-1.0.0,Unlicense --exit-code 1 --skip-files '**/bun.lock' --disable-telemetry .",
"test:sast:trufflehog": "trufflehog filesystem --only-verified --log-level=-1 ./",
"test:sast:zizmor": "zizmor .github",
"test:dast": "npm run test:dast:fuzz",
"test:dast:fuzz": "node --test ./*.fuzz.js",
"rm": "npm run rm:macos && npm run rm:node_modules && npm run rm:lock",
"rm:macos": "find . -name '.DS_Store' -type f -delete",
"rm:lock": "find . -name 'package-lock.json' -type f -delete",
"rm:node_modules": "find . -name 'node_modules' -type d -prune -exec rm -rf '{}' +",
"release:license:add": "license-check-and-add add -f .license.config.json",
"release:license:remove": "license-check-and-add remove -f .license.config.json"
},
"repository": {
"type": "git",
"url": "git+https://github.com/willfarrell/ajv-ftl-i18n.git"
},
"keywords": [
"Fluent",
"@fluent",
"ftl",
"localization",
"l10n",
"internationalization",
"i18n",
"ast",
"compiler",
"transpiler"
],
"author": "willfarrell",
"license": "MIT",
"bugs": {
"url": "https://github.com/willfarrell/ajv-ftl-i18n/issues"
},
"homepage": "https://github.com/willfarrell/ajv-ftl-i18n",
"dependencies": {
"commander": "15.0.0",
"fluent-transpiler": "0.6.0"
},
"devDependencies": {
"@biomejs/biome": "^2.0.0",
"@commitlint/cli": "^21.0.0",
"@commitlint/config-conventional": "^21.0.0",
"@stryker-mutator/core": "^9.0.0",
"ajv": "^8.18.0",
"ajv-errors": "^3.0.0",
"ajv-formats": "^3.0.1",
"fast-check": "^4.6.0",
"husky": "^9.0.0",
"license-check-and-add": "4.0.5",
"tinybench": "^6.0.0",
"tstyche": "^7.0.0"
},
"overrides": {
"qs": "^6.15.2"
},
"funding": {
"type": "github",
"url": "https://github.com/sponsors/willfarrell"
},
"workspaces": [
".github"
]
}