@optimajet/workflow-designer 16.2.1 → 16.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,15 @@
1
1
  #! /usr/bin/env node
2
2
 
3
- const {exec} = require('child_process');
4
- const path = require('path');
5
- const os = require('os');
6
- const fs = require('fs')
7
- const util = require('util');
8
- const fsPromises = require('node:fs/promises');
9
- const crypto = require('node:crypto')
3
+ import {exec} from 'node:child_process';
4
+ import path from 'node:path';
5
+ import {fileURLToPath} from 'node:url';
6
+ import os from 'node:os';
7
+ import fs, {promises as fsPromises} from 'node:fs';
8
+ import util from 'node:util';
9
+ import crypto from 'node:crypto';
10
+
11
+ const __filename = fileURLToPath(import.meta.url);
12
+ const __dirname = path.dirname(__filename);
10
13
 
11
14
  function runCommand(command) {
12
15
  return new Promise((resolve, reject) => {