From 5b8d7b4c4a8fbcf8c4066b5a69bdf595f1a5f834 Mon Sep 17 00:00:00 2001 From: Dmytro Bogatov <dmytro@dbogatov.org> Date: Wed, 24 Jun 2020 00:21:38 -0400 Subject: [PATCH] Prepare publishing. --- package.json | 9 ++++++--- tsconfig.json | 6 ++++-- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index aff1e5f..226f924 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "@dbogatov/broken-links-inspector", - "version": "0.1.2", + "version": "0.2.0", "description": "Extract and recursively check all URLs reporting broken ones", - "main": "index.js", + "main": "dist/index.js", + "types": "dist/index.d.ts", "directories": { "test": "test" }, @@ -10,7 +11,9 @@ "clean": "rm -rf .nyc_output coverage dist test-results.xml", "test": "mocha --reporter spec -r ts-node/register test/**/*.ts", "test-junit": "mocha --reporter mocha-junit-reporter -r ts-node/register test/**/*.ts", - "coverage": "nyc --reporter=html --reporter=cobertura --reporter=text -e .ts -n \"src/**/*.ts\" -x \"test/**/*.ts\" npm run test-junit" + "coverage": "nyc --reporter=html --reporter=cobertura --reporter=text -e .ts -n \"src/**/*.ts\" -x \"test/**/*.ts\" npm run test-junit", + "build": "tsc", + "prepare": "npm run build" }, "publishConfig": { "@dbogatov:registry": "https://git.dbogatov.org/api/v4/projects/227/packages/npm/" diff --git a/tsconfig.json b/tsconfig.json index 46b8ceb..3108f9c 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -9,12 +9,14 @@ "skipLibCheck": true, "forceConsistentCasingInFileNames": true, "noImplicitAny": true, - "sourceMap": true + "sourceMap": true, + "declaration": true }, "include": [ "src/**/*", ], "exclude": [ - "node_modules" + "node_modules", + "dist" ] } -- GitLab