Add type:module and convert css-to-ts.js to a module

This commit is contained in:
Alexander Marks 2022-11-29 16:18:41 -08:00
parent 89054e4154
commit e22e89e465
2 changed files with 2 additions and 1 deletions

View File

@ -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 {

View File

@ -20,6 +20,7 @@
"build:css-to-ts": "wireit",
"build:sass": "wireit"
},
"type": "module",
"files": [
"**/*.js",
"**/*.js.map",