From 9e7cbb61c339b55b06273b6a0e788417ef3a6f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Wed, 13 Nov 2019 11:19:59 +0000 Subject: [PATCH] compile source to UMD as well Co-Authored-By: Keith Cirkel --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 4beae71..7dd792b 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@github/textarea-autosize", "description": "Autosizes textarea to size of it's contents.", "version": "0.1.3", - "main": "dist/index.js", + "main": "dist/umd/index.js", "module": "dist/index.js", "types": "dist/index.d.ts", "license": "MIT", @@ -14,7 +14,7 @@ "clean": "rm -rf dist", "lint": "github-lint", "prebuild": "npm run clean && npm run lint && mkdir dist", - "build": "tsc", + "build": "tsc --outDir dist/umd/ --module umd && tsc", "test": "echo", "pretest": "npm run build", "prepublishOnly": "npm run build",