-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(deps): update dependencies & Node 16 supports (#18)
* fix(deps): update dependencies * style: format * fix: support npm 7 & Node.js 16 * remove volta
- Loading branch information
Showing
11 changed files
with
1,147 additions
and
706 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
npx --no-install lint-staged |
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,3 @@ | ||
{ | ||
"timeout": "5000" | ||
} |
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 |
---|---|---|
|
@@ -10,29 +10,29 @@ const shouldNotCalled = () => { | |
}; | ||
|
||
describe("can-npm-publish bin", () => { | ||
it("should return 0, it can publish", done => { | ||
it("should return 0, it can publish", (done) => { | ||
const bin = spawn("node", [binPath, path.join(__dirname, "fixtures/not-published-yet.json")]); | ||
|
||
// Finish the test when the executable finishes and returns 0 | ||
bin.on("close", exit_code => { | ||
bin.on("close", (exit_code) => { | ||
assert.ok(exit_code === 0); | ||
done(); | ||
}); | ||
}); | ||
it("should return 1, it can't publish", done => { | ||
it("should return 1, it can't publish", (done) => { | ||
const bin = spawn("node", [binPath, path.join(__dirname, "fixtures/already-published.json")]); | ||
|
||
// Finish the test when the executable finishes and returns 1 | ||
bin.on("close", exit_code => { | ||
bin.on("close", (exit_code) => { | ||
assert.ok(exit_code === 1); | ||
done(); | ||
}); | ||
}); | ||
it("should send errors to stderr when verbose, it can't publish", done => { | ||
it("should send errors to stderr when verbose, it can't publish", (done) => { | ||
const bin = spawn("node", [binPath, path.join(__dirname, "fixtures/already-published.json"), "--verbose"]); | ||
|
||
// Finish the test and stop the executable when it outputs to stderr | ||
bin.stderr.on("data", data => { | ||
bin.stderr.on("data", (data) => { | ||
assert.ok(/[email protected] is already published/.test(data)); | ||
bin.kill(); | ||
done(); | ||
|
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"private": false, | ||
"name": "lEgAcY-nAmE", | ||
"name": "JSONStream", | ||
"version": "1.0.0" | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.