From abcbb3a6d877cf473278e6de4fb071dcb9c9b507 Mon Sep 17 00:00:00 2001 From: Joey Robichaud Date: Tue, 18 Jun 2024 11:55:56 -0700 Subject: [PATCH] Third times a charm with ESM --- gulpfile.mjs | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/gulpfile.mjs b/gulpfile.mjs index b273900..91fd67b 100644 --- a/gulpfile.mjs +++ b/gulpfile.mjs @@ -1,13 +1,13 @@ -const gulp = import("gulp"); -const mocha = require("gulp-mocha"); -const json2cson = require("gulp-json2cson"); -const yaml = require("gulp-yaml"); -const ts = require("gulp-typescript"); -const js_yaml = require("js-yaml"); -const plist = require("plist"); -const fs = require("fs"); -const path = require("path"); -const exec = require("child_process").exec; +import { task, src, dest, series, parallel } from "gulp"; +import mocha from "gulp-mocha"; +import json2cson from "gulp-json2cson"; +import yaml from "gulp-yaml"; +import { createProject } from "gulp-typescript"; +import { load } from "js-yaml"; +import { build } from "plist"; +import { readFileSync, existsSync, mkdirSync, writeFileSync } from "fs"; +import { join } from "path"; +import { exec } from "child_process"; const inputGrammar = "src/csharp.tmLanguage.yml"; const grammarsDirectory = "grammars/";