Skip to content

Commit 3e28340

Browse files
authored
Merge pull request #19 from github/fix-output-umd-build-for-main-key
fix: output umd build for main key
2 parents 0ef63a8 + a884d8f commit 3e28340

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@github/remote-input-element",
33
"version": "0.2.1",
44
"description": "An input element that sends its value to a server endpoint and renders the response body.",
5-
"main": "dist/index.js",
5+
"main": "dist/umd/index.js",
66
"module": "dist/index.js",
77
"types": "dist/index.d.ts",
88
"license": "MIT",
@@ -14,7 +14,7 @@
1414
"clean": "rm -rf dist",
1515
"lint": "github-lint",
1616
"prebuild": "npm run clean && npm run lint",
17-
"build": "tsc",
17+
"build": "tsc --outDir dist/umd --module umd && tsc",
1818
"pretest": "npm run build",
1919
"test": "karma start test/karma.config.js",
2020
"prepublishOnly": "npm run build",

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"compilerOptions": {
33
"module": "esnext",
4-
"target": "es2018",
4+
"target": "es2017",
5+
"lib": ["es2018", "dom"],
56
"strict": true,
67
"declaration": true,
78
"outDir": "dist",

0 commit comments

Comments
 (0)