diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index b5c8477..6342090 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -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 diff --git a/package.json b/package.json index c8e5af8..b75e4b0 100644 --- a/package.json +++ b/package.json @@ -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", @@ -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" } } diff --git a/src/utils.ts b/src/utils.ts index 6bc725d..62c0678 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -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( diff --git a/test/index.test.ts b/test/index.test.ts index cbf244e..cb26893 100644 --- a/test/index.test.ts +++ b/test/index.test.ts @@ -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 = "\n```js\nconsole.log('')\n```" diff --git a/tsconfig.json b/tsconfig.json index 3254117..ac9b644 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -11,6 +11,7 @@ "strictNullChecks": true, "strictPropertyInitialization": true, "stripInternal": true, + "skipLibCheck": true, "esModuleInterop": false, "noImplicitAny": true, "outDir": "lib",