Skip to content

Commit bd6951a

Browse files
committed
Export sse hooks in the final build
1 parent 77a3192 commit bd6951a

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"build": "NODE_OPTIONS=\"--max-old-space-size=4096\" yarn build:deps && yarn build:prod",
88
"build:prod": "lerna run build --scope homepage --stream && lerna run build --scope app --stream && gulp",
99
"build:clean": "lerna run build:clean --scope app --scope homepage && rimraf www",
10-
"build:deps": "lerna run build:dev --scope codesandbox-api --scope codesandbox-browserfs --scope node-services",
10+
"build:deps": "lerna run build:dev --scope codesandbox-api --scope codesandbox-browserfs --scope node-services --scope sse-hooks",
1111
"start": "yarn build:deps && lerna run start --scope app --stream",
1212
"start:fast": "lerna run start --scope app --stream",
1313
"start:vscode": "VSCODE=1 yarn start:fast & cd standalone-packages/monaco-editor && yarn simpleserver & cd standalone-packages/vscode && yarn watch",

packages/app/config/webpack.common.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,11 @@ module.exports = {
456456
from: '../../node_modules/monaco-vue/release/min',
457457
to: 'public/13/vs/language/vue',
458458
},
459+
{
460+
from: '../../sse-hooks/dist/sse-hooks.js',
461+
to: 'public/sse-hooks.[hash].js',
462+
toType: 'template',
463+
},
459464
{
460465
from: 'static',
461466
to: 'static',

packages/sandbox-hooks/.babelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"presets": ["flow", ["env", { "modules": false }]]
3+
}

packages/sse-hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "dist/index.js",
66
"source": "index.js",
77
"scripts": {
8-
"build": "rollup -c rollup.config.js"
8+
"build:dev": "rollup -c rollup.config.js"
99
},
1010
"devDependencies": {
1111
"babel-preset-env": "^1.7.0",

packages/sse-hooks/rollup.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default {
99
input: 'index.js',
1010

1111
output: {
12-
file: 'dist/index.js',
12+
file: 'dist/sse-hooks.js',
1313
format: 'umd',
1414
},
1515
plugins: [json(), babel(), resolve(), commonjs(), uglify()],

0 commit comments

Comments
 (0)