its-compiler-js
Version:
JavaScript/TypeScript implementation of the Instruction Template Specification (ITS) compiler
130 lines (129 loc) • 3.64 kB
JSON
{
"name": "its-compiler-js",
"version": "1.1.0",
"type": "module",
"description": "JavaScript/TypeScript implementation of the Instruction Template Specification (ITS) compiler",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"exports": {
".": {
"import": "./dist/index.js",
"types": "./dist/index.d.ts"
}
},
"bin": {
"its-compile": "dist/cli.js"
},
"scripts": {
"build": "tsc",
"dev": "tsc --watch",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",
"lint": "eslint src/**/*.ts",
"lint:fix": "eslint src/**/*.ts --fix",
"format": "prettier --write src/**/*.ts",
"prepublishOnly": "npm run build",
"clean": "rimraf dist",
"release:patch": "npm test && npm run lint && npm version patch && git push --follow-tags",
"release:minor": "npm test && npm run lint && npm version minor && git push --follow-tags",
"release:major": "npm test && npm run lint && npm version major && git push --follow-tags"
},
"keywords": [
"template",
"compiler",
"ai",
"prompt",
"its",
"instruction-template-specification",
"typescript",
"javascript",
"prompt-engineering",
"ai-templates",
"template-engine",
"prompt-templates",
"npm-package"
],
"author": "Your Name",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/AlexanderParker/its-compiler-js.git"
},
"bugs": {
"url": "https://github.com/AlexanderParker/its-compiler-js/issues"
},
"homepage": "https://github.com/AlexanderParker/its-compiler-js#readme",
"dependencies": {
"chalk": "^5.3.0",
"chokidar": "^3.5.3",
"commander": "^11.0.0",
"jsep": "^1.4.0",
"node-fetch": "^3.3.2"
},
"devDependencies": {
"@eslint/js": "^9.0.0",
"@types/jest": "^29.0.0",
"@types/node": "^20.0.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-prettier": "^5.0.0",
"globals": "^16.3.0",
"jest": "^29.0.0",
"prettier": "^3.0.0",
"rimraf": "^5.0.0",
"ts-jest": "^29.0.0",
"typescript": "^5.0.0"
},
"files": [
"dist/**/*",
"README.md",
"LICENSE"
],
"engines": {
"node": ">=16.0.0"
},
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"testMatch": [
"**/tests/**/*test*.ts",
"**/tests/**/*spec*.ts"
],
"testPathIgnorePatterns": [
"/node_modules/",
"setup\\.ts$"
],
"transform": {
"^.+\\.ts$": [
"ts-jest",
{
"useESM": true
}
]
},
"setupFilesAfterEnv": [
"<rootDir>/tests/setup.ts"
],
"collectCoverageFrom": [
"src/**/*.ts",
"!src/**/*.d.ts",
"!src/cli.ts"
],
"coverageDirectory": "coverage",
"coverageReporters": [
"text",
"lcov",
"html"
],
"moduleNameMapper": {
"^(\\.{1,2}/.*)\\.js$": "$1"
},
"extensionsToTreatAsEsm": [
".ts"
],
"testTimeout": 10000
}
}