@plugjs/typescript 0.2.0 → 0.2.2
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/index.cjs.map +1 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +6 -1
package/dist/index.cjs.map
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
3
|
"sources": ["../src/index.ts"],
|
|
4
|
-
"mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,kBAA+B;AAC/B,mBAA+B;AAAA,
|
|
4
|
+
"mappings": ";;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,kBAA+B;AAC/B,mBAA+B;AAAA,IA6D/B,4BAAe,WAAO,6BAAe,YAAW,cAAc,GAAG,KAAK;",
|
|
5
5
|
"names": []
|
|
6
6
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
1
|
import type { CompilerOptions } from 'typescript';
|
|
2
|
+
/** Remove the mapped `[option: string]: ...` from `CompilerOptions`. */
|
|
3
|
+
type KnownCompilerOptions = {
|
|
4
|
+
[k in keyof CompilerOptions as string extends k ? never : k]: CompilerOptions[k];
|
|
5
|
+
};
|
|
2
6
|
/** TypeScript Compiler options with some additional properties */
|
|
3
|
-
export interface ExtendedCompilerOptions extends
|
|
7
|
+
export interface ExtendedCompilerOptions extends KnownCompilerOptions {
|
|
4
8
|
/**
|
|
5
9
|
* An additional directory containing a set of `.d.ts` files which will
|
|
6
10
|
* be part of the compilation input, but not of the output.
|
|
@@ -46,3 +50,4 @@ declare module '@plugjs/plug' {
|
|
|
46
50
|
tsc(configFile: string, options: ExtendedCompilerOptions): Pipe;
|
|
47
51
|
}
|
|
48
52
|
}
|
|
53
|
+
export {};
|
package/dist/index.mjs.map
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plugjs/typescript",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typescript": "^4.9.5"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
|
-
"@plugjs/plug": "0.2.
|
|
36
|
+
"@plugjs/plug": "0.2.2"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"*.md",
|
package/src/index.ts
CHANGED
|
@@ -3,8 +3,13 @@ import { requireResolve } from '@plugjs/plug/paths'
|
|
|
3
3
|
|
|
4
4
|
import type { CompilerOptions } from 'typescript'
|
|
5
5
|
|
|
6
|
+
/** Remove the mapped `[option: string]: ...` from `CompilerOptions`. */
|
|
7
|
+
type KnownCompilerOptions = {
|
|
8
|
+
[ k in keyof CompilerOptions as string extends k ? never : k ]: CompilerOptions[k]
|
|
9
|
+
}
|
|
10
|
+
|
|
6
11
|
/** TypeScript Compiler options with some additional properties */
|
|
7
|
-
export interface ExtendedCompilerOptions extends
|
|
12
|
+
export interface ExtendedCompilerOptions extends KnownCompilerOptions {
|
|
8
13
|
/**
|
|
9
14
|
* An additional directory containing a set of `.d.ts` files which will
|
|
10
15
|
* be part of the compilation input, but not of the output.
|