Skip to content

Commit

Permalink
Revert path prepending, run 'npm run build'
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyberbeni committed Jan 30, 2025
1 parent 991cce9 commit e3072e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
6 changes: 3 additions & 3 deletions dist/index.js

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions src/installer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,8 @@ export class SwiftToolInstaller {
}

parsePackageResolved(): string {
let packageResolvedPath = this.packageResolvedPath
if (!packageResolvedPath.startsWith('./')) {
packageResolvedPath = `./${packageResolvedPath}`
}
if (fs.existsSync(packageResolvedPath)) {
const fileContents = fs.readFileSync(packageResolvedPath, { encoding: 'utf8' })
if (fs.existsSync(this.packageResolvedPath)) {
const fileContents = fs.readFileSync(this.packageResolvedPath, { encoding: 'utf8' })
const parsedContents = new PackageResolved(fileContents)
for (const entry of parsedContents.pins) {
if (entry.location == this.url) {
Expand Down

0 comments on commit e3072e6

Please sign in to comment.