Set up tsconfig.json (declaration: true, DOM lib), package.json with main/types/files pointing at dist, and .gitignore for node_modules/dist so the library can be consumed with type declarations.
23 lines
547 B
JSON
23 lines
547 B
JSON
{
|
|
"name": "abstract-ts-table",
|
|
"version": "1.0.0",
|
|
"description": "A utility class for creating HTML tables.",
|
|
"type": "module",
|
|
"main": "dist/abstract-table.js",
|
|
"types": "dist/abstract-table.d.ts",
|
|
"files": ["dist"],
|
|
"scripts": {
|
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
"build": "tsc"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.centremetre.com/CentreMetre/abstract-ts-table"
|
|
},
|
|
"author": "CentreMetre",
|
|
"license": "MIT",
|
|
"devDependencies": {
|
|
"typescript": "^6.0.3"
|
|
}
|
|
}
|