typed-string-interpolation
Version:
String interpolation with correct return type based on passed variable substitutions
66 lines (65 loc) • 1.82 kB
JSON
{
"name": "typed-string-interpolation",
"description": "String interpolation with correct return type based on passed variable substitutions",
"author": "Mikko Vänskä",
"repository": "https://github.com/vanska/typed-string-interpolation",
"license": "MIT",
"version": "0.0.12",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"files": [
"/dist"
],
"private": false,
"keywords": [
"string",
"interpolation",
"substitution",
"injection",
"replace",
"inject",
"substitute",
"interpolate",
"variable",
"variables",
"type",
"typed",
"infer",
"type-safe",
"i18n",
"l10n",
"i18next",
"formatjs"
],
"scripts": {
"lint": "tsc",
"test:unit": "jest",
"test:unit:types": "jest -c jest.config.tsd.js",
"test:unit:watch": "jest --watch",
"test:unit:types:watch": "jest -c jest.config.tsd.js --watch",
"test:unit:all:watch": "concurrently --raw \"npm run test:unit:watch\" \"npm run test:unit:types:watch\"",
"test": "npm run test:unit && npm run test:unit:types",
"build": "tsup src/index.ts --format cjs,esm --dts --minify",
"release": "npm run build && changeset publish",
"create-release": "npm run format && changeset",
"format": "prettier --write \"src/**/*.ts\""
},
"devDependencies": {
"@babel/core": "^7.20.12",
"@babel/preset-env": "^7.20.2",
"@babel/preset-typescript": "^7.18.6",
"@changesets/cli": "^2.26.0",
"@tsd/typescript": "^4.9.4",
"@types/jest": "^29.2.5",
"babel-jest": "^29.3.1",
"concurrently": "^8.2.0",
"jest": "^29.3.1",
"jest-runner-tsd": "^4.0.0",
"prettier": "^3.6.2",
"ts-node": "^10.9.1",
"tsd-lite": "^0.6.0",
"tsup": "^6.5.0",
"typescript": "^4.9.4"
}
}