Skip to content

Commit

Permalink
chore: repo overall update
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangtao25 committed Dec 2, 2024
1 parent e19b3a7 commit e372111
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/babel-plugin-canyon/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-plugin-canyon",
"version": "2.0.0-beta.11",
"version": "2.0.0-beta.12",
"description": "",
"scripts": {
"release": "babel src --extensions \".ts\" --out-dir lib",
Expand Down
5 changes: 3 additions & 2 deletions plugins/babel-plugin-canyon/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,13 @@ import {detectProvider} from "./helpers/provider";

//TODO 得考虑,是否要加map post到服务器,降低接入成本。对应的map接口需要可以更新

export default declare((api, config) => {
export default declare((api, config,dirname) => {
api.assertVersion(7);
return {
visitor: {
Program: {
exit: (path) => {
console.log(path.hub.file.opts.filename);
// 侦测流水线
// 优先级:手动设置 > CI/CD提供商
// hit需要打到__coverage__中,因为ui自动化测试工具部署地方不确定
Expand All @@ -33,7 +34,7 @@ export default declare((api, config) => {
projectID: config.projectID || serviceParams.slug||'-',
sha: config.sha||serviceParams.commit||'-',
instrumentCwd: config.instrumentCwd||process.cwd(),
dsn: config.dsn||process.env['DSN']
dsn: config.dsn||process.env['DSN']||'http://localhost:3000',
})
}
},
Expand Down

0 comments on commit e372111

Please sign in to comment.