From ecf8183ab863152535ad68c14ccdbb42dbea9b6c Mon Sep 17 00:00:00 2001 From: Amy Boyd Date: Sun, 27 Jun 2021 05:31:44 +0100 Subject: [PATCH] Build 'dist' directory before publishing. --- package.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 75deea7..45efc71 100644 --- a/package.json +++ b/package.json @@ -6,15 +6,16 @@ "main": "dist/index.js", "types": "dist/index.d.ts", "files": [ - "dist" + "dist", + "yarn.lock" ], "license": "WTFPL", "scripts": { "build": "tsc", "generate": "ts-node src/build.ts", - "format": "prettier --write src/" + "format": "prettier --write src/", + "prepack": "yarn build" }, - "prepublish": "tsc", "dependencies": { "got": "^11.8.2" },