Skip to content

Commit

Permalink
fix: correctly resolve .squidignore path when deploying outside dir
Browse files Browse the repository at this point in the history
  • Loading branch information
belopash committed Apr 20, 2024
1 parent dfd1074 commit b6cf615
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@subsquid/cli",
"description": "squid cli tool",
"version": "2.10.3",
"version": "2.10.4",
"license": "GPL-3.0-or-later",
"repository": "[email protected]:subsquid/squid-cli.git",
"publishConfig": {
Expand Down
4 changes: 2 additions & 2 deletions src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -294,9 +294,9 @@ export function createSquidIgnore(squidDir: string) {
}

for (const ignoreFilePath of ignoreFilePaths) {
const ignoreDir = path.dirname(ignoreFilePath);
const raw = fs.readFileSync(path.resolve(squidDir, ignoreFilePath)).toString();

const raw = fs.readFileSync(ignoreFilePath).toString();
const ignoreDir = path.dirname(ignoreFilePath);
const patterns = getIgnorePatterns(ignoreDir, raw);

ig.add(patterns);
Expand Down

0 comments on commit b6cf615

Please sign in to comment.