CommonJS modules

This commit is contained in:
uwap 2022-12-20 09:19:03 +01:00
parent 4300c092cf
commit 848e69dc05
2 changed files with 6 additions and 1 deletions

5
.swcrc Normal file
View file

@ -0,0 +1,5 @@
{
"module": {
"type": "commonjs"
}
}

View file

@ -9,7 +9,7 @@
"lint": "npx eslint src/",
"prepare": "husky install",
"test": "yarn lint",
"push": "node ./upload.js"
"push": "yarn build && node ./upload.js"
},
"dependencies": {
"@types/screeps": "^3.3.0"