From e22e89e465f54533a76c24b12ced86045f48b5ed Mon Sep 17 00:00:00 2001 From: Alexander Marks Date: Tue, 29 Nov 2022 16:18:41 -0800 Subject: [PATCH] Add type:module and convert css-to-ts.js to a module --- css-to-ts.js | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/css-to-ts.js b/css-to-ts.js index e66e0df51..982b6accf 100644 --- a/css-to-ts.js +++ b/css-to-ts.js @@ -4,7 +4,7 @@ * SPDX-License-Identifier: Apache-2.0 */ -const fs = require('fs'); +import * as fs from 'fs'; for (let i = 2; i < process.argv.length; i++) { try { diff --git a/package.json b/package.json index d170a0113..4631b35ef 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "build:css-to-ts": "wireit", "build:sass": "wireit" }, + "type": "module", "files": [ "**/*.js", "**/*.js.map",