From 872683cc1e8b9badc6fd0763814c9aaaebde8f54 Mon Sep 17 00:00:00 2001 From: Martin DONADIEU Date: Wed, 18 Aug 2021 16:19:34 +0200 Subject: [PATCH] feat: add types in package --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 30f3fd1..8e65e0d 100644 --- a/package.json +++ b/package.json @@ -3,12 +3,14 @@ "version": "0.3.3", "description": "Random data generator with localization", "main": "dist/fakerator.js", + "types": "dist/fakerator.d.ts", "directories": { "test": "test" }, "scripts": { "prebuild": "npm run test", - "build": "webpack --config config/webpack.build.config.js", + "copytype": "cp fakerator.d.ts dist/fakerator.d.ts", + "build": "webpack --config config/webpack.build.config.js && npm run copytype", "lint": "eslint --ext=.js lib test/specs", "coverall": "cat ./test/coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js", "coverage": "npm run test && npm run coverall",