Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mythsman committed May 29, 2024
1 parent 6834fc9 commit cee95f3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions lib/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,16 +64,10 @@ export async function generate(
}

const script = readFileSync(
path.relative(
__dirname,
createRequire(__dirname).resolve("idouban/dist/index.js")
)
createRequire(__dirname).resolve("idouban/dist/index.js")
) as string;
const style = readFileSync(
path.relative(
__dirname,
createRequire(__dirname).resolve("idouban/dist/index.js")
)
createRequire(__dirname).resolve("idouban/dist/index.css")
) as string;

const init_config = {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-douban",
"version": "2.3.1",
"version": "2.3.2",
"description": "Generate douban pages of books , movies and games for Hexo.",
"main": "dist/index.js",
"targets": {
Expand Down

0 comments on commit cee95f3

Please sign in to comment.