Skip to content

Commit

Permalink
add ai.js to rollup config
Browse files Browse the repository at this point in the history
  • Loading branch information
darthfiddler committed Jun 4, 2018
1 parent 22ecf40 commit f26328c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 7 deletions.
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,14 @@
"dist/react-native.js",
"dist/core.js",
"dist/ui.js",
"dist/ai.js",
"server.js",
"client.js",
"react.js",
"react-native.js",
"core.js",
"ui.js"
"ui.js",
"ai.js"
],
"keywords": [
"react",
Expand Down Expand Up @@ -138,7 +140,8 @@
"react-native": "./dist/react-native.js",
"server": "./dist/server.js",
"core": "./dist/core.js",
"ui": "./dist/ui.js"
"ui": "./dist/ui.js",
"ai": "./dist/ai.js"
}
},
"jest": {
Expand Down
19 changes: 14 additions & 5 deletions rollup.npm.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default [
globals,
output: { file: 'dist/react.js', format: 'umd' },
name: 'Client',
plugins: plugins,
plugins,
},

{
Expand All @@ -62,7 +62,7 @@ export default [
globals,
output: { file: 'dist/client.js', format: 'umd' },
name: 'Client',
plugins: plugins,
plugins,
},

{
Expand All @@ -71,14 +71,23 @@ export default [
globals,
output: { file: 'dist/react-native.js', format: 'umd' },
name: 'ReactNativeClient',
plugins: plugins,
plugins,
},

{
input: 'packages/core.js',
output: { file: 'dist/core.js', format: 'umd' },
name: 'Core',
plugins: plugins,
plugins,
},

{
input: 'packages/ai.js',
external: Object.keys(globals),
output: { file: 'dist/ai.js', format: 'umd' },
name: 'AI',
globals,
plugins,
},

{
Expand All @@ -87,7 +96,7 @@ export default [
globals,
output: { file: 'dist/ui.js', format: 'umd' },
name: 'UI',
plugins: plugins,
plugins,
},

// UMD and ES versions.
Expand Down
1 change: 1 addition & 0 deletions scripts/postpublish.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ shell.rm('-f', [
'client.js',
'core.js',
'ui.js',
'ai.js',
'react.js',
'react-native.js',
]);

0 comments on commit f26328c

Please sign in to comment.