This commit is contained in:
25
node_modules/screeps-api/rollup.config.js
generated
vendored
Normal file
25
node_modules/screeps-api/rollup.config.js
generated
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
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
|
||||
})
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user