Philipp Horstenkamp 20d547fd4d
Some checks failed
Lint / pre-commit Linting (push) Failing after 42s
Added the dependencies.
2023-11-25 00:59:10 +01:00

26 lines
532 B
JavaScript

import typescript from 'rollup-plugin-typescript2'
export default {
input: {
ScreepsAPI: 'src/index.js'
},
output: {
dir: 'dist',
format: 'cjs',
exports: 'named',
preferConst: true,
globals: {
ws: 'WebSocket'
},
},
// external(id){
// return !!require('./package.json').dependencies[id];
// },
external: ['ws', 'fs', 'axios', 'bluebird', 'yamljs', 'url', 'events', 'zlib', 'path','debug', 'util'],
plugins: [
typescript({
useTsconfigDeclarationDir: true
})
]
}