Skip to content

Commit bae8258

Browse files
committed
setup proper package @ git-reconcile-rewritten-list
Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
1 parent 21a11e7 commit bae8258

File tree

5 files changed

+61
-1
lines changed

5 files changed

+61
-1
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
#!/usr/bin/env node
2+
3+
export * from "./postRewriteHook";
4+
export * from "./combineRewrittenLists";
5+
6+
// eslint-disable-next-line @typescript-eslint/camelcase
7+
async function git_reconcile_rewritten_list_CLI(): Promise<void> {
8+
/**
9+
* TODO
10+
*/
11+
12+
process.stderr.write("\nCLI not implemented yet.\n\n");
13+
process.exit(1);
14+
}
15+
16+
if (!module.parent) {
17+
git_reconcile_rewritten_list_CLI();
18+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "git-reconcile-rewritten-list",
3+
"version": "0.0.0",
4+
"main": "dist/git-reconcile-rewritten-list.js",
5+
"types": "dist/git-reconcile-rewritten-list.d.ts",
6+
"author": "Kipras Melnikovas <kipras@kipras.org> (https://kipras.org/)",
7+
"license": "UNLICENSED",
8+
"bin": {
9+
"git-reconcile-rewritten-list": "./dist/git-reconcile-rewritten-list.js"
10+
},
11+
"scripts": {
12+
"build": "yarn tsc -b",
13+
"prepack": "yarn build"
14+
},
15+
"devDependencies": {
16+
"typescript": "4.6.3"
17+
}
18+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "dist" //
5+
// "target": "es2015",
6+
// "module": "commonjs",
7+
},
8+
"include": [
9+
"**/*.ts" //
10+
],
11+
"exclude": [
12+
"node_modules", //
13+
"dist"
14+
]
15+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2+
# yarn lockfile v1
3+
4+
5+
typescript@4.6.3:
6+
version "4.6.3"
7+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.6.3.tgz#eefeafa6afdd31d725584c67a0eaba80f6fc6c6c"
8+
integrity sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "git-stacked-rebase",
33
"version": "0.6.1",
44
"main": "dist/git-stacked-rebase.js",
5+
"types": "dist/git-stacked-rebase.d.ts",
56
"repository": "git@github.com:kiprasmel/git-stacked-rebase.git",
67
"author": "Kipras Melnikovas <kipras@kipras.org> (https://kipras.org/)",
78
"license": "UNLICENSED",
@@ -12,7 +13,7 @@
1213
"prebuild:lean": "node ./script/prebuild.js",
1314
"test": "ts-node-dev ./test/run.ts",
1415
"build": "yarn test && yarn build:lean",
15-
"build:lean": "yarn tsc -b && yarn --cwd nvim-git-rebase-todo build",
16+
"build:lean": "yarn tsc -b && yarn --cwd nvim-git-rebase-todo build && yarn --cwd git-reconcile-rewritten-list build",
1617
"postbuild:lean": "node ./script/postbuild.js",
1718
"prepack": "yarn build"
1819
},

0 commit comments

Comments
 (0)