Skip to content

Commit 49fd780

Browse files
committed
Change replace-in-file config after the update
1 parent e08c401 commit 49fd780

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

config.replace.js

Lines changed: 0 additions & 5 deletions
This file was deleted.

config.replace.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"files": "index.d.ts",
3+
"from": "/declare namespace[^}]*\\}[^}]*\\};/g",
4+
"to": "export = postcssRTLCSS"
5+
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"lint": "eslint \"src/**/*.ts\" \"tests/**/*.ts\"",
5151
"clean": "./scripts/clean.sh",
5252
"copy": "./scripts/copy.sh",
53-
"modify-dts": "replace-in-file --configFile=config.replace.js",
53+
"modify-dts": "replace-in-file --configFile=config.replace.json",
5454
"build": "pnpm clean && rollup --config rollup.config.js --bundleConfigAsCjs && pnpm copy && pnpm modify-dts",
5555
"prepare": "pnpm build",
5656
"prepublishOnly": "pnpm lint && pnpm test",

0 commit comments

Comments
 (0)