Skip to content

Commit 1785138

Browse files
committed
debug
1 parent 791be5f commit 1785138

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

src/common/git/getFilesWithChanges.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,6 @@ export const getFilesWithChanges = async (isCi: string | undefined): Promise<Rev
2626

2727
return files
2828
} catch (error) {
29-
throw new Error(`Failed to get files with changes: ${JSON.stringify(error)}`)
29+
throw new Error(`Failed to get files with changes: ${error}`)
3030
}
3131
}

tsup.config.ts

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
1-
import { defineConfig } from "tsup";
2-
import fs from "fs";
3-
import path from "path";
4-
import { dependencies } from "./package.json";
1+
import fs from "fs"
2+
import path from "path"
3+
import { defineConfig } from "tsup"
54

6-
export default defineConfig((options) => {
5+
import { dependencies } from "./package.json"
6+
7+
export default defineConfig(options => {
78
return {
89
splitting: true,
910
sourcemap: true,
10-
minify: true,
11+
minify: false,
1112
entry: ["src/index.ts"],
1213
target: "es2022",
1314
format: ["cjs", "esm"],
1415
clean: true,
1516
dts: true,
1617
external: Object.keys(dependencies),
1718
onSuccess: async () => {
18-
const templateFiles = ["github-pr.yml", "gitlab-pr.yml", "azdev-pr.yml"];
19-
templateFiles.forEach((file) => {
20-
fs.copyFileSync(
21-
path.join(__dirname, "templates", file),
22-
path.join(__dirname, "dist", file)
23-
);
24-
});
25-
console.log("Build completed and template files copied to dist folder.");
19+
const templateFiles = ["github-pr.yml", "gitlab-pr.yml", "azdev-pr.yml"]
20+
templateFiles.forEach(file => {
21+
fs.copyFileSync(path.join(__dirname, "templates", file), path.join(__dirname, "dist", file))
22+
})
23+
console.log("Build completed and template files copied to dist folder.")
2624
},
27-
...options,
28-
};
29-
});
25+
...options
26+
}
27+
})

0 commit comments

Comments
 (0)