Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
chore: move unified plugins into their respective packages
Browse files Browse the repository at this point in the history
  • Loading branch information
marekvospel committed Dec 3, 2023
1 parent da412b9 commit be1c283
Show file tree
Hide file tree
Showing 9 changed files with 106 additions and 39 deletions.
16 changes: 16 additions & 0 deletions packages/rehype-resolve-mxc/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "@vospel/rehype-resolve-mxc",
"version": "1.0.0",
"private": true,
"main": "src/index.ts",
"types": "src/index.ts",
"devDependencies": {
"@vospel/tsconfig": "workspace:^",
"matrix-js-sdk": "^29.0.0",
"rehype-parse": "^9.0.0",
"unified": "^11.0.4"
},
"dependencies": {
"unist-util-visit": "^5.0.0"
}
}
13 changes: 13 additions & 0 deletions packages/rehype-resolve-mxc/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "@vospel/tsconfig",
"compilerOptions": {
"outDir": "lib"
},
"include": [
"src"
],
"exclude": [
"node_modules",
"lib"
],
}
15 changes: 15 additions & 0 deletions packages/rehype-twemojify/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"name": "@vospel/rehype-twemojify",
"version": "1.0.0",
"private": true,
"main": "src/index.ts",
"types": "src/index.ts",
"devDependencies": {
"@vospel/tsconfig": "workspace:^",
"rehype-parse": "^9.0.0",
"unified": "^11.0.4"
},
"dependencies": {
"hast-util-find-and-replace": "^5.0.1"
}
}
13 changes: 13 additions & 0 deletions packages/rehype-twemojify/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"extends": "@vospel/tsconfig",
"compilerOptions": {
"outDir": "lib"
},
"include": [
"src"
],
"exclude": [
"node_modules",
"lib"
],
}
78 changes: 43 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions services/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@
"@unocss/reset": "^0.56.5",
"@unocss/svelte-scoped": "^0.56.5",
"@vospel/matrix-utils": "workspace:^",
"@vospel/rehype-resolve-mxc": "workspace:^",
"@vospel/rehype-twemojify": "workspace:^",
"@vospel/svelte-utils": "workspace:^",
"debug": "^4.3.4",
"hast-util-find-and-replace": "^5.0.1",
"highlight.js": "^11.9.0",
"matrix-encrypt-attachment": "^1.0.3",
"rehype-highlight": "^7.0.0",
Expand All @@ -35,7 +36,6 @@
"twemoji": "^14.0.2",
"typescript": "^5.2.2",
"unified": "^11.0.4",
"unist-util-visit": "^5.0.0",
"unocss": "^0.56.5",
"vite": "^4.4.11",
"vite-plugin-node-polyfills": "^0.16.0",
Expand Down
Loading

0 comments on commit be1c283

Please sign in to comment.