diff --git a/gulpfile.js b/gulpfile.js index 9bc1b0d..f1464fd 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -4,7 +4,7 @@ const sourcemaps = require('gulp-sourcemaps'); const sass = require('gulp-sass')(require('sass')); const zip = require('gulp-zip'); const fs = require('fs'); -const fetch = import('node-fetch'); +const fetch = require('node-fetch'); const replace = require('gulp-replace'); const FormData = require('form-data'); @@ -260,6 +260,7 @@ async function uploadToPackageRegistry(done) { /* ----------------------------------------- */ function publishToFoundry(done) { + const fetch = (import('node-fetch')).default; const moduleManifestPath = 'system.json'; const moduleManifest = JSON.parse(fs.readFileSync(moduleManifestPath)); diff --git a/package.json b/package.json index 07f5083..e5731dc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "kidsonbrooms", - "version": "1.1.2", + "version": "1.1.3", "description": "CSS compiler for the Kids On Brooms system", "scripts": { "build": "gulp build", @@ -23,7 +23,7 @@ "gulp-sourcemaps": "^2.6.5", "gulp-zip": "^5.0.1", "kidsonbrooms": "file:", - "node-fetch": "^3.3.2" + "node-fetch": "^2.7.0" }, "devDependencies": { "sass": "^1.79.1"