Skip to content

Commit

Permalink
[fix] update broken file path (#2096)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Aug 4, 2021
1 parent 7b9ded5 commit a12beb0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/honest-bikes-pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sveltejs/adapter-node': patch
---

[fix] update broken file path
2 changes: 1 addition & 1 deletion packages/adapter-node/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export default [
sourcemap: true
},
plugins: [nodeResolve(), commonjs(), json()],
external: ['../output/server/app.js', './env.js', ...require('module').builtinModules]
external: ['../../output/server/app.js', './env.js', ...require('module').builtinModules]
},
{
input: 'src/shims.js',
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter-node/src/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// TODO hardcoding the relative location makes this brittle
import { init, render } from '../output/server/app.js'; // eslint-disable-line import/no-unresolved
import { init, render } from '../../output/server/app.js'; // eslint-disable-line import/no-unresolved
import { host, port } from './env.js'; // eslint-disable-line import/no-unresolved
import { createServer } from './server';

Expand Down

0 comments on commit a12beb0

Please sign in to comment.