-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make Corepack installed binaries available at runtime (#1250)
- Loading branch information
1 parent
80b9382
commit 35cf1ea
Showing
15 changed files
with
9,357 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
require_relative '../spec_helper' | ||
|
||
describe "corepack support" do | ||
it "should be able to run an app that installs pnpm using corepack" do | ||
app = Hatchet::Runner.new("spec/fixtures/repos/corepack-pnpm") | ||
app.deploy do |app| | ||
expect(successful_body(app).strip).to eq("Hello from corepack-pnpm") | ||
end | ||
end | ||
|
||
it "should be able to run an app that installs yarn using corepack" do | ||
app = Hatchet::Runner.new("spec/fixtures/repos/corepack-yarn") | ||
app.deploy do |app| | ||
expect(successful_body(app).strip).to eq("Hello from corepack-yarn") | ||
end | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
web: pnpm run start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const express = require('express') | ||
|
||
const app = express() | ||
const port = process.env.PORT || 3000 | ||
|
||
app.get('/', (req, res) => { | ||
res.send('Hello from corepack-pnpm') | ||
}) | ||
|
||
app.listen(port, () => { | ||
console.log(`corepack-pnpm app listening on port ${port}`) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"name": "corepack-pnpm", | ||
"version": "1.0.0", | ||
"description": "", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "node index.js" | ||
}, | ||
"keywords": [], | ||
"author": "", | ||
"license": "ISC", | ||
"packageManager": "[email protected]+sha256.0624e30eff866cdeb363b15061bdb7fd9425b17bc1bb42c22f5f4efdea21f6b3", | ||
"dependencies": { | ||
"express": "^4.19.2" | ||
} | ||
} |
Oops, something went wrong.