@dcloudio/uni-cli-shared 3.0.0-alpha-3060920221117002 → 3.0.0-alpha-3061020221118001

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.
package/dist/filter.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  export declare function isWxs(id: string): boolean;
2
2
  export declare function isSjs(id: string): boolean;
3
3
  export declare function isRenderjs(id: string): boolean;
4
- declare type FilterType = 'wxs' | 'renderjs' | 'sjs';
4
+ type FilterType = 'wxs' | 'renderjs' | 'sjs';
5
5
  export declare function parseRenderjs(id: string): {
6
6
  type: FilterType;
7
7
  name: string;
@@ -15,8 +15,8 @@ interface ShareWindowOptions {
15
15
  onReachBottomDistance?: number;
16
16
  pageOrientation?: 'portrait' | 'landscape' | 'auto';
17
17
  }
18
- declare type Style = 'v2' | string;
19
- declare type RestartStrategy = 'homePage' | 'homePageAndLatestPage' | string;
18
+ type Style = 'v2' | string;
19
+ type RestartStrategy = 'homePage' | 'homePageAndLatestPage' | string;
20
20
  export interface PageWindowOptions extends ShareWindowOptions {
21
21
  component?: true;
22
22
  disableScroll?: boolean;
@@ -1,3 +1,3 @@
1
1
  export { formatErrMsg, formatInfoMsg, formatWarnMsg } from './format';
2
- declare type LogType = 'error' | 'warn' | 'info' | 'log';
2
+ type LogType = 'error' | 'warn' | 'info' | 'log';
3
3
  export declare function output(type: LogType, msg: string): void;
@@ -1,6 +1,6 @@
1
1
  import type { EmittedAsset } from 'rollup';
2
2
  import type { ElementNode } from '@vue/compiler-core';
3
- declare type LazyElementFn = (node: ElementNode, context: {
3
+ type LazyElementFn = (node: ElementNode, context: {
4
4
  isMiniProgramComponent(name: string): 'plugin' | 'component' | 'dynamicLib' | undefined;
5
5
  }) => {
6
6
  [name: string]: {
@@ -81,7 +81,7 @@ export interface MiniProgramFilterOptions {
81
81
  src?: string;
82
82
  code: string;
83
83
  }
84
- declare type GenFilterFn = (filter: MiniProgramFilterOptions, filename: string) => string | void;
84
+ type GenFilterFn = (filter: MiniProgramFilterOptions, filename: string) => string | void;
85
85
  export declare function findMiniProgramTemplateFiles(genFilter?: GenFilterFn): Record<string, string>;
86
86
  export declare function clearMiniProgramTemplateFiles(): void;
87
87
  export declare function addMiniProgramTemplateFile(filename: string, code: string): void;
@@ -1,6 +1,6 @@
1
1
  import { ImportDeclaration, Program } from '@babel/types';
2
2
  import type { PluginContext } from 'rollup';
3
- declare type BindingComponents = Record<string, {
3
+ type BindingComponents = Record<string, {
4
4
  tag: string;
5
5
  type: 'unknown' | 'setup' | 'self';
6
6
  }>;
@@ -1,12 +1,12 @@
1
- declare type Define = string | string[] | Record<string, string> | false;
2
- declare type Defines = {
1
+ type Define = string | string[] | Record<string, string> | false;
2
+ type Defines = {
3
3
  [name: string]: Define;
4
4
  };
5
5
  interface Exports {
6
6
  [name: string]: Define | Defines | false;
7
7
  }
8
8
  export declare function parseUniExtApis(vite?: boolean): Injects;
9
- declare type Injects = {
9
+ type Injects = {
10
10
  [name: string]: string | string[] | false;
11
11
  };
12
12
  /**
@@ -1,5 +1,5 @@
1
1
  import type { ConfigEnv } from 'vite';
2
- export declare type FEATURE_DEFINES = ReturnType<typeof initFeatures>;
2
+ export type FEATURE_DEFINES = ReturnType<typeof initFeatures>;
3
3
  interface InitFeaturesOptions {
4
4
  pagesJson: UniApp.PagesJson;
5
5
  manifestJson: any;
@@ -1,7 +1,7 @@
1
1
  import type { WatchOptions } from 'chokidar';
2
2
  import type { Plugin } from 'vite';
3
3
  import { FileWatcherOptions } from '../../watcher';
4
- export declare type UniViteCopyPluginTarget = Omit<FileWatcherOptions, 'verbose'> & {
4
+ export type UniViteCopyPluginTarget = Omit<FileWatcherOptions, 'verbose'> & {
5
5
  watchOptions?: WatchOptions;
6
6
  };
7
7
  export interface UniViteCopyPluginOptions {
@@ -1,6 +1,6 @@
1
1
  import type { Plugin } from 'vite';
2
2
  import { FilterPattern } from '@rollup/pluginutils';
3
- declare type Injectment = string | [string, string];
3
+ type Injectment = string | [string, string];
4
4
  export interface InjectOptions {
5
5
  sourceMap?: boolean;
6
6
  callback?: (imports: Map<any, any>, mod: [string, string]) => void;
@@ -1,5 +1,5 @@
1
1
  import type { Plugin, ResolvedConfig } from 'vite';
2
- export declare type CreateUniViteFilterPlugin = (opts: UniViteFilterPluginOptions) => Plugin;
2
+ export type CreateUniViteFilterPlugin = (opts: UniViteFilterPluginOptions) => Plugin;
3
3
  export interface UniViteFilterPluginOptions {
4
4
  resolvedConfig: ResolvedConfig;
5
5
  filter: (id: string) => boolean;
package/dist/watcher.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { FSWatcher, WatchOptions } from 'chokidar';
3
- declare type FileTransform = (source: Buffer, filename: string) => void | string;
3
+ type FileTransform = (source: Buffer, filename: string) => void | string;
4
4
  export interface FileWatcherOptions {
5
5
  src: string | string[];
6
6
  dest: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3060920221117002",
3
+ "version": "3.0.0-alpha-3061020221118001",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,8 +25,8 @@
25
25
  "@babel/core": "^7.19.6",
26
26
  "@babel/parser": "^7.19.6",
27
27
  "@babel/types": "^7.20.0",
28
- "@dcloudio/uni-i18n": "3.0.0-alpha-3060920221117002",
29
- "@dcloudio/uni-shared": "3.0.0-alpha-3060920221117002",
28
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3061020221118001",
29
+ "@dcloudio/uni-shared": "3.0.0-alpha-3061020221118001",
30
30
  "@intlify/core-base": "9.1.9",
31
31
  "@intlify/shared": "9.1.9",
32
32
  "@intlify/vue-devtools": "9.1.9",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
66
66
  "devDependencies": {
67
- "@dcloudio/uni-uts-v1": "3.0.0-alpha-3060920221117002",
67
+ "@dcloudio/uni-uts-v1": "3.0.0-alpha-3061020221118001",
68
68
  "@types/babel__core": "^7.1.19",
69
69
  "@types/debug": "^4.1.7",
70
70
  "@types/estree": "^0.0.51",