diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2018-10-04 21:20:14 +1000 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2018-10-04 12:31:39 -0400 |
commit | ce9148943c4ffa43252e3692014489ebcff3d51e (patch) | |
tree | 07510ec5cc8ba385c137baaeeb3dff3192c68ce6 /rollup.config.js | |
parent | 5307aa94e14d99a226366a275e011a60161c9c39 (diff) |
Move Platform from types to platform
Diffstat (limited to 'rollup.config.js')
-rw-r--r-- | rollup.config.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rollup.config.js b/rollup.config.js index e08604b00..4cb3197f5 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -108,9 +108,10 @@ function platform({ include, exclude } = {}) { // Adapted from https://github.com/rollup/rollup-plugin-inject/blob/master/src/index.js const arch = archNodeToDeno[process.arch]; const os = osNodeToDeno[process.platform]; + // We do not have to worry about the interface here, because this is just to generate + // the actual runtime code, not any type information integrated into Deno const magicString = new MagicString(` -import { Platform } from "./types"; -export const platform: Platform = { arch: "${arch}", os:"${os}" };`); +export const platform = { arch: "${arch}", os:"${os}" };`); return { code: magicString.toString(), map: magicString.generateMap() |