From 848e69dc051d5363ec9ba3b31028a8138df926a4 Mon Sep 17 00:00:00 2001 From: uwap Date: Tue, 20 Dec 2022 09:19:03 +0100 Subject: [PATCH] CommonJS modules --- .swcrc | 5 +++++ package.json | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .swcrc diff --git a/.swcrc b/.swcrc new file mode 100644 index 0000000..3f013e7 --- /dev/null +++ b/.swcrc @@ -0,0 +1,5 @@ +{ + "module": { + "type": "commonjs" + } +} \ No newline at end of file diff --git a/package.json b/package.json index 8c7833b..84a7a5c 100644 --- a/package.json +++ b/package.json @@ -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"