feat: migrate to esm

This commit is contained in:
2023-03-16 01:58:13 +01:00
parent fd740b3091
commit 4df19e8c20
512 changed files with 3016 additions and 2222 deletions

View File

@@ -32,7 +32,7 @@ import {
Scope,
Tag,
TreeFile,
} from './types';
} from './types.js';
import got from "got";
/**

View File

@@ -13,13 +13,13 @@
* this program. If not, see <https://www.gnu.org/licenses/>.
*/
import {Logger} from '@openstapps/logger';
import {AddLogLevel} from '@openstapps/logger/lib/transformations/add-log-level';
import {Colorize} from '@openstapps/logger/lib/transformations/colorize';
import {AddLogLevel} from '@openstapps/logger/lib/transformations/add-log-level.js';
import {Colorize} from '@openstapps/logger/lib/transformations/colorize.js';
import {Command} from 'commander';
import {readFileSync} from 'fs';
import path from 'path';
import {Api, ApiRequestOptions} from './api';
import {Issue, IssueState, MembershipScope, Scope} from './types';
import {Api, ApiRequestOptions} from './api.js';
import {Issue, IssueState, MembershipScope, Scope} from './types.js';
Logger.setTransformations([new AddLogLevel(), new Colorize()]);