This commit is contained in:
Joscha Maier 2024-09-26 12:43:25 +02:00
parent 0c670b82b6
commit bef8d4bf7e
No known key found for this signature in database
GPG Key ID: 8C4D045D84A30ABA
2 changed files with 4 additions and 3 deletions

View File

@ -4,7 +4,7 @@ const sourcemaps = require('gulp-sourcemaps');
const sass = require('gulp-sass')(require('sass')); const sass = require('gulp-sass')(require('sass'));
const zip = require('gulp-zip'); const zip = require('gulp-zip');
const fs = require('fs'); const fs = require('fs');
const fetch = import('node-fetch'); const fetch = require('node-fetch');
const replace = require('gulp-replace'); const replace = require('gulp-replace');
const FormData = require('form-data'); const FormData = require('form-data');
@ -260,6 +260,7 @@ async function uploadToPackageRegistry(done) {
/* ----------------------------------------- */ /* ----------------------------------------- */
function publishToFoundry(done) { function publishToFoundry(done) {
const fetch = (import('node-fetch')).default;
const moduleManifestPath = 'system.json'; const moduleManifestPath = 'system.json';
const moduleManifest = JSON.parse(fs.readFileSync(moduleManifestPath)); const moduleManifest = JSON.parse(fs.readFileSync(moduleManifestPath));

View File

@ -1,6 +1,6 @@
{ {
"name": "kidsonbrooms", "name": "kidsonbrooms",
"version": "1.1.2", "version": "1.1.3",
"description": "CSS compiler for the Kids On Brooms system", "description": "CSS compiler for the Kids On Brooms system",
"scripts": { "scripts": {
"build": "gulp build", "build": "gulp build",
@ -23,7 +23,7 @@
"gulp-sourcemaps": "^2.6.5", "gulp-sourcemaps": "^2.6.5",
"gulp-zip": "^5.0.1", "gulp-zip": "^5.0.1",
"kidsonbrooms": "file:", "kidsonbrooms": "file:",
"node-fetch": "^3.3.2" "node-fetch": "^2.7.0"
}, },
"devDependencies": { "devDependencies": {
"sass": "^1.79.1" "sass": "^1.79.1"