fix(math,math-ssr): utils build
This commit is contained in:
parent
24540c28a6
commit
a78f7050af
|
@ -114,7 +114,6 @@ export default defineConfig({
|
|||
],
|
||||
},
|
||||
},
|
||||
'packages/utils': libraryConfig,
|
||||
'packages/plugin-breaks': libraryConfig,
|
||||
'packages/plugin-footnotes': libraryConfig,
|
||||
'packages/plugin-frontmatter': libraryConfig,
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"build": "npm run clean && norm build",
|
||||
"clean": "rm -rf packages/*/{dist,svelte}",
|
||||
"clean": "rm -rf packages/*/dist",
|
||||
"dev": "norm",
|
||||
"docs:build": "vitepress build docs",
|
||||
"docs:dev": "vitepress dev docs",
|
||||
|
|
|
@ -26,7 +26,6 @@
|
|||
"locales"
|
||||
],
|
||||
"devDependencies": {
|
||||
"@bytemd/utils": "workspace:*",
|
||||
"bytemd": "workspace:*",
|
||||
"rehype-katex": "^6.0.2",
|
||||
"remark-math": "^5.1.1"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type { BytemdPlugin } from 'bytemd'
|
||||
import remarkMath from 'remark-math'
|
||||
import rehypeKatex, { Options } from 'rehype-katex'
|
||||
import { MathLocale, getMathActions } from '@bytemd/utils'
|
||||
import { MathLocale, getMathActions } from '../utils'
|
||||
import en from '../locales/en.json'
|
||||
|
||||
export interface BytemdPluginMathSsrOptions {
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
../plugin-math/utils
|
|
@ -30,7 +30,6 @@
|
|||
"katex": "^0.15.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@bytemd/utils": "workspace:*",
|
||||
"bytemd": "workspace:*",
|
||||
"remark-math": "^5.1.1"
|
||||
},
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import type { BytemdPlugin } from 'bytemd'
|
||||
import type * as K from 'katex'
|
||||
import remarkMath from 'remark-math'
|
||||
import { MathLocale, getMathActions } from '@bytemd/utils'
|
||||
import { MathLocale, getMathActions } from '../utils'
|
||||
import en from '../locales/en.json'
|
||||
|
||||
export interface BytemdPluginMathOptions {
|
||||
|
|
|
@ -1,32 +0,0 @@
|
|||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.12.3](https://github.com/bytedance/bytemd/compare/v1.12.2...v1.12.3) (2022-03-25)
|
||||
|
||||
**Note:** Version bump only for package @bytemd/plugin-math-common
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.12.2](https://github.com/bytedance/bytemd/compare/v1.12.1...v1.12.2) (2022-03-25)
|
||||
|
||||
**Note:** Version bump only for package @bytemd/plugin-math-common
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.12.1](https://github.com/bytedance/bytemd/compare/v1.12.0...v1.12.1) (2022-03-25)
|
||||
|
||||
**Note:** Version bump only for package @bytemd/plugin-math-common
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [1.12.0](https://github.com/bytedance/bytemd/compare/v1.11.1...v1.12.0) (2022-03-25)
|
||||
|
||||
**Note:** Version bump only for package @bytemd/plugin-math-common
|
|
@ -1,29 +0,0 @@
|
|||
{
|
||||
"name": "@bytemd/utils",
|
||||
"version": "1.12.3",
|
||||
"private": true,
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/bytedance/bytemd.git",
|
||||
"directory": "packages/utils"
|
||||
},
|
||||
"exports": {
|
||||
".": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"import": "./dist/index.esm.js",
|
||||
"require": "./dist/index.js"
|
||||
},
|
||||
"./locales/*": "./locales/*",
|
||||
"./lib/locales/*": "./locales/*"
|
||||
},
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.esm.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"files": [
|
||||
"dist",
|
||||
"locales"
|
||||
],
|
||||
"devDependencies": {
|
||||
"bytemd": "workspace:*"
|
||||
}
|
||||
}
|
|
@ -1,4 +0,0 @@
|
|||
{
|
||||
"extends": "../../tsconfig-base.json",
|
||||
"include": [".", "locales/*.json"]
|
||||
}
|
Loading…
Reference in New Issue