@idlebox/node 1.2.11 → 1.2.13

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.
Files changed (55) hide show
  1. package/lib/fs/tempFolder.cjs +1 -1
  2. package/lib/fs/tempFolder.cjs.map +1 -1
  3. package/lib/fs/tempFolder.js +1 -1
  4. package/lib/fs/tempFolder.js.map +1 -1
  5. package/lib/index.generated.cjs.map +1 -1
  6. package/lib/index.generated.js.map +1 -1
  7. package/{dist → lib}/node-alpha.d.ts +0 -0
  8. package/{dist → lib}/node-beta.d.ts +0 -0
  9. package/{dist → lib}/node-public.d.ts +0 -0
  10. package/{dist → lib}/node.d.ts +0 -0
  11. package/lib/preload.cjs +3 -0
  12. package/lib/preload.cjs.map +1 -0
  13. package/lib/preload.js +2 -0
  14. package/lib/preload.js.map +1 -0
  15. package/{dist → lib}/tsdoc-metadata.json +1 -1
  16. package/package.json +17 -17
  17. package/src/asyncLoad.ts +32 -0
  18. package/src/child_process/error.ts +63 -0
  19. package/src/child_process/execa.ts +108 -0
  20. package/src/child_process/lateError.ts +53 -0
  21. package/src/child_process/respawn.ts +132 -0
  22. package/src/cli-io/output.ts +3 -0
  23. package/src/crypto/md5.ts +8 -0
  24. package/src/crypto/sha256.ts +8 -0
  25. package/src/environment/findBinary.ts +13 -0
  26. package/src/environment/getEnvironment.ts +56 -0
  27. package/src/environment/npmConfig.ts +15 -0
  28. package/src/environment/pathEnvironment.ts +45 -0
  29. package/src/error/code.ts +124 -0
  30. package/src/error/pretty.ts +240 -0
  31. package/src/events/dumpEventEmitter.ts +9 -0
  32. package/src/fs/commandExists.ts +48 -0
  33. package/src/fs/exists.ts +17 -0
  34. package/src/fs/tempFolder.ts +54 -0
  35. package/src/fs/weiteChanged.ts +46 -0
  36. package/src/index.generated.ts +133 -0
  37. package/src/log/terminal.ts +41 -0
  38. package/src/path-resolve/findPackageRoot.ts +20 -0
  39. package/src/path-resolve/findUp.ts +34 -0
  40. package/src/path-resolve/getAllUp.ts +15 -0
  41. package/src/path-resolve/lrelative.ts +20 -0
  42. package/src/path-resolve/nodeResolvePathArray.ts +10 -0
  43. package/src/path-resolve/resolvePath.ts +43 -0
  44. package/src/preload.ts +1 -0
  45. package/src/stream/blackHoleStream.ts +7 -0
  46. package/src/stream/collectingStream.ts +85 -0
  47. package/src/stream/disposableStream.ts +24 -0
  48. package/src/stream/drainStream.ts +19 -0
  49. package/src/stream/loggerStream.ts +61 -0
  50. package/src/stream/streamPromise.ts +23 -0
  51. package/src/tsconfig.json +14 -0
  52. package/docs/node.api.json +0 -7222
  53. package/docs/node.api.md +0 -666
  54. package/docs/package-public.d.ts +0 -380
  55. package/docs/tsdoc-metadata.json +0 -11
@@ -0,0 +1,133 @@
1
+ // DO NOT EDIT THIS FILE
2
+ // @ts-ignore
3
+ /* eslint-disable */
4
+
5
+ /* preload.ts */
6
+ // Identifiers
7
+ /* path-resolve/resolvePath.ts */
8
+ // Identifiers
9
+ export {ResolvePathFunction} from "./path-resolve/resolvePath";
10
+ export {JoinPathFunction} from "./path-resolve/resolvePath";
11
+ export {resolvePath} from "./path-resolve/resolvePath";
12
+ export {NormalizePathFunction} from "./path-resolve/resolvePath";
13
+ export {normalizePath} from "./path-resolve/resolvePath";
14
+ export {osTempDir} from "./path-resolve/resolvePath";
15
+ export {relativePath} from "./path-resolve/resolvePath";
16
+ /* error/pretty.ts */
17
+ // Identifiers
18
+ export {setErrorLogRoot} from "./error/pretty";
19
+ export {prettyPrintError} from "./error/pretty";
20
+ export {prettyFormatError} from "./error/pretty";
21
+ /* asyncLoad.ts */
22
+ // Identifiers
23
+ export {AsyncMainFunction} from "./asyncLoad";
24
+ export {ExitError} from "./asyncLoad";
25
+ export {runMain} from "./asyncLoad";
26
+ /* child_process/error.ts */
27
+ // Identifiers
28
+ export {checkChildProcessResult} from "./child_process/error";
29
+ /* child_process/execa.ts */
30
+ // Identifiers
31
+ export {Sync} from "./child_process/execa";
32
+ export {Async} from "./child_process/execa";
33
+ export {ICommand} from "./child_process/execa";
34
+ export {spawnWithoutOutput} from "./child_process/execa";
35
+ export {spawnGetOutput} from "./child_process/execa";
36
+ export {spawnGetEverything} from "./child_process/execa";
37
+ /* cli-io/output.ts */
38
+ // Identifiers
39
+ export {printLine} from "./cli-io/output";
40
+ /* child_process/lateError.ts */
41
+ // Identifiers
42
+ export {ISpawnAdditionOptions} from "./child_process/lateError";
43
+ export {execLazyError} from "./child_process/lateError";
44
+ /* fs/exists.ts */
45
+ // Identifiers
46
+ export {existsSync} from "./fs/exists";
47
+ export {exists} from "./fs/exists";
48
+ /* environment/getEnvironment.ts */
49
+ // Identifiers
50
+ export {IEnvironmentResult} from "./environment/getEnvironment";
51
+ export {getEnvironment} from "./environment/getEnvironment";
52
+ export {deleteEnvironment} from "./environment/getEnvironment";
53
+ export {cleanupEnvironment} from "./environment/getEnvironment";
54
+ /* environment/pathEnvironment.ts */
55
+ // Identifiers
56
+ export {PATH_SEPARATOR} from "./environment/pathEnvironment";
57
+ export {PathEnvironment} from "./environment/pathEnvironment";
58
+ /* environment/findBinary.ts */
59
+ // Identifiers
60
+ export {findBinary} from "./environment/findBinary";
61
+ /* child_process/respawn.ts */
62
+ // Identifiers
63
+ export {spawnRecreateEventHandlers} from "./child_process/respawn";
64
+ export {trySpawnInScope} from "./child_process/respawn";
65
+ export {respawnInScope} from "./child_process/respawn";
66
+ /* crypto/md5.ts */
67
+ // Identifiers
68
+ export {md5} from "./crypto/md5";
69
+ /* crypto/sha256.ts */
70
+ // Identifiers
71
+ export {sha256} from "./crypto/sha256";
72
+ /* environment/npmConfig.ts */
73
+ // Identifiers
74
+ export {getNpmConfigValue} from "./environment/npmConfig";
75
+ /* error/code.ts */
76
+ // Identifiers
77
+ export {ERRNO_LINUX} from "./error/code";
78
+ /* events/dumpEventEmitter.ts */
79
+ // Identifiers
80
+ export {dumpEventEmitterEmit} from "./events/dumpEventEmitter";
81
+ /* fs/commandExists.ts */
82
+ // Identifiers
83
+ export {commandInPath} from "./fs/commandExists";
84
+ export {commmandInPathSync} from "./fs/commandExists";
85
+ /* fs/tempFolder.ts */
86
+ // Identifiers
87
+ export {createTempFolder} from "./fs/tempFolder";
88
+ /* fs/weiteChanged.ts */
89
+ // Identifiers
90
+ export {writeFileIfChangeSync} from "./fs/weiteChanged";
91
+ export {writeFileIfChange} from "./fs/weiteChanged";
92
+ /* log/terminal.ts */
93
+ // Identifiers
94
+ export {WrappedTerminalConsole} from "./log/terminal";
95
+ /* path-resolve/findUp.ts */
96
+ // Identifiers
97
+ export {findUpUntil} from "./path-resolve/findUp";
98
+ export {findUpUntilSync} from "./path-resolve/findUp";
99
+ /* path-resolve/findPackageRoot.ts */
100
+ // Identifiers
101
+ export {findPackageRoot} from "./path-resolve/findPackageRoot";
102
+ /* path-resolve/getAllUp.ts */
103
+ // Identifiers
104
+ export {getAllPathUpToRoot} from "./path-resolve/getAllUp";
105
+ /* path-resolve/lrelative.ts */
106
+ // Identifiers
107
+ export {lrelative} from "./path-resolve/lrelative";
108
+ /* path-resolve/nodeResolvePathArray.ts */
109
+ // Identifiers
110
+ export {nodeResolvePathArray} from "./path-resolve/nodeResolvePathArray";
111
+ /* stream/blackHoleStream.ts */
112
+ // Identifiers
113
+ export {BlackHoleStream} from "./stream/blackHoleStream";
114
+ /* stream/streamPromise.ts */
115
+ // Identifiers
116
+ export {streamPromise} from "./stream/streamPromise";
117
+ export {streamHasEnd} from "./stream/streamPromise";
118
+ /* stream/collectingStream.ts */
119
+ // Identifiers
120
+ export {streamToBuffer} from "./stream/collectingStream";
121
+ export {RawCollectingStream} from "./stream/collectingStream";
122
+ export {CollectingStream} from "./stream/collectingStream";
123
+ /* stream/disposableStream.ts */
124
+ // Identifiers
125
+ export {disposableStream} from "./stream/disposableStream";
126
+ /* stream/drainStream.ts */
127
+ // Identifiers
128
+ export {drainStream} from "./stream/drainStream";
129
+ /* stream/loggerStream.ts */
130
+ // Identifiers
131
+ export {LogFunction} from "./stream/loggerStream";
132
+ export {LoggerStream} from "./stream/loggerStream";
133
+ export {HexDumpLoggerStream} from "./stream/loggerStream";
@@ -0,0 +1,41 @@
1
+ import { WrappedConsole, WrappedConsoleOptions } from '@idlebox/common';
2
+
3
+ interface TerminalConsoleOptions {
4
+ color?: boolean | Partial<typeof colorMap>;
5
+ }
6
+
7
+ const colorMap = {
8
+ info: '38;5;14',
9
+ success: '38;5;10',
10
+ debug: '2',
11
+ error: '38;5;9',
12
+ trace: '2',
13
+ warn: '38;5;11',
14
+ assert: '38;5;9;7',
15
+ };
16
+
17
+ export class WrappedTerminalConsole extends WrappedConsole {
18
+ private readonly colors: Record<string, string> = colorMap;
19
+
20
+ constructor(title: string, { color, ...opt }: WrappedConsoleOptions & TerminalConsoleOptions = {}) {
21
+ super(title, opt);
22
+ if (color === false) {
23
+ this.colors = {};
24
+ } else if (color === undefined) {
25
+ if (!process.stderr.isTTY || !process.stdout.isTTY) {
26
+ this.colors = {};
27
+ }
28
+ } else if (typeof color === 'object') {
29
+ this.colors = { ...colorMap, ...color };
30
+ }
31
+ }
32
+
33
+ protected processColorLabel(msg: any[], pos: number, level: string, prefix: string): void {
34
+ if (this.colors[level]) {
35
+ msg[pos] = `\x1B[${this.colors[level]}m${prefix}${msg[pos]}`;
36
+ msg.push('\x1B[0m');
37
+ } else {
38
+ msg[pos] = `${prefix}${msg[pos]}`;
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,20 @@
1
+ import { createRequire } from 'module';
2
+ import { dirname } from 'path';
3
+ import { findUpUntilSync } from './findUp';
4
+
5
+ export function findPackageRoot(packageName: string, require = createRequire(process.cwd())) {
6
+ try {
7
+ return dirname(require.resolve(packageName + 'package.json'));
8
+ } catch (e: any) {
9
+ if (e.code === 'ERR_PACKAGE_PATH_NOT_EXPORTED') {
10
+ const main = require.resolve(packageName);
11
+ const pkgJson = findUpUntilSync(main, 'package.json');
12
+ if (!pkgJson) {
13
+ throw new Error(`Package ${packageName} do not have a package.json`);
14
+ }
15
+ return dirname(pkgJson);
16
+ } else {
17
+ throw e;
18
+ }
19
+ }
20
+ }
@@ -0,0 +1,34 @@
1
+ import { dirname, resolve } from 'path';
2
+ import { exists, existsSync } from '../fs/exists';
3
+
4
+ export async function findUpUntil(from: string, file: string): Promise<string | null> {
5
+ for (let _from = resolve(from); _from !== '/'; _from = dirname(_from)) {
6
+ const want = resolve(_from, file);
7
+ if (await exists(want)) {
8
+ return want;
9
+ }
10
+ }
11
+
12
+ const final = resolve('/', file);
13
+ if (await exists(final)) {
14
+ return final;
15
+ }
16
+
17
+ return null;
18
+ }
19
+
20
+ export function findUpUntilSync(from: string, file: string): string | null {
21
+ for (let _from = resolve(from); _from !== '/'; _from = dirname(_from)) {
22
+ const want = resolve(_from, file);
23
+ if (existsSync(want)) {
24
+ return want;
25
+ }
26
+ }
27
+
28
+ const final = resolve('/', file);
29
+ if (existsSync(final)) {
30
+ return final;
31
+ }
32
+
33
+ return null;
34
+ }
@@ -0,0 +1,15 @@
1
+ export function getAllPathUpToRoot(from: string, append: string = '') {
2
+ const parts = from.split(/\/\\/g).filter((e) => e);
3
+ const dirs: string[] = [];
4
+ let p = '';
5
+
6
+ if (append) {
7
+ append = '/' + append;
8
+ }
9
+
10
+ for (const i of parts) {
11
+ p += '/' + i;
12
+ dirs.push(p + append);
13
+ }
14
+ return dirs;
15
+ }
@@ -0,0 +1,20 @@
1
+ import { isAbsolute } from 'path';
2
+
3
+ export function lrelative(from: string, to: string) {
4
+ if (!isAbsolute(from)) {
5
+ throw new Error('lrelative: from is not absolute: ' + from);
6
+ }
7
+ if (!isAbsolute(to)) {
8
+ throw new Error('lrelative: to is not absolute: ' + to);
9
+ }
10
+ const fa = from.split(/[\/\\]/g).filter((e) => e);
11
+ const ta = to.split(/[\/\\]/g).filter((e) => e);
12
+ const f = ta.pop();
13
+ while (fa[0] === ta[0]) {
14
+ fa.shift();
15
+ ta.shift();
16
+ }
17
+ const ret = fa.length === 0 ? ['.'] : new Array(fa.length).fill('..');
18
+ ret.push(...ta, f);
19
+ return ret.join('/');
20
+ }
@@ -0,0 +1,10 @@
1
+ import { dirname, resolve } from 'path';
2
+
3
+ export function nodeResolvePathArray(from: string, file = 'node_modules') {
4
+ const ret: string[] = [];
5
+ do {
6
+ ret.push(resolve(from, file));
7
+ from = dirname(from);
8
+ } while (from !== '/');
9
+ return ret;
10
+ }
@@ -0,0 +1,43 @@
1
+ import { isWindows } from '@idlebox/common';
2
+ import { tmpdir } from 'os';
3
+ import { normalize, relative, resolve } from 'path';
4
+
5
+ const winSlash = /\\/g;
6
+
7
+ export interface ResolvePathFunction {
8
+ (...pathSegments: string[]): string;
9
+ }
10
+
11
+ export interface JoinPathFunction {
12
+ (from: string, to: string): string;
13
+ }
14
+
15
+ export const resolvePath: ResolvePathFunction = isWindows ? resolveWindowsPath : resolve;
16
+
17
+ function resolveWindowsPath(...pathSegments: string[]): string {
18
+ return resolve(...pathSegments).replace(winSlash, '/');
19
+ }
20
+
21
+ export interface NormalizePathFunction {
22
+ (path: string): string;
23
+ }
24
+
25
+ export const normalizePath: NormalizePathFunction = isWindows ? normalizeWindowsPath : normalize;
26
+
27
+ function normalizeWindowsPath(path: string): string {
28
+ return normalize(path).replace(winSlash, '/');
29
+ }
30
+
31
+ export function osTempDir(name?: string) {
32
+ if (name) {
33
+ return resolvePath(tmpdir(), name);
34
+ } else {
35
+ return resolvePath(tmpdir());
36
+ }
37
+ }
38
+
39
+ function relativeWindowsPath(from: string, to: string) {
40
+ return relative(normalize(from), normalize(to)).replace(winSlash, '/');
41
+ }
42
+
43
+ export const relativePath: JoinPathFunction = isWindows ? relativeWindowsPath : relative;
package/src/preload.ts ADDED
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,7 @@
1
+ import { Writable } from 'stream';
2
+
3
+ export class BlackHoleStream extends Writable {
4
+ _write(_chunk: Buffer, _encoding: string, callback: (error?: Error | null) => void): void {
5
+ callback();
6
+ }
7
+ }
@@ -0,0 +1,85 @@
1
+ import { Writable } from 'stream';
2
+ import { streamPromise } from './streamPromise';
3
+
4
+ export function streamToBuffer(stream: NodeJS.ReadableStream, raw: false): Promise<string>;
5
+ export function streamToBuffer(stream: NodeJS.ReadableStream, raw: true): Promise<Buffer>;
6
+ export function streamToBuffer(stream: NodeJS.ReadableStream, raw: boolean): Promise<string | Buffer> {
7
+ if (raw) {
8
+ return new RawCollectingStream(stream).promise();
9
+ } else {
10
+ return new CollectingStream(stream).promise();
11
+ }
12
+ }
13
+
14
+ export class RawCollectingStream extends Writable {
15
+ private buffer?: Buffer = Buffer.allocUnsafe(0);
16
+ private _promise?: Promise<Buffer>;
17
+
18
+ constructor(sourceStream?: NodeJS.ReadableStream) {
19
+ super();
20
+ if (sourceStream) {
21
+ sourceStream.pipe(this);
22
+ sourceStream.on('error', (e) => {
23
+ this.emit('error', e);
24
+ });
25
+ }
26
+ }
27
+
28
+ _write(chunk: Buffer, _encoding: string, callback: (error?: Error | null) => void): void {
29
+ this.buffer = Buffer.concat([this.buffer!, chunk]);
30
+ callback();
31
+ }
32
+
33
+ getOutput() {
34
+ return this.buffer!;
35
+ }
36
+
37
+ promise(): Promise<Buffer> {
38
+ return this._promise
39
+ ? this._promise
40
+ : (this._promise = streamPromise(this).then(() => {
41
+ const buffer = this.buffer!;
42
+ delete this.buffer;
43
+ return buffer;
44
+ }));
45
+ }
46
+ }
47
+
48
+ export class CollectingStream extends Writable {
49
+ private buffer? = '';
50
+ private _promise?: Promise<string>;
51
+
52
+ constructor(sourceStream?: NodeJS.ReadableStream) {
53
+ super();
54
+ if (sourceStream) {
55
+ sourceStream.pipe(this);
56
+ sourceStream.on('error', (e) => {
57
+ this.emit('error', e);
58
+ });
59
+ }
60
+ }
61
+
62
+ _write(chunk: Buffer, encoding: BufferEncoding, callback: (error?: Error | null) => void): void {
63
+ if (!encoding) {
64
+ encoding = 'utf8';
65
+ } else if ((encoding as any) === 'buffer' || encoding === 'binary') {
66
+ encoding = 'utf8';
67
+ }
68
+ this.buffer += chunk.toString(encoding);
69
+ callback();
70
+ }
71
+
72
+ getOutput() {
73
+ return this.buffer!;
74
+ }
75
+
76
+ promise(): Promise<string> {
77
+ return this._promise
78
+ ? this._promise
79
+ : (this._promise = streamPromise(this).then(() => {
80
+ const buffer = this.buffer!;
81
+ delete this.buffer;
82
+ return buffer;
83
+ }));
84
+ }
85
+ }
@@ -0,0 +1,24 @@
1
+ import { Readable, Writable } from 'stream';
2
+ import { IDisposable } from '@idlebox/common';
3
+
4
+ export function disposableStream<T extends Writable | Readable>(stream: T): T & IDisposable {
5
+ if ((stream as any).dispose) {
6
+ return stream as any;
7
+ }
8
+
9
+ let closed = false;
10
+ const handleClose = () => {
11
+ closed = true;
12
+ };
13
+
14
+ stream.once('close', handleClose);
15
+
16
+ return Object.assign(stream, {
17
+ dispose() {
18
+ if (!closed) {
19
+ stream.removeListener('close', handleClose);
20
+ stream.destroy();
21
+ }
22
+ },
23
+ });
24
+ }
@@ -0,0 +1,19 @@
1
+ export function drainStream(
2
+ stream: NodeJS.ReadableStream,
3
+ size: number,
4
+ start: number = 0,
5
+ extra: number = 0
6
+ ): Promise<Buffer> {
7
+ // buff will alloc as start+size+extra, but return will always start+RealStreamSize+extra
8
+ const buff = Buffer.allocUnsafe(start + size + extra);
9
+ let cur = start;
10
+ return new Promise<Buffer>((resolve, reject) => {
11
+ stream.once('error', (err) => reject(err));
12
+ stream.on('data', (data: Buffer) => {
13
+ cur += data.copy(buff, cur);
14
+ });
15
+ stream.on('close', () => {
16
+ resolve(buff);
17
+ });
18
+ });
19
+ }
@@ -0,0 +1,61 @@
1
+ import { Transform } from 'stream';
2
+
3
+ export type LogFunction = (message: string, ...args: any[]) => void;
4
+
5
+ export class LoggerStream extends Transform {
6
+ private readonly prefix: string;
7
+
8
+ constructor(private readonly logFn: LogFunction, prefix?: string) {
9
+ super();
10
+ this.prefix = prefix ? prefix + ' %s' : '%s';
11
+ }
12
+
13
+ _transform(chunk: Buffer, encoding: BufferEncoding, callback: Function): void {
14
+ if ((encoding as any) === 'buffer' || encoding === 'binary') {
15
+ encoding = undefined as any;
16
+ }
17
+ chunk
18
+ .toString(encoding)
19
+ .split(/\n/g)
20
+ .forEach((l) => {
21
+ if (l.length) {
22
+ this.logFn(this.prefix, l);
23
+ }
24
+ });
25
+ this.push(chunk, encoding);
26
+ callback();
27
+ }
28
+ }
29
+
30
+ function pad2(s: string) {
31
+ return s.length === 1 ? '0' + s : s;
32
+ }
33
+
34
+ export class HexDumpLoggerStream extends Transform {
35
+ private readonly prefix: string;
36
+
37
+ constructor(private readonly logFn: LogFunction, prefix?: string) {
38
+ super();
39
+ this.prefix = prefix ? prefix + ' ' : '';
40
+ }
41
+
42
+ _transform(chunk: Buffer, encoding: BufferEncoding, callback: Function): void {
43
+ let itr = 0;
44
+ while (chunk.length - itr > 0) {
45
+ const l = Array.from(chunk.slice(itr, itr + 16))
46
+ .map((e) => pad2(e.toString(16)).toUpperCase())
47
+ .join(' ');
48
+ itr += 16;
49
+
50
+ const r = Array.from(chunk.slice(itr, itr + 16))
51
+ .map((e) => pad2(e.toString(16)).toUpperCase())
52
+ .join(' ');
53
+ itr += 16;
54
+
55
+ this.logFn(this.prefix + l + ' ' + r);
56
+ }
57
+
58
+ this.push(chunk, encoding);
59
+ callback();
60
+ }
61
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * wait read/write stream end/close, as promise
3
+ * reject when stream emit error
4
+ */
5
+ export function streamPromise(stream: NodeJS.ReadableStream | NodeJS.WritableStream): Promise<void> {
6
+ if (streamHasEnd(stream)) {
7
+ return Promise.resolve();
8
+ } else {
9
+ return new Promise((resolve, reject) => {
10
+ stream.once('end', () => resolve());
11
+ stream.once('finish', () => resolve());
12
+ stream.once('close', () => resolve());
13
+ stream.once('error', reject);
14
+ });
15
+ }
16
+ }
17
+
18
+ export function streamHasEnd(S: NodeJS.ReadableStream | NodeJS.WritableStream) {
19
+ const stream = S as any;
20
+ return (
21
+ (stream._writableState && stream._writableState.ended) || (stream._readableState && stream._readableState.ended)
22
+ );
23
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "local-rig/profiles/default/tsconfig.json",
3
+ "compilerOptions": {
4
+ "typeRoots": ["./node_modules/@types", "./node_modules"],
5
+ "tsBuildInfoFile": "../temp/tsbuildinfo.json",
6
+ "outDir": "../lib",
7
+ "declarationDir": "../temp/dts",
8
+ "rootDir": "./",
9
+
10
+ "types": ["node"]
11
+ },
12
+ "files": ["preload.ts"],
13
+ "include": ["**/*.ts"]
14
+ }