From 8f1fc39b254962eb46003dd3eae2382dc4bd04c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Hennequin?= Date: Tue, 17 Sep 2024 15:35:17 +0200 Subject: [PATCH] build: add project configuration --- package.json | 62 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 package.json diff --git a/package.json b/package.json new file mode 100644 index 0000000..b685f82 --- /dev/null +++ b/package.json @@ -0,0 +1,62 @@ +{ + "$schema": "https://json.schemastore.org/package.json", + "name": "@niquenen/gfm-toc", + "author": "niquenen", + "version": "0.1.0", + "type": "module", + "engines": { + "node": "^18.18.0 || ^20.9.0 || >=21.1.0" + }, + "homepage": "https://github.com/niquenen/gfm-toc#readme", + "license": "MIT", + "description": "Simple tool to create table of contents.", + "main": "./dist/index.js", + "bin": { + "gfm-toc": "./dist/index.js" + }, + "private": false, + "scripts": { + "postprepare": "is-ci || husky", + "start": "npm run build && node dist/index.js", + "build": "tsc", + "clean": "rimraf -g \"*(.|*.)tsbuildinfo\" dist", + "fclean": "npm run clean && rimraf node_modules", + "lint": "eslint", + "test": "" + }, + "repository": { + "type": "git", + "url": "git://github.com/niquenen/gfm-toc.git" + }, + "keywords": [ + "gfm", + "toc" + ], + "bugs": { + "url": "https://github.com/niquenen/gfm-toc/issues" + }, + "publishConfig": { + "registry": "https://npm.pkg.github.com" + }, + "devDependencies": { + "@commitlint/cli": "^19.5.0", + "@commitlint/config-conventional": "^19.5.0", + "@types/js-beautify": "^1.14.3", + "@types/mdast": "^4.0.4", + "@types/node": "^22.5.5", + "dom-serializer": "^2.0.0", + "esbuild": "^0.23.1", + "eslint": "^9.10.0", + "htmlparser2": "^9.1.0", + "husky": "^9.1.6", + "is-ci": "^3.0.1", + "js-beautify": "^1.15.1", + "mdast-util-from-markdown": "^2.0.1", + "mdast-util-gfm": "^3.0.0", + "mdast-util-to-markdown": "^2.1.0", + "micromark-extension-gfm": "^3.0.0", + "rimraf": "^6.0.1", + "typescript": "^5.6.2", + "typescript-eslint": "^8.6.0" + } +}