UNPKG

fluent-transpiler

Version:

Transpile Fluent (ftl) files into optimized, tree-shakable, JavaScript EcmaScript Modules (esm).

104 lines (103 loc) 3.85 kB
{ "workspaces": [ ".github" ], "name": "fluent-transpiler", "version": "0.5.0", "description": "Transpile Fluent (ftl) files into optimized, tree-shakable, JavaScript EcmaScript Modules (esm).", "main": "index.js", "types": "index.d.ts", "type": "module", "sideEffects": false, "exports": { ".": { "types": "./index.d.ts", "default": "./index.js" } }, "engines": { "node": ">=24" }, "engineStrict": true, "bin": { "ftl": "cli.js" }, "files": [ "cli.js", "index.js", "index.d.ts" ], "scripts": { "prepare": "husky", "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": "npm run test:lint", "git:unit-staged": "node --test", "git:test-staged": "npm run git:unit-staged", "lint": "biome check --write --no-errors-on-unmatched", "test": "npm run test:lint && npm run test:unit && npm run test:types && npm run test:sast && npm run test:perf && npm run test:dast", "test:lint": "biome check --staged --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.js", "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": "gitleaks detect --source . --redact --no-banner", "test:sast:license": "license-check-and-add check -f license.json", "test:sast:lockfile": "lockfile-lint --path package-lock.json --type npm --allowed-schemes \"https:\" --allowed-hosts npm --validate-integrity --validate-package-names", "test:sast:semgrep": "semgrep scan --config auto", "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 --exit-code 1 --disable-telemetry .", "test:sast:trufflehog": "trufflehog filesystem --only-verified --log-level=-1 ./", "test:sast:zizmor": "zizmor .github/workflows/", "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.json", "release:license:remove": "license-check-and-add remove -f license.json" }, "repository": { "type": "git", "url": "git+https://github.com/willfarrell/fluent-transpiler.git" }, "keywords": [ "Fluent", "@fluent", "ftl", "localization", "l10n", "internationalization", "i18n", "ast", "compiler", "transpiler" ], "author": "willfarrell", "license": "MIT", "bugs": { "url": "https://github.com/willfarrell/fluent-transpiler/issues" }, "homepage": "https://github.com/willfarrell/fluent-transpiler", "dependencies": { "@fluent/syntax": "0.19.0", "change-case": "5.4.4", "commander": "14.0.3" }, "devDependencies": { "@biomejs/biome": "^2.0.0", "@commitlint/cli": "^21.0.0", "@commitlint/config-conventional": "^21.0.0", "@fluent/bundle": "^0.19.0", "fast-check": "^4.0.0", "husky": "^9.0.0", "license-check-and-add": "4.0.5", "tinybench": "^6.0.0", "tstyche": "^7.0.0" }, "funding": { "type": "github", "url": "https://github.com/sponsors/willfarrell" } }