Skip to content

Commit

Permalink
build: drop node6 from cli templates
Browse files Browse the repository at this point in the history
Co-authored-by: Taranveer Virk <[email protected]>
  • Loading branch information
biniam and virkt25 committed Feb 1, 2018
1 parent eb4237a commit e1c230d
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 32 deletions.
14 changes: 0 additions & 14 deletions packages/cli/generators/app/templates/index.js

This file was deleted.

10 changes: 10 additions & 0 deletions packages/cli/generators/app/templates/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// DO NOT EDIT THIS FILE
// Add any aditional (re)exports to src/index.ts instead.
export * from './src';

const application = (module.exports = require('./src'));

if (require.main === module) {
// Run the application
application.main();
}
8 changes: 0 additions & 8 deletions packages/cli/generators/extension/templates/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions packages/cli/generators/project/templates/index.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion packages/cli/generators/project/templates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"loopback-<%= project.projectType -%>",
"loopback"
],
"main": "index.js",
"main": "dist/index.js",
"engines": {
"node": ">=8"
},
Expand Down
5 changes: 2 additions & 3 deletions packages/cli/generators/project/templates/package.plain.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"loopback-<%= project.projectType -%>",
"loopback"
],
"main": "index.js",
"main": "dist/index.js",
"engines": {
"node": ">=8"
},
Expand Down Expand Up @@ -52,8 +52,7 @@
"license": "MIT",
"files": [
"README.md",
"index.js",
"index.d.ts",
"dist/index.js",
"dist"
],
"dependencies": {
Expand Down

0 comments on commit e1c230d

Please sign in to comment.