diff --git a/netlify.toml b/netlify.toml index 914ac91..d1701ac 100644 --- a/netlify.toml +++ b/netlify.toml @@ -5,4 +5,4 @@ [build] publish = "packages/playground/dist" - command = "npm install -g pnpm && pnpm install && pnpm build" + command = "npm install -g pnpm && pnpm install && pnpm build --filter playground" diff --git a/norm.config.mjs b/norm.config.mjs index 4cc8993..573b834 100644 --- a/norm.config.mjs +++ b/norm.config.mjs @@ -110,6 +110,7 @@ export default defineConfig({ ], }, }, + 'packages/utils': libraryConfig, 'packages/plugin-breaks': libraryConfig, 'packages/plugin-footnotes': libraryConfig, 'packages/plugin-frontmatter': libraryConfig, diff --git a/package.json b/package.json index 08a4044..984fa85 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "scripts": { "build": "npm run clean && norm build", "clean": "rm -rf packages/*/{dist,svelte}", - "dev": "echo 'export * from \"../src/index\"' > packages/bytemd/svelte/index.js && norm", + "dev": "norm", "docs:build": "vitepress build docs", "docs:dev": "vitepress dev docs", "docs:serve": "vitepress serve docs", diff --git a/packages/playground/index.html b/packages/playground/index.html index 35daac4..f394ae3 100644 --- a/packages/playground/index.html +++ b/packages/playground/index.html @@ -5,6 +5,19 @@ ByteMD Playground + + diff --git a/packages/playground/src/app.svelte b/packages/playground/src/app.svelte index caea7ce..06d9468 100644 --- a/packages/playground/src/app.svelte +++ b/packages/playground/src/app.svelte @@ -24,20 +24,16 @@ } const locales = stripPrefixes( - import.meta.globEager('/node_modules/bytemd/src/locales/*.json') + import.meta.globEager('/node_modules/bytemd/locales/*.json') ) const gfmLocales = stripPrefixes( - import.meta.globEager('/node_modules/@bytemd/plugin-gfm/src/locales/*.json') + import.meta.globEager('/node_modules/@bytemd/plugin-gfm/locales/*.json') ) const mathLocales = stripPrefixes( - import.meta.globEager( - '/node_modules/@bytemd/plugin-math/src/locales/*.json' - ) + import.meta.globEager('/node_modules/@bytemd/plugin-math/locales/*.json') ) const mermaidLocales = stripPrefixes( - import.meta.globEager( - '/node_modules/@bytemd/plugin-mermaid/src/locales/*.json' - ) + import.meta.globEager('/node_modules/@bytemd/plugin-mermaid/locales/*.json') ) let value = markdownText diff --git a/packages/playground/src/env.d.ts b/packages/playground/src/env.d.ts deleted file mode 100644 index 2c3f768..0000000 --- a/packages/playground/src/env.d.ts +++ /dev/null @@ -1 +0,0 @@ -///