Hotfix: Expose global types (#2442)

* add script

* run script post build

* remove unused script

* add types to root import

* add util

* build to packages folder

* Update global-types.js

* only include js files in importmap
This commit is contained in:
Mads Rasmussen
2024-10-11 08:22:51 +02:00
committed by GitHub
parent 1ecf9c5c51
commit 11f69be335
4 changed files with 42 additions and 3 deletions

View File

@@ -0,0 +1,13 @@
import { writeFile, mkdir } from 'fs';
import * as pathModule from 'path';
const path = pathModule.default;
const getDirName = path.dirname;
export const writeFileWithDir = (path, contents, cb) => {
mkdir(getDirName(path), { recursive: true }, function (err) {
if (err) return cb(err);
writeFile(path, contents, cb);
});
};