From 364532f7afc80c25ee1bdcb24cd053c5f2e14b2f Mon Sep 17 00:00:00 2001 From: Emanuel Tesar Date: Fri, 31 May 2019 17:09:23 +0200 Subject: [PATCH] Copy package.json to dist folder, publish from there --- .gitignore | 2 +- package.json | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index e7000f9..cc4180c 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,4 @@ validator/build node_modules yarn-lock.json -out +dist diff --git a/package.json b/package.json index a7b01be..cf7092f 100644 --- a/package.json +++ b/package.json @@ -7,10 +7,10 @@ }, "author": "Siegrift ", "license": "MIT", - "main": "./out/index.js", - "types": "./out/index.d.ts", + "main": "./index.js", + "types": "./index.d.ts", "files": [ - "out/**/*" + "*" ], "devDependencies": { "@types/jest": "^24.0.13", @@ -26,7 +26,7 @@ "scripts": { "test": "jest", "test-watch": "jest --watch", - "build": "yarn tsc --target \"ES5\" --outDir \"out\" --declaration true" + "build": "yarn tsc --target \"ES5\" --outDir \"dist\" --declaration true && cp package.json dist" }, "husky": { "hooks": {