From eb07d278cf52d3d0cddfe20d2483a51923dc712b Mon Sep 17 00:00:00 2001 From: Thomas Sickert Date: Sat, 30 Mar 2024 15:19:15 -0400 Subject: [PATCH] Update to module --- .eslintignore | 2 +- jest.config.js => jest.config.cjs | 5 ++++- package.json | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) rename jest.config.js => jest.config.cjs (66%) diff --git a/.eslintignore b/.eslintignore index 42ceb9a..dbaaca2 100644 --- a/.eslintignore +++ b/.eslintignore @@ -1,4 +1,4 @@ dist/ lib/ node_modules/ -jest.config.js +jest.config.cjs diff --git a/jest.config.js b/jest.config.cjs similarity index 66% rename from jest.config.js rename to jest.config.cjs index 5a82228..eef7ea8 100644 --- a/jest.config.js +++ b/jest.config.cjs @@ -5,5 +5,8 @@ module.exports = { transform: { '^.+\\.ts$': 'ts-jest' }, + transformIgnorePatterns: [ + 'node_modules/(?!(axios)/)' // add this line + ], verbose: true -} \ No newline at end of file +} diff --git a/package.json b/package.json index c06a6e0..c40c4c5 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "private": true, "description": "Send discord webhooks via GitHub Actions!", "main": "lib/webhook.js", + "type": "module", "scripts": { "build": "tsc", "format": "prettier --write src/**/*.ts",