mirror of
https://github.com/modernweb-dev/rocket.git
synced 2026-03-10 08:51:24 +00:00
chore: update to typescript 4.8.4
This commit is contained in:
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@@ -8,5 +8,5 @@
|
|||||||
"**/*-mdjs-generated.js": true,
|
"**/*-mdjs-generated.js": true,
|
||||||
"**/dist-types": true,
|
"**/dist-types": true,
|
||||||
},
|
},
|
||||||
"editor.experimental.stickyScroll.enabled": true
|
"editor.stickyScroll.enabled": true
|
||||||
}
|
}
|
||||||
|
|||||||
15
package-lock.json
generated
15
package-lock.json
generated
@@ -56,7 +56,7 @@
|
|||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"sinon": "^9.2.3",
|
"sinon": "^9.2.3",
|
||||||
"ts-node": "^9.1.1",
|
"ts-node": "^9.1.1",
|
||||||
"typescript": "^4.6.3"
|
"typescript": "^4.8.4"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"examples/01-hydration-starter": {
|
"examples/01-hydration-starter": {
|
||||||
@@ -14837,11 +14837,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/typescript": {
|
"node_modules/typescript": {
|
||||||
"version": "4.7.4",
|
"version": "4.8.4",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz",
|
||||||
"integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
|
"integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "Apache-2.0",
|
|
||||||
"bin": {
|
"bin": {
|
||||||
"tsc": "bin/tsc",
|
"tsc": "bin/tsc",
|
||||||
"tsserver": "bin/tsserver"
|
"tsserver": "bin/tsserver"
|
||||||
@@ -26455,9 +26454,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"typescript": {
|
"typescript": {
|
||||||
"version": "4.7.4",
|
"version": "4.8.4",
|
||||||
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.7.4.tgz",
|
"resolved": "https://registry.npmjs.org/typescript/-/typescript-4.8.4.tgz",
|
||||||
"integrity": "sha512-C0WQT0gezHuw6AdY1M2jxUO83Rjf0HP7Sk1DtXj6j1EwkQNZrHAg2XPWlq62oqEhYvONq5pkC2Y9oPljWToLmQ==",
|
"integrity": "sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ==",
|
||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"typical": {
|
"typical": {
|
||||||
|
|||||||
@@ -94,7 +94,7 @@
|
|||||||
"rollup-plugin-terser": "^7.0.2",
|
"rollup-plugin-terser": "^7.0.2",
|
||||||
"sinon": "^9.2.3",
|
"sinon": "^9.2.3",
|
||||||
"ts-node": "^9.1.1",
|
"ts-node": "^9.1.1",
|
||||||
"typescript": "^4.6.3"
|
"typescript": "^4.8.4"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"parser": "@typescript-eslint/parser",
|
"parser": "@typescript-eslint/parser",
|
||||||
|
|||||||
@@ -393,11 +393,6 @@ export class Engine {
|
|||||||
return await urlToSourceFilePath(url, this.docsDir);
|
return await urlToSourceFilePath(url, this.docsDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* @param {object} [options]
|
|
||||||
* @param {string} [options.triggerSourceFilePath]
|
|
||||||
* @param {boolean} [options.deleteOtherFiles]
|
|
||||||
*/
|
|
||||||
async renderAllOpenedFiles({ deleteOtherFiles = true, triggerSourceFilePath = '' } = {}) {
|
async renderAllOpenedFiles({ deleteOtherFiles = true, triggerSourceFilePath = '' } = {}) {
|
||||||
if (this.watcher) {
|
if (this.watcher) {
|
||||||
for (const [sourceFilePath, page] of this.watcher.pages.entries()) {
|
for (const [sourceFilePath, page] of this.watcher.pages.entries()) {
|
||||||
|
|||||||
@@ -7,11 +7,16 @@
|
|||||||
import { unified } from 'unified';
|
import { unified } from 'unified';
|
||||||
import markdown from 'remark-parse';
|
import markdown from 'remark-parse';
|
||||||
import gfm from 'remark-gfm';
|
import gfm from 'remark-gfm';
|
||||||
|
// @ts-ignore
|
||||||
import remark2rehype from 'remark-rehype';
|
import remark2rehype from 'remark-rehype';
|
||||||
|
// @ts-ignore
|
||||||
import raw from 'rehype-raw';
|
import raw from 'rehype-raw';
|
||||||
|
// @ts-ignore
|
||||||
import htmlSlug from 'rehype-slug';
|
import htmlSlug from 'rehype-slug';
|
||||||
|
// @ts-ignore
|
||||||
import htmlHeading from 'rehype-autolink-headings';
|
import htmlHeading from 'rehype-autolink-headings';
|
||||||
import rehypePrism from 'rehype-prism-plus';
|
import rehypePrism from 'rehype-prism-plus';
|
||||||
|
// @ts-ignore
|
||||||
import htmlStringify from 'rehype-stringify';
|
import htmlStringify from 'rehype-stringify';
|
||||||
import { executeSetupFunctions } from 'plugins-manager';
|
import { executeSetupFunctions } from 'plugins-manager';
|
||||||
import { mdjsParse } from './mdjsParse.js';
|
import { mdjsParse } from './mdjsParse.js';
|
||||||
|
|||||||
Reference in New Issue
Block a user