@varlet/cli 3.8.7 → 3.8.8-alpha.1740223986421

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,4 +1,4 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
2
2
  [key: string]: any;
3
- }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
3
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
4
4
  export default _default;
@@ -18,6 +18,7 @@ export async function compileBundle() {
18
18
  {
19
19
  format: 'es',
20
20
  fileName: `${name}.esm.js`,
21
+ cssFileName: name,
21
22
  output: ES_DIR,
22
23
  emptyOutDir: false,
23
24
  removeEnv: true,
@@ -25,6 +26,7 @@ export async function compileBundle() {
25
26
  {
26
27
  format: 'cjs',
27
28
  fileName: `${name}.cjs.js`,
29
+ cssFileName: name,
28
30
  output: LIB_DIR,
29
31
  emptyOutDir: false,
30
32
  removeEnv: false,
@@ -32,6 +34,7 @@ export async function compileBundle() {
32
34
  {
33
35
  format: 'umd',
34
36
  fileName: `${name}.js`,
37
+ cssFileName: name,
35
38
  output: UMD_DIR,
36
39
  emptyOutDir: true,
37
40
  removeEnv: true,
@@ -17,6 +17,7 @@ export declare function getDevConfig(varletConfig: Required<VarletConfig>): Inli
17
17
  export declare function getBuildConfig(varletConfig: Required<VarletConfig>): InlineConfig;
18
18
  export interface BundleBuildOptions {
19
19
  fileName: string;
20
+ cssFileName: string;
20
21
  output: string;
21
22
  format: 'es' | 'cjs' | 'umd';
22
23
  removeEnv: boolean;
@@ -98,11 +98,11 @@ export function getBundleConfig(varletConfig, buildOptions) {
98
98
  const plugins = [];
99
99
  const name = varletConfig?.name;
100
100
  const { external = [], globals = {} } = varletConfig?.bundle || {};
101
- const { fileName, output, format, emptyOutDir, removeEnv } = buildOptions;
101
+ const { fileName, cssFileName, output, format, emptyOutDir, removeEnv } = buildOptions;
102
102
  if (format === 'umd') {
103
103
  plugins.push(inlineCss({
104
104
  jsFile: resolve(output, fileName),
105
- cssFile: resolve(output, 'style.css'),
105
+ cssFile: resolve(output, `${cssFileName}.css`),
106
106
  }));
107
107
  }
108
108
  return {
@@ -121,6 +121,7 @@ export function getBundleConfig(varletConfig, buildOptions) {
121
121
  name,
122
122
  formats: [format],
123
123
  fileName: () => fileName,
124
+ cssFileName,
124
125
  entry: resolve(ES_DIR, 'index.bundle.mjs'),
125
126
  },
126
127
  rollupOptions: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/cli",
3
- "version": "3.8.7",
3
+ "version": "3.8.8-alpha.1740223986421",
4
4
  "description": "cli of varlet",
5
5
  "keywords": [
6
6
  "cli",
@@ -26,20 +26,19 @@
26
26
  "client.js",
27
27
  "client.d.ts",
28
28
  "template",
29
- "site",
30
- "tsconfig.json"
29
+ "site"
31
30
  ],
32
31
  "dependencies": {
33
32
  "@babel/core": "^7.25.2",
34
33
  "@babel/preset-typescript": "^7.24.7",
35
34
  "@inquirer/prompts": "^6.0.1",
36
35
  "@varlet/icon-builder": "0.2.14",
37
- "@varlet/release": "^0.3.2",
38
- "@vitejs/plugin-vue": "5.1.4",
39
- "@vitejs/plugin-vue-jsx": "4.0.1",
36
+ "@varlet/release": "^0.3.3",
37
+ "@vitejs/plugin-vue": "5.2.1",
38
+ "@vitejs/plugin-vue-jsx": "4.1.1",
40
39
  "@vue/babel-plugin-jsx": "1.2.5",
41
- "@vue/compiler-sfc": "3.5.6",
42
- "@vue/runtime-core": "3.5.6",
40
+ "@vue/compiler-sfc": "3.5.13",
41
+ "@vue/runtime-core": "3.5.13",
43
42
  "chokidar": "^3.5.2",
44
43
  "commander": "^8.3.0",
45
44
  "ejs": "^3.1.8",
@@ -55,11 +54,11 @@
55
54
  "sharp": "0.31.1",
56
55
  "tinyexec": "^0.3.0",
57
56
  "typescript": "5.3.3",
58
- "vite": "5.4.6",
59
- "vitest": "2.1.1",
60
- "vue": "3.4.21",
61
- "@varlet/shared": "3.8.7",
62
- "@varlet/vite-plugins": "3.8.7"
57
+ "vite": "6.1.1",
58
+ "vitest": "3.0.6",
59
+ "vue": "3.5.13",
60
+ "@varlet/vite-plugins": "3.8.8-alpha.1740223986421",
61
+ "@varlet/shared": "3.8.8-alpha.1740223986421"
63
62
  },
64
63
  "devDependencies": {
65
64
  "@types/babel__core": "^7.20.1",
@@ -71,22 +70,22 @@
71
70
  "@types/node": "^18.7.20",
72
71
  "@types/sharp": "0.31.1",
73
72
  "rimraf": "^5.0.1",
74
- "@varlet/touch-emulator": "3.8.7",
75
- "@varlet/icons": "3.8.7",
76
- "@varlet/ui": "3.8.7"
73
+ "@varlet/icons": "3.8.8-alpha.1740223986421",
74
+ "@varlet/touch-emulator": "3.8.8-alpha.1740223986421",
75
+ "@varlet/ui": "3.8.8-alpha.1740223986421"
77
76
  },
78
77
  "peerDependencies": {
79
- "@vitest/coverage-istanbul": "2.0.5",
80
- "@vue/runtime-core": "3.4.21",
81
- "@vue/test-utils": "2.4.1",
78
+ "@vitest/coverage-istanbul": "3.0.6",
79
+ "@vue/runtime-core": "3.5.13",
80
+ "@vue/test-utils": "2.4.6",
82
81
  "clipboard": "^2.0.6",
83
82
  "jsdom": "24.1.1",
84
83
  "live-server": "^1.2.1",
85
- "vue": "3.4.21",
86
- "vue-router": "4.2.0",
87
- "@varlet/icons": "3.8.7",
88
- "@varlet/touch-emulator": "3.8.7",
89
- "@varlet/ui": "3.8.7"
84
+ "vue": "3.5.13",
85
+ "vue-router": "4.5.0",
86
+ "@varlet/icons": "3.8.8-alpha.1740223986421",
87
+ "@varlet/ui": "3.8.8-alpha.1740223986421",
88
+ "@varlet/touch-emulator": "3.8.8-alpha.1740223986421"
90
89
  },
91
90
  "engines": {
92
91
  "node": "^14.18.0 || >=16.0.0"
@@ -57,8 +57,8 @@
57
57
  "prettier": "^2.8.8",
58
58
  "simple-git-hooks": "^2.8.0",
59
59
  "typescript": "5.3.3",
60
- "vue": "3.4.21",
61
- "vue-router": "4.2.0"
60
+ "vue": "3.5.13",
61
+ "vue-router": "4.5.0"
62
62
  },
63
63
  "lint-staged": {
64
64
  "*.{ts,tsx,js,vue,less}": "prettier --write",
package/tsconfig.json DELETED
@@ -1,8 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.json",
3
- "compilerOptions": {
4
- "target": "esnext",
5
- "outDir": "./lib"
6
- },
7
- "include": ["src/**/*"]
8
- }