Skip to content

Commit a6656a5

Browse files
authored
Merge pull request #11 from abraham/rollup
Add UMD build
2 parents 2d90d8d + 3ffbf5f commit a6656a5

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

package.json

+11-2
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "@abraham/reflection",
33
"version": "0.3.0",
44
"description": "Lightweight ES Module implementation of reflect-metadata",
5-
"main": "dist/index.js",
5+
"main": "dist/index.umd.js",
66
"module": "dist/index.js",
77
"types": "dist/index.d.ts",
88
"scripts": {
9-
"build": "tsc",
9+
"build": "tsc && rollup -c",
1010
"clean": "rimraf dist",
1111
"prebuild": "npm run clean",
1212
"prepare": "npm run build",
@@ -38,6 +38,7 @@
3838
"jest": "23.4.1",
3939
"pkg-ok": "2.2.0",
4040
"rimraf": "2.6.2",
41+
"rollup": "0.63.4",
4142
"ts-jest": "23.0.1",
4243
"typescript": "2.9.2"
4344
},
@@ -62,5 +63,13 @@
6263
"extends": [
6364
"config:base"
6465
]
66+
},
67+
"rollup": {
68+
"input": "dist/index.js",
69+
"output": {
70+
"file": "dist/index.umd.js",
71+
"format": "umd",
72+
"name": "@abraham/reflection"
73+
}
6574
}
6675
}

rollup.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { rollup as default } from './package.json';

0 commit comments

Comments
 (0)