Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions templates/mjs/app.js.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import createError from 'http-errors';
<% } -%>
import express from 'express';
import path from 'node:path';
import { fileURLToPath } from 'node:url';
import path from 'path';
import { fileURLToPath } from 'url';
<% Object.keys(modules).sort().forEach(function (variable) { -%>
import <%- variable %> from '<%- modules[variable] %>';
<% }); -%>
Expand Down
2 changes: 1 addition & 1 deletion templates/mjs/www.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
*/

import app from '../app.mjs';
import http from 'node:http';
import http from 'http';
import debugFunction from 'debug';
const debug = debugFunction('<%- name %>:server');

Expand Down