Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jul 20, 2024
1 parent 4a0c6e2 commit 91a932a
Show file tree
Hide file tree
Showing 6 changed files with 95 additions and 42 deletions.
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
# scripts

This is a loose collection of "scripts" that I have had use for, and that I want to keep around somewhere just in case.
This is a loose collection of "scripts" that I have had use for, and that I want
to keep around somewhere just in case.

PRs & issues are welcomed, so feel free to ask questions, request help, improve existing stuff (any form of documentation is especially welcomed<3), and point out flaws.
PRs & issues are welcomed, so feel free to ask questions, request help, improve
existing stuff (any form of documentation is especially welcomed<3), and point
out flaws.

While the majority of scripts are written in shell, there are a few scripts powered by Node/JS.
These require Node 12+, but otherwise have no dependencies - the `package.json` in the repo provides only dev dependencies such as `TypeScript` & `Prettier`.
While the majority of scripts are written in shell, there are a few scripts
powered by Node/JS. These require Node 12+, but otherwise have no dependencies -
the `package.json` in the repo provides only dev dependencies such as
`TypeScript` & `Prettier`.

Some details on the files so far:

### `git-compare-between-branchs`

Commands & stuff for easily comparing branches; this is useful for gitflow stuff.
Commands & stuff for easily comparing branches; this is useful for gitflow
stuff.

It can help you answer "What branches have been merged on both `master` and `production`?".
It can help you answer "What branches have been merged on both `master` and
`production`?".
95 changes: 71 additions & 24 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@
"typecheck": "tsc --noEmit"
},
"prettier": "prettier-config-ackama",
"dependencies": {},
"devDependencies": {
"@schemastore/package": "0.0.5",
"@types/node": "^14.0.13",
"prettier": "^2.0.5",
"prettier-config-ackama": "^0.1.2",
"typescript": "^3.9.5"
"@schemastore/package": "0.0.10",
"@tsconfig/node20": "^20.1.4",
"@types/node": "^20.0.0",
"prettier": "^3.0.0",
"prettier-config-ackama": "^1.0.0",
"typescript": "^5.5.0"
}
}
1 change: 1 addition & 0 deletions src/nrun.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const readPackageJsonOrExit = () => {
return require(join(process.cwd(), 'package.json'));
} catch (error) {
// if we could not find a `package.json`, don't do anything
// @ts-expect-error: it's not worth trying to cast this to ErrnoException
if (error.code === 'MODULE_NOT_FOUND') {
// console.warn(process.env);
process.exit();
Expand Down
4 changes: 3 additions & 1 deletion src/yarn_remove_package_from_lock.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ const findBlockInLock = (lockContents, packageVersionHeader) => {

// add a newline to ensure that we're matching against the "whole line" otherwise
// we'll error on e.g. `first-pkg` and `my-first-pkg` when trying to remove `first-pgk`
if (lockContents.indexOf(`\n${packageVersionHeader}`, lockEntryStart + 1) !== -1) {
if (
lockContents.indexOf(`\n${packageVersionHeader}`, lockEntryStart + 1) !== -1
) {
throw new Error(
'INTEGRITY FAILURE: Multiple matches for packageVersionHeader in yarn.lock'
);
Expand Down
6 changes: 1 addition & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
{
"extends": "@tsconfig/node20",
"compilerOptions": {
"target": "ES2019",
"module": "CommonJS",
"moduleResolution": "Node",
"lib": ["ES2020"],
"rootDir": "./",
"baseUrl": "./",
"checkJs": true,
"allowJs": true,
"noEmit": true,
"strict": true,
"resolveJsonModule": true,
"useDefineForClassFields": true,
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noEmitOnError": true,
"noUnusedLocals": true,
Expand Down

0 comments on commit 91a932a

Please sign in to comment.