Skip to content

Commit 264310d

Browse files
committed
chore: export { setupLabels }
BREAKING CHANGE: export { setupLabels } instead of default
1 parent a5db562 commit 264310d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

bin/cmd.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22
'use strict';
33
const meow = require("meow");
4-
const setup = require("../lib/github-label-setup");
4+
const { setupLabels } = require("../lib/github-label-setup");
55

66
const cli = meow(`
77
Usage
@@ -40,7 +40,7 @@ const cli = meow(`
4040
}
4141
*/
4242

43-
setup(cli.flags).catch(function(error){
43+
setupLabels(cli.flags).catch(function(error){
4444
console.error(error);
4545
cli.showHelp();
4646
});

src/github-label-setup.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const getRepositoryInfo = () => {
2828
* @param allowAddedLabels
2929
* @returns {Promise}
3030
*/
31-
module.exports = function ({
31+
export function setupLabels({
3232
token,
3333
repo,
3434
labels = path.join(__dirname, "..", "labels.json"),
@@ -62,4 +62,4 @@ module.exports = function ({
6262
log: console,
6363
});
6464
});
65-
};
65+
}

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"esModuleInterop": true,
77
"newLine": "LF",
88
"outDir": "./lib/",
9-
"target": "ES2015",
9+
"target": "ES2018",
1010
"sourceMap": true,
1111
"declaration": true,
1212
"jsx": "preserve",

0 commit comments

Comments
 (0)