Skip to content

Commit ce46263

Browse files
JohnMcLearclaude
andcommitted
fix: pin picomatch to 2.3.1 (rpt2 include filter regression)
The picomatch 2.3.1 -> 2.3.2 bump in PR #76 broke rollup-plugin-typescript2's default include filter ['*.ts+(|x)', '**/*.ts+(|x)'] which uses the +(|x) extglob syntax. picomatch 2.3.2 stopped matching this pattern, causing rpt2 to skip all .ts files. Babel then sees raw TypeScript and chokes on 'as const' and 'import type', breaking the publish-npm step. Pin picomatch via npm overrides until rpt2 0.32+ updates its default include pattern. Also add the previously-noted tsconfig fixes for TypeScript 6 (rootDir + ignoreDeprecations) to silence rpt2 warnings. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 9877499 commit ce46263

6 files changed

Lines changed: 60 additions & 24 deletions

File tree

package-lock.json

Lines changed: 44 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@
5050
"ajv": "^8.18.0",
5151
"mariadb": "^3.5.2"
5252
},
53+
"overrides": {
54+
"picomatch": "2.3.1"
55+
},
5356
"funding": {
5457
"type": "individual",
5558
"url": "https://etherpad.org/"

src/index.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
import Ajv, {JTDDataType} from 'ajv/dist/jtd';
2-
import {isContext, logger, setLogger, Awaitable, Context, Logger} from './common';
1+
import Ajv from 'ajv/dist/jtd';
2+
import type {JTDDataType} from 'ajv/dist/jtd';
3+
import {isContext, logger, setLogger} from './common';
4+
import type {Awaitable, Context, Logger} from './common';
35
import * as mariadb from './mariadb';
46
import * as javascript from './javascript';
57

src/javascript.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {JTDDataType} from 'ajv/dist/jtd';
2-
import {Context, Optional} from './common';
1+
import type {JTDDataType} from 'ajv/dist/jtd';
2+
import type {Context, Optional} from './common';
33

44
export const schema = {
55
properties: {

src/mariadb.ts

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
import {JTDDataType} from 'ajv/dist/jtd';
2-
import {logger, Context} from './common';
3-
import {createPool, Pool, PoolConfig} from 'mariadb';
1+
import type {JTDDataType} from 'ajv/dist/jtd';
2+
import {logger} from './common';
3+
import type {Context} from './common';
4+
import {createPool} from 'mariadb';
5+
import type {Pool, PoolConfig} from 'mariadb';
46

57
export const schema = {
68
properties: {

tsconfig.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,11 @@
33
"declaration": true,
44
"esModuleInterop": true,
55
"forceConsistentCasingInFileNames": true,
6+
"ignoreDeprecations": "6.0",
67
"module": "ESNext",
78
"moduleResolution": "node",
89
"outDir": "./dist",
10+
"rootDir": "./src",
911
"strict": true,
1012
"target": "ESNext"
1113
},

0 commit comments

Comments
 (0)