@atlaspack/types-internal 2.14.1-canary.21 → 2.14.1-canary.211

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/CHANGELOG.md CHANGED
@@ -1,5 +1,156 @@
1
1
  # @atlaspack/types-internal
2
2
 
3
+ ## 2.16.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#721](https://github.com/atlassian-labs/atlaspack/pull/721) [`069de47`](https://github.com/atlassian-labs/atlaspack/commit/069de478e64fb5889f6f2ce023eb510782767fbd) Thanks [@benjervis](https://github.com/benjervis)! - Add support for bundle merging based on `webpackChunkName` comments.
8
+
9
+ Adding a `webpackChunkName` comment to an import will allow the bundler to merge multiple imports into a single bundle.
10
+
11
+ e.g.:
12
+
13
+ ```ts
14
+ import(/* webpackChunkName: "my-chunk" */ './my-module');
15
+ import(/* webpackChunkName: "my-chunk" */ './another-module');
16
+ ```
17
+
18
+ This can be enabled with the feature flag `supportWebpackChunkName`.
19
+
20
+ ### Patch Changes
21
+
22
+ - Updated dependencies [[`069de47`](https://github.com/atlassian-labs/atlaspack/commit/069de478e64fb5889f6f2ce023eb510782767fbd)]:
23
+ - @atlaspack/feature-flags@2.20.0
24
+
25
+ ## 2.15.2
26
+
27
+ ### Patch Changes
28
+
29
+ - Updated dependencies [[`1c7865a`](https://github.com/atlassian-labs/atlaspack/commit/1c7865a64451116d94015e248302435839d347c0), [`a0b959f`](https://github.com/atlassian-labs/atlaspack/commit/a0b959fbf61fc3f820ff03c7e8988945fe40a91a)]:
30
+ - @atlaspack/feature-flags@2.19.2
31
+
32
+ ## 2.15.1
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies [[`13aef17`](https://github.com/atlassian-labs/atlaspack/commit/13aef177eea289a6e40d2113b5ec1ac9be18a33d)]:
37
+ - @atlaspack/feature-flags@2.19.1
38
+
39
+ ## 2.15.0
40
+
41
+ ### Minor Changes
42
+
43
+ - [#693](https://github.com/atlassian-labs/atlaspack/pull/693) [`18a57cf`](https://github.com/atlassian-labs/atlaspack/commit/18a57cf8a4789b2de5ad8e2676f317a26cc91417) Thanks [@mattcompiles](https://github.com/mattcompiles)! - These packages should have been bumped in [pull request 691](https://github.com/atlassian-labs/atlaspack/pull/691).
44
+
45
+ Rectifying by creating a new changeset now.
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies [[`dbb4072`](https://github.com/atlassian-labs/atlaspack/commit/dbb40721ebeb45990a14ba04e6b44e7f836fb32d), [`becf977`](https://github.com/atlassian-labs/atlaspack/commit/becf977f625d5ee46dae3d4c679f173bf5f40cc0), [`c4415a4`](https://github.com/atlassian-labs/atlaspack/commit/c4415a455543d984ca28452c2cb87a794d22497c), [`f0f7c71`](https://github.com/atlassian-labs/atlaspack/commit/f0f7c7168a1d3d18c6f30d2daed611275692b7c5), [`18a57cf`](https://github.com/atlassian-labs/atlaspack/commit/18a57cf8a4789b2de5ad8e2676f317a26cc91417)]:
50
+ - @atlaspack/feature-flags@2.19.0
51
+
52
+ ## 2.14.14
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [[`e8a60ff`](https://github.com/atlassian-labs/atlaspack/commit/e8a60ffbea41caef265786bbf73349771760081c)]:
57
+ - @atlaspack/feature-flags@2.18.4
58
+
59
+ ## 2.14.13
60
+
61
+ ### Patch Changes
62
+
63
+ - Updated dependencies [[`5ded263`](https://github.com/atlassian-labs/atlaspack/commit/5ded263c7f11b866e8885b81c73e20dd060b25be)]:
64
+ - @atlaspack/feature-flags@2.18.3
65
+
66
+ ## 2.14.12
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [[`644b157`](https://github.com/atlassian-labs/atlaspack/commit/644b157dee72a871acc2d0facf0b87b8eea51956)]:
71
+ - @atlaspack/feature-flags@2.18.2
72
+
73
+ ## 2.14.11
74
+
75
+ ### Patch Changes
76
+
77
+ - Updated dependencies [[`26aa9c5`](https://github.com/atlassian-labs/atlaspack/commit/26aa9c599d2be45ce1438a74c5fa22f39b9b554b), [`0501255`](https://github.com/atlassian-labs/atlaspack/commit/05012550da35b05ce7d356a8cc29311e7f9afdca)]:
78
+ - @atlaspack/feature-flags@2.18.1
79
+
80
+ ## 2.14.10
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies [[`10fbcfb`](https://github.com/atlassian-labs/atlaspack/commit/10fbcfbfa49c7a83da5d7c40983e36e87f524a75), [`85c52d3`](https://github.com/atlassian-labs/atlaspack/commit/85c52d3f7717b3c84a118d18ab98cfbfd71dcbd2)]:
85
+ - @atlaspack/feature-flags@2.18.0
86
+
87
+ ## 2.14.9
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [[`73ea3c4`](https://github.com/atlassian-labs/atlaspack/commit/73ea3c4d85d4401fdd15abcbf988237e890e7ad3), [`b1b3693`](https://github.com/atlassian-labs/atlaspack/commit/b1b369317c66f8a431c170df2ebba4fa5b2e38ef)]:
92
+ - @atlaspack/feature-flags@2.17.0
93
+
94
+ ## 2.14.8
95
+
96
+ ### Patch Changes
97
+
98
+ - [#595](https://github.com/atlassian-labs/atlaspack/pull/595) [`51aba5f`](https://github.com/atlassian-labs/atlaspack/commit/51aba5fc0e49235ee06bbc3c376f48c3e7da5c4b) Thanks [@yamadapc](https://github.com/yamadapc)! - Add bundleId to write bundle request results
99
+
100
+ ## 2.14.7
101
+
102
+ ### Patch Changes
103
+
104
+ - Updated dependencies [[`209692f`](https://github.com/atlassian-labs/atlaspack/commit/209692ffb11eae103a0d65c5e1118a5aa1625818), [`f4da1e1`](https://github.com/atlassian-labs/atlaspack/commit/f4da1e120e73eeb5e8b8927f05e88f04d6148c7b)]:
105
+ - @atlaspack/feature-flags@2.16.0
106
+
107
+ ## 2.14.6
108
+
109
+ ### Patch Changes
110
+
111
+ - Updated dependencies [[`30f6017`](https://github.com/atlassian-labs/atlaspack/commit/30f60175ba4d272c5fc193973c63bc298584775b)]:
112
+ - @atlaspack/feature-flags@2.15.1
113
+
114
+ ## 2.14.5
115
+
116
+ ### Patch Changes
117
+
118
+ - Updated dependencies [[`a1773d2`](https://github.com/atlassian-labs/atlaspack/commit/a1773d2a62d0ef7805ac7524621dcabcc1afe929)]:
119
+ - @atlaspack/feature-flags@2.15.0
120
+
121
+ ## 2.14.4
122
+
123
+ ### Patch Changes
124
+
125
+ - Updated dependencies [[`e0f5337`](https://github.com/atlassian-labs/atlaspack/commit/e0f533757bd1019dbd108a04952c87da15286e09)]:
126
+ - @atlaspack/feature-flags@2.14.4
127
+
128
+ ## 2.14.3
129
+
130
+ ### Patch Changes
131
+
132
+ - Updated dependencies [[`11d6f16`](https://github.com/atlassian-labs/atlaspack/commit/11d6f16b6397dee2f217167e5c98b39edb63f7a7)]:
133
+ - @atlaspack/feature-flags@2.14.3
134
+
135
+ ## 2.14.2
136
+
137
+ ### Patch Changes
138
+
139
+ - Updated dependencies [[`9b85d3e`](https://github.com/atlassian-labs/atlaspack/commit/9b85d3e645b10bd027eed2304afc970a5ba40062), [`17b9579`](https://github.com/atlassian-labs/atlaspack/commit/17b9579484eced0ed8f23e2aba6d23b3c7238c39), [`8f4e6c1`](https://github.com/atlassian-labs/atlaspack/commit/8f4e6c1b0e7c1fd48624afda48c1dcc599f1460f)]:
140
+ - @atlaspack/feature-flags@2.14.2
141
+
142
+ ## 2.14.1
143
+
144
+ ### Patch Changes
145
+
146
+ - [#420](https://github.com/atlassian-labs/atlaspack/pull/420) [`e1422ad`](https://github.com/atlassian-labs/atlaspack/commit/e1422ad0a801faaa4bc4f1023bed042ffe236e9b) Thanks [@JakeLane](https://github.com/JakeLane)! - Support async script runtime in conditional bundling
147
+
148
+ - [#478](https://github.com/atlassian-labs/atlaspack/pull/478) [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b) Thanks [@yamadapc](https://github.com/yamadapc)! - The first attempt at Version Packages didn't include the built artifacts.
149
+ This has hopefully been fixed, so this change will force those packages to re-release.
150
+ - Updated dependencies [[`4aab060`](https://github.com/atlassian-labs/atlaspack/commit/4aab0605c0d4ee8e0dcc3ffa1162eae5b360b677), [`e1422ad`](https://github.com/atlassian-labs/atlaspack/commit/e1422ad0a801faaa4bc4f1023bed042ffe236e9b), [`570493b`](https://github.com/atlassian-labs/atlaspack/commit/570493beaf754e7985aebc7daaaf6dfcfa8fe56b)]:
151
+ - @atlaspack/feature-flags@2.14.1
152
+ - @atlaspack/diagnostic@2.14.1
153
+
3
154
  ## 2.14.0
4
155
 
5
156
  ### Minor Changes
package/lib/Cache.d.ts CHANGED
@@ -1,25 +1,24 @@
1
- import type { Readable } from "stream";
1
+ import type { Readable } from 'stream';
2
2
  export interface Cache {
3
- ensure(): Promise<void>;
4
- has(key: string): Promise<boolean>;
5
- get<T>(key: string): Promise<T | null | undefined>;
6
- set(key: string, value: unknown): Promise<void>;
7
- getStream(key: string): Readable;
8
- setStream(key: string, stream: Readable): Promise<void>;
9
- getBlob(key: string): Promise<Buffer>;
10
- setBlob(key: string, contents: Buffer | string): Promise<void>;
11
- hasLargeBlob(key: string): Promise<boolean>;
12
- getLargeBlob(key: string): Promise<Buffer>;
13
- setLargeBlob(key: string, contents: Buffer | string, options?: {
14
- signal?: AbortSignal;
15
- }): Promise<void>;
16
- deleteLargeBlob(key: string): Promise<void>;
17
- getBuffer(key: string): Promise<Buffer | null | undefined>;
18
-
19
- /**
20
- * In a multi-threaded environment, where there are potentially multiple Cache
21
- * instances writing to the cache, ensure that this instance has the latest view
22
- * of the changes that may have been written to the cache in other threads.
23
- */
24
- refresh(): void;
3
+ ensure(): Promise<void>;
4
+ has(key: string): Promise<boolean>;
5
+ get<T>(key: string): Promise<T | null | undefined>;
6
+ set(key: string, value: unknown): Promise<void>;
7
+ getStream(key: string): Readable;
8
+ setStream(key: string, stream: Readable): Promise<void>;
9
+ getBlob(key: string): Promise<Buffer>;
10
+ setBlob(key: string, contents: Buffer | string): Promise<void>;
11
+ hasLargeBlob(key: string): Promise<boolean>;
12
+ getLargeBlob(key: string): Promise<Buffer>;
13
+ setLargeBlob(key: string, contents: Buffer | string, options?: {
14
+ signal?: AbortSignal;
15
+ }): Promise<void>;
16
+ deleteLargeBlob(key: string): Promise<void>;
17
+ getBuffer(key: string): Promise<Buffer | null | undefined>;
18
+ /**
19
+ * In a multi-threaded environment, where there are potentially multiple Cache
20
+ * instances writing to the cache, ensure that this instance has the latest view
21
+ * of the changes that may have been written to the cache in other threads.
22
+ */
23
+ refresh(): void;
25
24
  }
package/lib/Cache.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,13 +1,13 @@
1
- import type { Glob } from "./Glob";
2
- import type { FilePath } from "./FilePath";
1
+ import type { Glob } from './Glob';
2
+ import type { FilePath } from './FilePath';
3
3
  export type GlobInvalidation = {
4
- glob: Glob;
4
+ glob: Glob;
5
5
  };
6
6
  export type FileInvalidation = {
7
- filePath: FilePath;
7
+ filePath: FilePath;
8
8
  };
9
9
  export type FileAboveInvalidation = {
10
- fileName: string;
11
- aboveFilePath: FilePath;
10
+ fileName: string;
11
+ aboveFilePath: FilePath;
12
12
  };
13
13
  export type FileCreateInvalidation = FileInvalidation | GlobInvalidation | FileAboveInvalidation;
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,91 +1,90 @@
1
- import type { FilePath } from "./FilePath";
2
- import type { Readable, Writable } from "stream";
3
- import type { Event, Options as WatcherOptions, AsyncSubscription } from "@parcel/watcher";
1
+ import type { FilePath } from './FilePath';
2
+ import type { Readable, Writable } from 'stream';
3
+ import type { Event, Options as WatcherOptions, AsyncSubscription } from '@parcel/watcher';
4
4
  export type FileOptions = {
5
- mode?: number;
5
+ mode?: number;
6
6
  };
7
7
  export type ReaddirOptions = {
8
- withFileTypes?: false;
8
+ withFileTypes?: false;
9
9
  } | {
10
- withFileTypes: true;
10
+ withFileTypes: true;
11
11
  };
12
12
  export interface Stats {
13
- dev: number;
14
- ino: number;
15
- mode: number;
16
- nlink: number;
17
- uid: number;
18
- gid: number;
19
- rdev: number;
20
- size: number;
21
- blksize: number;
22
- blocks: number;
23
- atimeMs: number;
24
- mtimeMs: number;
25
- ctimeMs: number;
26
- birthtimeMs: number;
27
- atime: Date;
28
- mtime: Date;
29
- ctime: Date;
30
- birthtime: Date;
31
- isFile(): boolean;
32
- isDirectory(): boolean;
33
- isBlockDevice(): boolean;
34
- isCharacterDevice(): boolean;
35
- isSymbolicLink(): boolean;
36
- isFIFO(): boolean;
37
- isSocket(): boolean;
13
+ dev: number;
14
+ ino: number;
15
+ mode: number;
16
+ nlink: number;
17
+ uid: number;
18
+ gid: number;
19
+ rdev: number;
20
+ size: number;
21
+ blksize: number;
22
+ blocks: number;
23
+ atimeMs: number;
24
+ mtimeMs: number;
25
+ ctimeMs: number;
26
+ birthtimeMs: number;
27
+ atime: Date;
28
+ mtime: Date;
29
+ ctime: Date;
30
+ birthtime: Date;
31
+ isFile(): boolean;
32
+ isDirectory(): boolean;
33
+ isBlockDevice(): boolean;
34
+ isCharacterDevice(): boolean;
35
+ isSymbolicLink(): boolean;
36
+ isFIFO(): boolean;
37
+ isSocket(): boolean;
38
38
  }
39
- export type Encoding = "hex" | "utf8" | "utf-8" | "ascii" | "binary" | "base64" | "ucs2" | "ucs-2" | "utf16le" | "latin1";
39
+ export type Encoding = 'hex' | 'utf8' | 'utf-8' | 'ascii' | 'binary' | 'base64' | 'ucs2' | 'ucs-2' | 'utf16le' | 'latin1';
40
40
  export interface FileSystem {
41
- readFile(filePath: FilePath): Promise<Buffer>;
42
- readFile(filePath: FilePath, encoding: Encoding): Promise<string>;
43
- readFileSync(filePath: FilePath): Buffer;
44
- readFileSync(filePath: FilePath, encoding: Encoding): string;
45
- writeFile(filePath: FilePath, contents: Buffer | string, options: FileOptions | null | undefined): Promise<void>;
46
- copyFile(source: FilePath, destination: FilePath, flags?: number): Promise<void>;
47
- stat(filePath: FilePath): Promise<Stats>;
48
- statSync(filePath: FilePath): Stats;
49
- readdir(path: FilePath, opts?: {
50
- withFileTypes?: false;
51
- }): Promise<FilePath[]>;
52
- readdir(path: FilePath, opts: {
53
- withFileTypes: true;
54
- }): Promise<Dirent[]>;
55
- readdirSync(path: FilePath, opts?: {
56
- withFileTypes?: false;
57
- }): FilePath[];
58
- readdirSync(path: FilePath, opts: {
59
- withFileTypes: true;
60
- }): Dirent[];
61
- symlink(target: FilePath, path: FilePath): Promise<void>;
62
- unlink(path: FilePath): Promise<void>;
63
- realpath(path: FilePath): Promise<FilePath>;
64
- realpathSync(path: FilePath): FilePath;
65
- exists(path: FilePath): Promise<boolean>;
66
- existsSync(path: FilePath): boolean;
67
- mkdirp(path: FilePath): Promise<void>;
68
- rimraf(path: FilePath): Promise<void>;
69
- ncp(source: FilePath, destination: FilePath): Promise<void>;
70
- createReadStream(path: FilePath, options?: FileOptions | null | undefined): Readable;
71
- createWriteStream(path: FilePath, options?: FileOptions | null | undefined): Writable;
72
- cwd(): FilePath;
73
- chdir(dir: FilePath): void;
74
- watch(dir: FilePath, fn: (err: Error | null | undefined, events: Array<Event>) => unknown, opts: WatcherOptions): Promise<AsyncSubscription>;
75
- getEventsSince(dir: FilePath, snapshot: FilePath, opts: WatcherOptions): Promise<Array<Event>>;
76
- writeSnapshot(dir: FilePath, snapshot: FilePath, opts: WatcherOptions): Promise<void>;
77
- findAncestorFile(fileNames: Array<string>, fromDir: FilePath, root: FilePath): FilePath | null | undefined;
78
- findNodeModule(moduleName: string, fromDir: FilePath): FilePath | null | undefined;
79
- findFirstFile(filePaths: Array<FilePath>): FilePath | null | undefined;
41
+ readFile(filePath: FilePath): Promise<Buffer>;
42
+ readFile(filePath: FilePath, encoding: Encoding): Promise<string>;
43
+ readFileSync(filePath: FilePath): Buffer;
44
+ readFileSync(filePath: FilePath, encoding: Encoding): string;
45
+ writeFile(filePath: FilePath, contents: Buffer | string, options?: FileOptions | null | undefined): Promise<void>;
46
+ copyFile(source: FilePath, destination: FilePath, flags?: number): Promise<void>;
47
+ stat(filePath: FilePath): Promise<Stats>;
48
+ statSync(filePath: FilePath): Stats;
49
+ readdir(path: FilePath, opts?: {
50
+ withFileTypes?: false;
51
+ }): Promise<FilePath[]>;
52
+ readdir(path: FilePath, opts: {
53
+ withFileTypes: true;
54
+ }): Promise<Dirent[]>;
55
+ readdirSync(path: FilePath, opts?: {
56
+ withFileTypes?: false;
57
+ }): FilePath[];
58
+ readdirSync(path: FilePath, opts: {
59
+ withFileTypes: true;
60
+ }): Dirent[];
61
+ symlink(target: FilePath, path: FilePath): Promise<void>;
62
+ unlink(path: FilePath): Promise<void>;
63
+ realpath(path: FilePath): Promise<FilePath>;
64
+ realpathSync(path: FilePath): FilePath;
65
+ exists(path: FilePath): Promise<boolean>;
66
+ existsSync(path: FilePath): boolean;
67
+ mkdirp(path: FilePath): Promise<void>;
68
+ rimraf(path: FilePath): Promise<void>;
69
+ ncp(source: FilePath, destination: FilePath): Promise<void>;
70
+ createReadStream(path: FilePath, options?: FileOptions | null | undefined): Readable;
71
+ createWriteStream(path: FilePath, options?: FileOptions | null | undefined): Writable;
72
+ cwd(): FilePath;
73
+ chdir(dir: FilePath): void;
74
+ watch(dir: FilePath, fn: (err: Error | null | undefined, events: Array<Event>) => unknown, opts: WatcherOptions): Promise<AsyncSubscription>;
75
+ getEventsSince(dir: FilePath, snapshot: FilePath, opts: WatcherOptions): Promise<Array<Event>>;
76
+ writeSnapshot(dir: FilePath, snapshot: FilePath, opts: WatcherOptions): Promise<void>;
77
+ findAncestorFile(fileNames: Array<string>, fromDir: FilePath, root: FilePath): FilePath | null | undefined;
78
+ findNodeModule(moduleName: string, fromDir: FilePath): FilePath | null | undefined;
79
+ findFirstFile(filePaths: Array<FilePath>): FilePath | null | undefined;
80
80
  }
81
- // https://nodejs.org/api/fs.html#fs_class_fs_dirent
82
81
  export interface Dirent {
83
- readonly name: string;
84
- isBlockDevice(): boolean;
85
- isCharacterDevice(): boolean;
86
- isDirectory(): boolean;
87
- isFIFO(): boolean;
88
- isFile(): boolean;
89
- isSocket(): boolean;
90
- isSymbolicLink(): boolean;
82
+ readonly name: string;
83
+ isBlockDevice(): boolean;
84
+ isCharacterDevice(): boolean;
85
+ isDirectory(): boolean;
86
+ isFIFO(): boolean;
87
+ isFile(): boolean;
88
+ isSocket(): boolean;
89
+ isSymbolicLink(): boolean;
91
90
  }
@@ -0,0 +1 @@
1
+ "use strict";
package/lib/Glob.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,5 +1,5 @@
1
- export type Transferable = {};
1
+ export type Transferable = Record<any, any>;
2
2
  export interface NapiWorkerPool {
3
- getWorkers(): Promise<Array<Transferable>>;
4
- shutdown(): void;
3
+ getWorkers(): Promise<Array<Transferable>>;
4
+ shutdown(): void;
5
5
  }
@@ -0,0 +1 @@
1
+ "use strict";
@@ -1,50 +1,50 @@
1
- import type { FileCreateInvalidation, PackageJSON } from "./index";
2
- import type { SemverRange } from "./SemverRange";
3
- import type { DependencySpecifier } from "./DependencySpecifier";
4
- import type { FileSystem } from "./FileSystem";
5
- import type { FilePath } from "./FilePath";
1
+ import type { FileCreateInvalidation, PackageJSON } from './index';
2
+ import type { SemverRange } from './SemverRange';
3
+ import type { DependencySpecifier } from './DependencySpecifier';
4
+ import type { FileSystem } from './FileSystem';
5
+ import type { FilePath } from './FilePath';
6
6
  export type PackageManagerResolveResult = {
7
- resolved: FilePath | DependencySpecifier;
8
- pkg?: PackageJSON | null | undefined;
9
- invalidateOnFileCreate: Array<FileCreateInvalidation>;
10
- invalidateOnFileChange: Set<FilePath>;
11
- type: number;
7
+ resolved: FilePath | DependencySpecifier;
8
+ pkg?: PackageJSON | null | undefined;
9
+ invalidateOnFileCreate: Array<FileCreateInvalidation>;
10
+ invalidateOnFileChange: Set<FilePath>;
11
+ type: number;
12
12
  };
13
13
  export type InstallOptions = {
14
- installPeers?: boolean;
15
- saveDev?: boolean;
16
- packageInstaller?: PackageInstaller | null | undefined;
14
+ installPeers?: boolean;
15
+ saveDev?: boolean;
16
+ packageInstaller?: PackageInstaller | null | undefined;
17
17
  };
18
18
  export type InstallerOptions = {
19
- modules: Array<ModuleRequest>;
20
- fs: FileSystem;
21
- cwd: FilePath;
22
- packagePath?: FilePath | null | undefined;
23
- saveDev?: boolean;
19
+ modules: Array<ModuleRequest>;
20
+ fs: FileSystem;
21
+ cwd: FilePath;
22
+ packagePath?: FilePath | null | undefined;
23
+ saveDev?: boolean;
24
24
  };
25
25
  export interface PackageInstaller {
26
- install(opts: InstallerOptions): Promise<void>;
26
+ install(opts: InstallerOptions): Promise<void>;
27
27
  }
28
28
  export type Invalidations = {
29
- invalidateOnFileCreate: Array<FileCreateInvalidation>;
30
- invalidateOnFileChange: Set<FilePath>;
31
- invalidateOnStartup: boolean;
29
+ invalidateOnFileCreate: Array<FileCreateInvalidation>;
30
+ invalidateOnFileChange: Set<FilePath>;
31
+ invalidateOnStartup: boolean;
32
32
  };
33
33
  export interface PackageManager {
34
- require(id: DependencySpecifier, from: FilePath, arg2: {
35
- range?: SemverRange | null | undefined;
36
- shouldAutoInstall?: boolean;
37
- saveDev?: boolean;
38
- } | null | undefined): Promise<any>;
39
- resolve(id: DependencySpecifier, from: FilePath, arg2: {
40
- range?: SemverRange | null | undefined;
41
- shouldAutoInstall?: boolean;
42
- saveDev?: boolean;
43
- } | null | undefined): Promise<PackageManagerResolveResult>;
44
- getInvalidations(id: DependencySpecifier, from: FilePath): Invalidations;
45
- invalidate(id: DependencySpecifier, from: FilePath): void;
34
+ require(id: DependencySpecifier, from: FilePath, arg3?: {
35
+ range?: SemverRange | null | undefined;
36
+ shouldAutoInstall?: boolean;
37
+ saveDev?: boolean;
38
+ } | null | undefined): Promise<any>;
39
+ resolve(id: DependencySpecifier, from: FilePath, arg3?: {
40
+ range?: SemverRange | null | undefined;
41
+ shouldAutoInstall?: boolean;
42
+ saveDev?: boolean;
43
+ } | null | undefined): Promise<PackageManagerResolveResult>;
44
+ getInvalidations(id: DependencySpecifier, from: FilePath): Invalidations;
45
+ invalidate(id: DependencySpecifier, from: FilePath): void;
46
46
  }
47
47
  export type ModuleRequest = {
48
- readonly name: string;
49
- readonly range: SemverRange | null | undefined;
48
+ readonly name: string;
49
+ readonly range: SemverRange | null | undefined;
50
50
  };
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1 @@
1
+ "use strict";