Skip to content

Commit 4a18f3d

Browse files
committed
fix: output umd build for main key
1 parent 0f8c52a commit 4a18f3d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-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.0",
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"compilerOptions": {
33
"module": "esnext",
4-
"target": "es2018",
4+
"target": "es5",
55
"strict": true,
66
"declaration": true,
77
"outDir": "dist",

0 commit comments

Comments
 (0)