diff --git a/package.json b/package.json index aff1e5f8b52eaac998515cc579babe443ab4744a..226f9241e6cfe62c7ec2fe92431b970072885c78 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 46b8ceb3fd7bb44c800abb6c33a37b4d94d5855d..3108f9c686b290363fbb92529651a2007d9c0925 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" ] }