Skip to content

Commit

Permalink
Replace bash-parser by (at)ericcornelissen/bash-parser (#153)
Browse files Browse the repository at this point in the history
Remove the package `bash-parser` [1] by a fork by me of the same name
but published in a namespace [2]. The motivation for this is that the
original is unmaintained and this fork comes with dependency maintenance
- thus far in the form of the removal of non-OSI packages.

Do note that this fork does not promise to provide anything beyond
dependency maintenance. A proper replacement of `bash-parser` should be
preferred if available.

--
1. https://www.npmjs.com/package/bash-parser
2. https://www.npmjs.com/package/@ericcornelissen/bash-parser
  • Loading branch information
ericcornelissen authored Jul 10, 2023
1 parent 4e93bb2 commit fdb0ab6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion @types/bash-parser/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
declare module 'bash-parser' {
declare module '@ericcornelissen/bash-parser' {
type Name = {
type: string;
text: string;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,9 @@
"schema.json"
],
"dependencies": {
"@ericcornelissen/bash-parser": "^0.5.2",
"@npmcli/map-workspaces": "^3.0.4",
"@snyk/github-codeowners": "^1.1.0",
"bash-parser": "^0.5.0",
"chalk": "^5.2.0",
"easy-table": "^1.2.0",
"fast-glob": "^3.2.12",
Expand Down
4 changes: 2 additions & 2 deletions src/binaries/bash-parser.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import parse from 'bash-parser';
import parse from '@ericcornelissen/bash-parser';
import parseArgs from 'minimist';
import { debugLogObject } from '../util/debug.js';
import * as FallbackResolver from './resolvers/fallback.js';
import * as KnownResolvers from './resolvers/index.js';
import { stripBinaryPath, toBinary } from './util.js';
import type { Node } from 'bash-parser';
import type { Node } from '@ericcornelissen/bash-parser';
import type { PackageJson } from 'type-fest';

// https://vorpaljs.github.io/bash-parser-playground/
Expand Down

0 comments on commit fdb0ab6

Please sign in to comment.