miniprogram-ci 2.1.16 → 2.1.17

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,5 +1,5 @@
1
1
  import { IProject } from '../types';
2
- export declare const CI_VERSION = "2.1.16";
2
+ export declare const CI_VERSION = "2.1.17";
3
3
  export declare const PARAM_ERROR = 10000;
4
4
  export declare const WXML_NOT_FOUND = 10007;
5
5
  export declare const JS_NOT_FOUND = 10008;
@@ -1,4 +1,4 @@
1
- import { MiniProgramCore } from '../types';
1
+ import { MiniProgramCore, MiniProgramDevtools } from '../types';
2
2
  import { BaseProject } from './baseProject';
3
3
  type ProjectType = MiniProgramCore.ProjectType;
4
4
  export interface ICreateProjectOptions {
@@ -8,16 +8,20 @@ export interface ICreateProjectOptions {
8
8
  privateKey?: string;
9
9
  privateKeyPath?: string;
10
10
  ignores?: string[];
11
- targetPlatform?: string;
11
+ targetPlatform?: MiniProgramCore.ITargetPlatform;
12
12
  compileDefines?: {
13
13
  [key: string]: string;
14
14
  };
15
+ packOptions?: {
16
+ ignore: MiniProgramDevtools.IProjectConfigPackOption[];
17
+ include: MiniProgramDevtools.IProjectConfigPackOption[];
18
+ };
15
19
  }
16
20
  export { getProjectAttr, } from '../ci/projectattr';
17
21
  export declare class CIProject extends BaseProject {
18
22
  private _project;
19
23
  private _miniappAttr?;
20
- private _targetPlatform?;
24
+ targetPlatform?: MiniProgramCore.ITargetPlatform;
21
25
  constructor(options: ICreateProjectOptions);
22
26
  get project(): BaseProject;
23
27
  init(): Promise<void>;