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:
13
src/Umbraco.Web.UI.Client/devops/utils/index.js
Normal file
13
src/Umbraco.Web.UI.Client/devops/utils/index.js
Normal 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);
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user