Skip to content

Commit 1da8e9e

Browse files
committed
chore: bump deps
1 parent 9059ce1 commit 1da8e9e

10 files changed

+404
-172
lines changed

.gitignore

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,6 @@ Thumbs.db
9898
tests/runner/*
9999
lib/**/*
100100

101-
dist/
101+
dist/
102+
103+
.turbo

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,15 @@
55
"packages/*"
66
],
77
"scripts": {
8+
"build": "turbo run build",
89
"package": "turbo run package --filter=@plasmo/bpp",
910
"v": "pnpm --filter \"./packages/**\" --parallel -r exec pnpm version"
1011
},
1112
"devDependencies": {
1213
"@plasmohq/prettier-plugin-sort-imports": "3.5.1",
14+
"esbuild": "0.15.9",
1315
"prettier": "2.7.1",
14-
"turbo": "1.4.7"
16+
"turbo": "1.5.3"
1517
},
1618
"packageManager": "[email protected]"
1719
}

packages/bms

Submodule bms updated from 5af1140 to 2a3c824

packages/bpp/package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
},
3636
"devDependencies": {
3737
"@jest/globals": "29.0.3",
38-
"@plasmohq/rps": "1.5.1",
3938
"@plasmohq/prettier-plugin-sort-imports": "3.5.1",
40-
"@types/node": "18.7.18",
41-
"esbuild": "0.15.8",
39+
"@plasmohq/rps": "1.5.1",
40+
"@types/node": "18.7.20",
41+
"esbuild": "0.15.9",
4242
"jest": "29.0.3",
4343
"js-yaml": "4.1.0",
4444
"prettier": "2.7.1",
45-
"ts-jest": "29.0.1",
45+
"ts-jest": "29.0.2",
4646
"typescript": "4.8.3"
4747
}
4848
}
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// @ts-check
2+
import { readFile } from "fs/promises"
3+
import { resolve } from "path"
4+
5+
/**
6+
* @return {import("esbuild").Plugin}
7+
*/
8+
export default function inlinePlugin({
9+
filter = /^inline:/,
10+
11+
namespace = "_" + Math.random().toString(36).substring(2, 9)
12+
}) {
13+
return {
14+
name: "esbuild-inline-fflate",
15+
setup(build) {
16+
build.onResolve({ filter }, (args) => {
17+
const realPath = args.path.replace(filter, "")
18+
return {
19+
path: resolve(args.resolveDir, realPath),
20+
namespace
21+
}
22+
})
23+
24+
build.onLoad({ filter: /.*/, namespace }, async (args) => {
25+
let contents = await readFile(args.path, "utf8")
26+
27+
// Use fflate to base64 the whole director to be inlined
28+
29+
// Then in the client code, we inflate it and write it down to the file system
30+
31+
return {
32+
contents,
33+
loader: "text"
34+
}
35+
})
36+
}
37+
}
38+
}

packages/esbuild-plugins/package.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name": "@plasmo/esbuild-plugins",
3+
"version": "0.0.0",
4+
"private": true,
5+
"type": "module",
6+
"files": [
7+
"inline-fflate.mjs"
8+
]
9+
}

0 commit comments

Comments
 (0)