@vuepress-plume/plugin-fonts 1.0.0-rc.80 → 1.0.0-rc.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- import './styles/fonts.css';
2
1
  declare const _default: {};
3
- export default _default;
2
+
3
+ export { _default as default };
@@ -1,2 +1,6 @@
1
- import './styles/fonts.css';
2
- export default {};
1
+ // src/client/config.ts
2
+ import "./styles/fonts.css";
3
+ var config_default = {};
4
+ export {
5
+ config_default as default
6
+ };
@@ -1 +1,5 @@
1
- export * from './plugin.js';
1
+ import { Plugin } from 'vuepress/core';
2
+
3
+ declare function fontsPlugin(): Plugin;
4
+
5
+ export { fontsPlugin };
package/lib/node/index.js CHANGED
@@ -1 +1,14 @@
1
- export * from './plugin.js';
1
+ // src/node/plugin.ts
2
+ import { getDirname, path } from "vuepress/utils";
3
+ function fontsPlugin() {
4
+ return {
5
+ name: "@vuepress-plume/plugin-fonts",
6
+ clientConfigFile: path.resolve(
7
+ getDirname(import.meta.url),
8
+ "../client/config.js"
9
+ )
10
+ };
11
+ }
12
+ export {
13
+ fontsPlugin
14
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vuepress-plume/plugin-fonts",
3
3
  "type": "module",
4
- "version": "1.0.0-rc.80",
4
+ "version": "1.0.0-rc.81",
5
5
  "description": "The Plugin for VuePress 2 - fonts",
6
6
  "author": "pengzhanbo <volodymyr@foxmail.com>",
7
7
  "license": "MIT",
@@ -39,9 +39,9 @@
39
39
  "vuepress-plugin-fonts"
40
40
  ],
41
41
  "scripts": {
42
- "build": "pnpm run copy && pnpm run ts",
43
- "clean": "rimraf --glob ./lib ./*.tsbuildinfo",
42
+ "build": "pnpm run copy && pnpm run tsup",
43
+ "clean": "rimraf --glob ./lib",
44
44
  "copy": "cpx \"src/**/*.{d.ts,vue,css,scss,jpg,png,woff2}\" lib",
45
- "ts": "tsc -b tsconfig.build.json"
45
+ "tsup": "tsup --config tsup.config.ts"
46
46
  }
47
47
  }
@@ -1,2 +0,0 @@
1
- import type { Plugin } from 'vuepress/core';
2
- export declare function fontsPlugin(): Plugin;
@@ -1,7 +0,0 @@
1
- import { getDirname, path } from 'vuepress/utils';
2
- export function fontsPlugin() {
3
- return {
4
- name: '@vuepress-plume/plugin-fonts',
5
- clientConfigFile: path.resolve(getDirname(import.meta.url), '../client/config.js'),
6
- };
7
- }