Skip to content

Commit

Permalink
cli build fixes on global
Browse files Browse the repository at this point in the history
  • Loading branch information
izelnakri committed Nov 5, 2017
1 parent f73393a commit 838f232
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
1 change: 1 addition & 0 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
}
- non-json request/responses? - just kidding... or do I?!?
- rollup -i ./lib/response.js -o response.js -f cjs
- memserver glue [jsonEndpoint]
1 change: 1 addition & 0 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ function generateModelFiles() {

if (!fs.existsSync(`${memServerDirectory}/models/${modelFileName}.js`)) {
fs.writeFileSync(`${memServerDirectory}/models/${modelFileName}.js`, `import Model from 'memserver/model';
export default Model({
});`);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "memserver",
"version": "0.8.7",
"version": "0.8.8",
"description": "in-memory database/ORM and http mock server you can run in-browser and node environments. Built for large frontend teams, fast tests and rapid prototyping",
"main": "lib/index.js",
"license": "ISC",
Expand Down
4 changes: 3 additions & 1 deletion rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ export default {
}),
resolve({ jsnext: true }),
commonjs({
include: 'node_modules/**',
include: IS_DEVELOPMENT ? 'node_modules/**' : [
`${require.resolve('memserver')}/../../node_modules/**`, 'node_modules/**'
],
namedExports: {
'node_modules/ember-cli-string-utils/index.js': ['classify', 'underscore', 'dasherize'],
'node_modules/ember-inflector/index.js': ['singularize', 'pluralize']
Expand Down

0 comments on commit 838f232

Please sign in to comment.