Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions Herebyfile.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -477,16 +477,6 @@ export const checkFormat = task({
},
});

export const postinstall = task({
name: "postinstall",
hiddenFromTaskList: true,
run: () => {
// Ensure the go command doesn't waste time looking into node_modules.
// Remove once https://github.com/golang/go/issues/42965 is fixed.
fs.writeFileSync(path.join(__dirname, "node_modules", "go.mod"), `module example.org/ignoreme\n`);
},
});

/**
* @param {string} localBaseline Path to the local copy of the baselines
* @param {string} refBaseline Path to the reference copy of the baselines
Expand Down
9 changes: 9 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,12 @@ tool (
golang.org/x/tools/cmd/stringer
mvdan.cc/gofumpt
)

ignore (
./_extension
./_packages
./_submodules
./built
./coverage
node_modules
)
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"which": "^5.0.0"
},
"scripts": {
"postinstall": "hereby postinstall",
"build": "hereby build",
"build:watch": "hereby build:watch",
"build:watch:debug": "hereby build:watch --debug",
Expand Down
Loading