diff --git a/package.json b/package.json index a432a477..a9d033fa 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "1.0.0-alpha.4", "description": "Vite & Vue powered static site generator", "type": "module", - "packageManager": "pnpm@7.1.7", + "packageManager": "pnpm@7.8.0", "main": "dist/node/index.js", "types": "types/index.d.ts", "exports": { @@ -95,11 +95,16 @@ "@types/compression": "^1.7.0", "@types/cross-spawn": "^6.0.2", "@types/debug": "^4.1.7", + "@types/diacritics": "^1.3.1", + "@types/escape-html": "^1.0.2", "@types/fs-extra": "^9.0.11", "@types/koa": "^2.13.1", "@types/koa-static": "^4.0.1", "@types/lru-cache": "^5.1.0", "@types/markdown-it": "^12.0.1", + "@types/markdown-it-attrs": "^4.1.0", + "@types/markdown-it-container": "^2.0.5", + "@types/markdown-it-emoji": "^2.0.2", "@types/micromatch": "^4.0.2", "@types/minimist": "^1.2.2", "@types/node": "^15.6.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 7656069f..85fb0d34 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,11 +15,16 @@ importers: '@types/compression': ^1.7.0 '@types/cross-spawn': ^6.0.2 '@types/debug': ^4.1.7 + '@types/diacritics': ^1.3.1 + '@types/escape-html': ^1.0.2 '@types/fs-extra': ^9.0.11 '@types/koa': ^2.13.1 '@types/koa-static': ^4.0.1 '@types/lru-cache': ^5.1.0 '@types/markdown-it': ^12.0.1 + '@types/markdown-it-attrs': ^4.1.0 + '@types/markdown-it-container': ^2.0.5 + '@types/markdown-it-emoji': ^2.0.2 '@types/micromatch': ^4.0.2 '@types/minimist': ^1.2.2 '@types/node': ^15.6.1 @@ -92,11 +97,16 @@ importers: '@types/compression': 1.7.2 '@types/cross-spawn': 6.0.2 '@types/debug': 4.1.7 + '@types/diacritics': 1.3.1 + '@types/escape-html': 1.0.2 '@types/fs-extra': 9.0.13 '@types/koa': 2.13.4 '@types/koa-static': 4.0.2 '@types/lru-cache': 5.1.1 '@types/markdown-it': 12.2.1 + '@types/markdown-it-attrs': 4.1.0 + '@types/markdown-it-container': 2.0.5 + '@types/markdown-it-emoji': 2.0.2 '@types/micromatch': 4.0.2 '@types/minimist': 1.2.2 '@types/node': 15.14.9 @@ -524,6 +534,14 @@ packages: '@types/ms': 0.7.31 dev: true + /@types/diacritics/1.3.1: + resolution: {integrity: sha512-tAH+RY51Zbz7ZSzN7yxQBKEue78U6weZ1UUBNjFoitoLbJGFJCKI7KVHwGsnYo4s2xSFr9KGEkjst2FolpYqyA==} + dev: true + + /@types/escape-html/1.0.2: + resolution: {integrity: sha512-gaBLT8pdcexFztLSPRtriHeXY/Kn4907uOCZ4Q3lncFBkheAWOuNt53ypsF8szgxbEJ513UeBzcf4utN0EzEwA==} + dev: true + /@types/estree/0.0.39: resolution: {integrity: sha512-EYNwp3bU+98cpU4lAWYYL7Zz+2gryWH1qbdDTidVd6hkiR6weksdbMadyXKXNPEkQFhXM+hVO9ZygomHXp+AIw==} dev: true @@ -607,6 +625,24 @@ packages: resolution: {integrity: sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==} dev: true + /@types/markdown-it-attrs/4.1.0: + resolution: {integrity: sha512-ILGUUJf7gydzxY3FrN2XwFT/f6rfxtkXZal478Jf4vqFn2AkQCwGCTx3TI+IPT+5ipOf+hUplem8wfVuCyK/Pw==} + dependencies: + '@types/markdown-it': 12.2.1 + dev: true + + /@types/markdown-it-container/2.0.5: + resolution: {integrity: sha512-8v5jIC5gcCUv+JcD0DExwNBkoKC0kLB4acensF0NoNlTIcXmQxF3RDjzAdIW82sXSoR+n772ePguxIWlq2ELvA==} + dependencies: + '@types/markdown-it': 12.2.1 + dev: true + + /@types/markdown-it-emoji/2.0.2: + resolution: {integrity: sha512-2ln8Wjbcj/0oRi/6VnuMeWEHHuK8uapFttvcLmDIe1GKCsFBLOLBX+D+xhDa9oWOQV0IpvxwrSfKKssAqqroog==} + dependencies: + '@types/markdown-it': 12.2.1 + dev: true + /@types/markdown-it/12.2.1: resolution: {integrity: sha512-iij+ilRX/vxtUPCREjn74xzHo/RorHJDwOsJ6X+TgKw7zSvazhVXnDfwlTnyLOMdiVUjtRYU4CrcUZ7Aci4PmQ==} dependencies: diff --git a/src/node/shims.d.ts b/src/node/shims.d.ts deleted file mode 100644 index 1cfe5a83..00000000 --- a/src/node/shims.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -declare module 'markdown-it-attrs' { - const def: any - export default def -} - -declare module 'markdown-it-emoji' { - const def: any - export default def -} - -declare module 'markdown-it-container' { - const def: any - export default def -} - -declare module 'escape-html' { - const def: (str: string) => string - export default def -} - -declare module 'diacritics' { - export const remove: (str: string) => string -} - -declare module '*.json' { - const def: any - export default def -}