Skip to content

Commit 2cab18c

Browse files
committed
add rollup and config
1 parent ccfd09a commit 2cab18c

File tree

3 files changed

+47
-1
lines changed

3 files changed

+47
-1
lines changed

package-lock.json

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,23 @@
22
"name": "rollup-plugin-ae-jsx",
33
"version": "1.0.0",
44
"description": "RollupJS plugin to turn output into After Effects compatible `.jsx` JSON files ",
5-
"main": "index.js",
5+
"main": "dist/rollup-plugin-ae-jsx.cjs.js",
6+
"module": "dist/rollup-plugin-ae-jsx.es.js",
67
"scripts": {
8+
"build": "rollup -c",
79
"test": "echo \"Error: no test specified\" && exit 1"
810
},
11+
"files": [
12+
"dist",
13+
"src",
14+
"README.md"
15+
],
16+
"peerDependencies": {
17+
"rollup": "^1.20.0 || ^2.0.0"
18+
},
19+
"devDependencies": {
20+
"rollup": "^2.23.0"
21+
},
922
"repository": {
1023
"type": "git",
1124
"url": "git+https://github.com/motiondeveloper/rollup-plugin-ae-jsx.git"

rollup.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import pkg from "./package.json";
2+
3+
export default {
4+
input: "src/index.js",
5+
output: [
6+
{ file: pkg.main, format: "cjs", exports: "auto" },
7+
{ file: pkg.module, format: "es" },
8+
],
9+
};

0 commit comments

Comments
 (0)