mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-11 12:12:55 +00:00
feat: migrate to esm
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
#!/usr/bin/env node
|
||||
require('./lib/cli.js')
|
||||
import './lib/cli.js'
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
"name": "@openstapps/gitlab-api",
|
||||
"description": "Wraps common GitLab API calls in a TypeScript class.",
|
||||
"version": "2.1.0",
|
||||
"type": "module",
|
||||
"license": "GPL-3.0-only",
|
||||
"repository": "git@gitlab.com:openstapps/gitlab-api.git",
|
||||
"author": "Karl-Philipp Wulfert <krlwlfrt@gmail.com>",
|
||||
@@ -14,10 +15,9 @@
|
||||
"openstapps-gitlab-api": "app.js"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run compile",
|
||||
"build": "rimraf lib && tsc",
|
||||
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0 && git add CHANGELOG.md && git commit -m 'docs: update changelog'",
|
||||
"check-configuration": "openstapps-configuration",
|
||||
"compile": "rimraf lib && tsc",
|
||||
"documentation": "typedoc --out docs --readme README.md --listInvalidSymbolLinks --entryPointStrategy expand src",
|
||||
"lint": "eslint --ext .ts src/",
|
||||
"postversion": "npm run changelog",
|
||||
@@ -40,12 +40,11 @@
|
||||
"eslint": "8.33.0",
|
||||
"eslint-config-prettier": "8.6.0",
|
||||
"eslint-plugin-jsdoc": "39.7.4",
|
||||
"eslint-plugin-prettier": "4.2.1",
|
||||
"eslint-plugin-unicorn": "45.0.2",
|
||||
"prettier": "2.8.3",
|
||||
"rimraf": "4.4.0",
|
||||
"ts-node": "10.9.1",
|
||||
"typedoc": "0.22.18",
|
||||
"typescript": "4.4.4"
|
||||
"typedoc": "0.23.26",
|
||||
"typescript": "4.8.4"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +32,7 @@ import {
|
||||
Scope,
|
||||
Tag,
|
||||
TreeFile,
|
||||
} from './types';
|
||||
} from './types.js';
|
||||
import got from "got";
|
||||
|
||||
/**
|
||||
|
||||
@@ -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()]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user