Skip to content

Commit

Permalink
Make @3.10 mean ~3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mxcl committed Feb 6, 2023
1 parent f8391b4 commit 839e2b7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on:
pull_request:
paths:
- tsconfig.json
- deno.jsonc
- '**/*.ts'
- import-map.json
- .github/workflows/ci.yml
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
- runner: ubuntu-latest
container: archlinux:latest
container: ${{ matrix.platform.container }}
name: test sync install-lock (${{ matrix.platform.container || matrix.platform.runner }})
name: test sync-lock (${{ matrix.platform.container || matrix.platform.runner }})
steps:
# denoland/setup requires `unzip` to be installed
# https://github.com/denoland/setup-deno/issues/41
Expand Down
2 changes: 1 addition & 1 deletion src/utils/pkg.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export function parse(input: string): PackageRequirement {
return { project, constraint: new semver.Range('*') }
} else {
// everyone expects `@` and for it to work this way
if (match[2].startsWith("@")) match[2] = `^${match[2].slice(1)}`
if (match[2].startsWith("@")) match[2] = `~${match[2].slice(1)}`

const constraint = new semver.Range(match[2])
return { project, constraint }
Expand Down

0 comments on commit 839e2b7

Please sign in to comment.