diff --git a/package.json b/package.json index 075cb6f..efadb55 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "@github/remote-input-element", "version": "0.2.1", "description": "An input element that sends its value to a server endpoint and renders the response body.", - "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", - "build": "tsc", + "build": "tsc --outDir dist/umd --module umd && tsc", "pretest": "npm run build", "test": "karma start test/karma.config.js", "prepublishOnly": "npm run build", diff --git a/tsconfig.json b/tsconfig.json index 02c96aa..03f15b1 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,8 @@ { "compilerOptions": { "module": "esnext", - "target": "es2018", + "target": "es2017", + "lib": ["es2018", "dom"], "strict": true, "declaration": true, "outDir": "dist",