Skip to content

Commit

Permalink
chore(deps): update dependency tsbb to v4 #47
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Mar 30, 2023
1 parent 9c41cba commit 9715a65
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:

jobs:
build-deploy:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"scripts": {
"prepack": "npm run build",
"start": "node lib/index.js",
"watch": "tsbb watch --disable-babel",
"build": "tsbb build --disable-babel && npm run esm-fix",
"watch": "tsbb watch",
"build": "tsbb build && npm run esm-fix",
"esm-fix": "tsc-esm-fix --target='lib' --ext='.js'",
"type-check": "tsc --noEmit",
"test": "tsbb test",
Expand Down Expand Up @@ -56,6 +56,6 @@
"remark-parse": "~10.0.1",
"remark-rehype": "~10.1.0",
"tsc-esm-fix": "~2.7.4",
"tsbb": "~3.7.1"
"tsbb": "^4.0.5"
}
}
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Element, Comment, Literal, ElementContent, RootContent, Properties } from 'hast';
import { RehypeAttrsOptions } from './';
import { RehypeAttrsOptions } from './index';

export const getURLParameters = (url: string = '') =>
((url.match(/([^?=&]+)(=([^&]*))/g) || []) as string[]).reduce(
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import rehypeRaw from 'rehype-raw';
import remark2rehype from 'remark-rehype';
import remarkParse from 'remark-parse';
import stringify from 'rehype-stringify';
import rehypeAttrs from '../src';
import rehypeAttrs from '../src/index';
import * as utils from '../src/utils';

const mrkStr = "<!--rehype:title=Rehype Attrs-->\n```js\nconsole.log('')\n```"
Expand Down
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"strictNullChecks": true,
"strictPropertyInitialization": true,
"stripInternal": true,
"skipLibCheck": true,
"esModuleInterop": false,
"noImplicitAny": true,
"outDir": "lib",
Expand Down

1 comment on commit 9715a65

@jaywcjlove
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.