Skip to content

Commit

Permalink
feat: add vite-plugin-node-polyfills
Browse files Browse the repository at this point in the history
  • Loading branch information
terwer committed Mar 14, 2024
1 parent 5b074ea commit ded32c5
Show file tree
Hide file tree
Showing 12 changed files with 140 additions and 165 deletions.
3 changes: 2 additions & 1 deletion libs/Universal-PicGo-Core/.gitignore
@@ -1,2 +1,3 @@
.idea
.DS_Store
.DS_Store
dist
41 changes: 0 additions & 41 deletions libs/Universal-PicGo-Core/dist/README.md

This file was deleted.

5 changes: 0 additions & 5 deletions libs/Universal-PicGo-Core/dist/index.d.ts

This file was deleted.

44 changes: 0 additions & 44 deletions libs/Universal-PicGo-Core/dist/index.js

This file was deleted.

1 change: 0 additions & 1 deletion libs/Universal-PicGo-Core/dist/index.spec.d.ts

This file was deleted.

5 changes: 0 additions & 5 deletions libs/Universal-PicGo-Core/dist/lib/syPicgo.d.ts

This file was deleted.

37 changes: 0 additions & 37 deletions libs/Universal-PicGo-Core/dist/package.json

This file was deleted.

7 changes: 4 additions & 3 deletions libs/Universal-PicGo-Core/package.json
Expand Up @@ -5,8 +5,8 @@
"description": "picgo lib for node, browser and electron",
"main": "./dist/index.js",
"typings": "./dist/index.d.ts",
"repository": "terwer/zhi",
"homepage": "https://github.com/terwer/zhi/tree/main/libs/zhi-picgo-siyuan",
"repository": "terwer/siyuan-plugin-picgo",
"homepage": "https://github.com/terwer/siyuan-plugin-picgo/tree/main/libs/Universal-PicGo-Core",
"author": "terwer",
"license": "MIT",
"files": [
Expand All @@ -26,7 +26,8 @@
},
"devDependencies": {
"@terwer/eslint-config-custom": "^1.3.6",
"@terwer/vite-config-custom": "^0.7.6"
"@terwer/vite-config-custom": "^0.7.6",
"vite-plugin-node-polyfills": "^0.21.0"
},
"dependencies": {
"zhi-lib-base": "^0.8.0"
Expand Down
Expand Up @@ -16,11 +16,11 @@ import { simpleLogger } from "zhi-lib-base"
* @since 1.4.5
*/
class UniversalPicGo {
private logger = simpleLogger("siyuan-picgo-api", "siyuan-picgo", false)
private logger = simpleLogger("universal-picgo-api", "universal-picgo", false)

constructor() {
this.logger.info("siyuan-note PicGO inited")
this.logger.info("UniversalPicGo inited")
}
}

export default UniversalPicGo
export { UniversalPicGo }
2 changes: 1 addition & 1 deletion libs/Universal-PicGo-Core/src/index.ts
@@ -1,4 +1,4 @@
import UniversalPicGo from "./lib/universalPicGo"
import { UniversalPicGo } from "./core/UniversalPicGo"

/**
* 思源笔记 PicGO API 入口
Expand Down
2 changes: 1 addition & 1 deletion packages/picgo-plugin-app/package.json
Expand Up @@ -32,6 +32,6 @@
"vue-router": "^4.3.0",
"zhi-common": "^1.31.0",
"zhi-lib-base": "^0.8.0",
"zhi-picgo-siyuan": "workspace:*"
"universal-picgo": "workspace:*"
}
}

0 comments on commit ded32c5

Please sign in to comment.