@langri-sha/projen-typescript-config 0.1.0 → 0.2.1

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.json CHANGED
@@ -2,7 +2,69 @@
2
2
  "name": "@langri-sha/projen-typescript-config",
3
3
  "entries": [
4
4
  {
5
- "date": "Tue, 14 May 2024 20:39:52 GMT",
5
+ "date": "Tue, 21 May 2024 05:21:32 GMT",
6
+ "version": "0.2.1",
7
+ "tag": "@langri-sha/projen-typescript-config_v0.2.1",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "author": "email not defined",
12
+ "package": "@langri-sha/projen-typescript-config",
13
+ "commit": "f95709138a43b934997a15555d3e42655a02bee3",
14
+ "comment": "chore(deps): chore(deps): update dependency projen to v0.81.15"
15
+ },
16
+ {
17
+ "author": "email not defined",
18
+ "package": "@langri-sha/projen-typescript-config",
19
+ "commit": "f95709138a43b934997a15555d3e42655a02bee3",
20
+ "comment": "chore(deps): chore(deps): update dependency projen to v0.81.13"
21
+ },
22
+ {
23
+ "author": "filip.dupanovic@gmail.com",
24
+ "package": "@langri-sha/projen-typescript-config",
25
+ "commit": "f95709138a43b934997a15555d3e42655a02bee3",
26
+ "comment": "fix(typescript-config): Respect configured file name"
27
+ }
28
+ ]
29
+ }
30
+ },
31
+ {
32
+ "date": "Wed, 15 May 2024 06:47:18 GMT",
33
+ "version": "0.2.0",
34
+ "tag": "@langri-sha/projen-typescript-config_v0.2.0",
35
+ "comments": {
36
+ "minor": [
37
+ {
38
+ "author": "filip.dupanovic@gmail.com",
39
+ "package": "@langri-sha/projen-typescript-config",
40
+ "commit": "92c7d4c9ac50342a39af3fc029307a2899f0ae34",
41
+ "comment": "feat(typescript-config): Allow providing multiple filenames or patterns"
42
+ }
43
+ ],
44
+ "patch": [
45
+ {
46
+ "author": "email not defined",
47
+ "package": "@langri-sha/projen-typescript-config",
48
+ "commit": "92c7d4c9ac50342a39af3fc029307a2899f0ae34",
49
+ "comment": "chore(deps): chore(deps): update dependency @types/node to v20.12.12"
50
+ },
51
+ {
52
+ "author": "filip.dupanovic@gmail.com",
53
+ "package": "@langri-sha/projen-typescript-config",
54
+ "commit": "92c7d4c9ac50342a39af3fc029307a2899f0ae34",
55
+ "comment": "fix(typescript-config): Use secure schema URL"
56
+ },
57
+ {
58
+ "author": "email not defined",
59
+ "package": "@langri-sha/projen-typescript-config",
60
+ "commit": "92c7d4c9ac50342a39af3fc029307a2899f0ae34",
61
+ "comment": "chore(deps): chore(deps): update dependency projen to v0.81.11"
62
+ }
63
+ ]
64
+ }
65
+ },
66
+ {
67
+ "date": "Tue, 14 May 2024 20:41:06 GMT",
6
68
  "version": "0.1.0",
7
69
  "tag": "@langri-sha/projen-typescript-config_v0.1.0",
8
70
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,36 @@
1
1
  # Change Log - @langri-sha/projen-typescript-config
2
2
 
3
- This log was last generated on Tue, 14 May 2024 20:39:52 GMT and should not be manually modified.
3
+ This log was last generated on Tue, 21 May 2024 05:21:32 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.2.1
8
+
9
+ Tue, 21 May 2024 05:21:32 GMT
10
+
11
+ ### Patches
12
+
13
+ - chore(deps): chore(deps): update dependency projen to v0.81.15 (email not defined)
14
+ - chore(deps): chore(deps): update dependency projen to v0.81.13 (email not defined)
15
+ - fix(typescript-config): Respect configured file name (filip.dupanovic@gmail.com)
16
+
17
+ ## 0.2.0
18
+
19
+ Wed, 15 May 2024 06:47:18 GMT
20
+
21
+ ### Minor changes
22
+
23
+ - feat(typescript-config): Allow providing multiple filenames or patterns (filip.dupanovic@gmail.com)
24
+
25
+ ### Patches
26
+
27
+ - chore(deps): chore(deps): update dependency @types/node to v20.12.12 (email not defined)
28
+ - fix(typescript-config): Use secure schema URL (filip.dupanovic@gmail.com)
29
+ - chore(deps): chore(deps): update dependency projen to v0.81.11 (email not defined)
30
+
7
31
  ## 0.1.0
8
32
 
9
- Tue, 14 May 2024 20:39:52 GMT
33
+ Tue, 14 May 2024 20:41:06 GMT
10
34
 
11
35
  ### Minor changes
12
36
 
package/lib/index.d.ts CHANGED
@@ -20,18 +20,18 @@ export declare class TypeScriptConfig extends Component {
20
20
  /**
21
21
  * Appends to the list of filenames and patterns to exclude in the program.
22
22
  */
23
- addExclude(fileNameOrPattern: string): void;
23
+ addExclude(...fileNamesOrPatterns: string[]): void;
24
24
  /**
25
25
  * Appends to the list of filenames and patterns to include in the program.
26
26
  */
27
- addInclude(fileNameOrPattern: string): void;
27
+ addInclude(...fileNamesOrPatterns: string[]): void;
28
28
  /**
29
29
  * Appends to the list of filenames to include in the program.
30
30
  */
31
- addFile(fileName: string): void;
31
+ addFile(...fileNames: string[]): void;
32
32
  /**
33
33
  * Adds a reference project.
34
34
  */
35
- addReference(path: string): void;
35
+ addReference(...paths: string[]): void;
36
36
  }
37
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oDAAoD,EAAE,MAAM,uBAAuB,CAAA;AACjG,OAAO,EAAE,SAAS,EAAY,OAAO,EAAE,MAAM,QAAQ,CAAA;AAErD,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,oDAAoD,GAAG;QAC9D;;WAEG;QACH,UAAU,CAAC,EAAE;YACX;;eAEG;YACH,IAAI,EAAE,MAAM,CAAA;SACb,EAAE,CAAA;KACJ,CAAA;IACD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,qBAAa,gBAAiB,SAAQ,SAAS;;gBAIjC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,uBAAuB;IAmB9D;;OAEG;IACH,UAAU,CAAC,iBAAiB,EAAE,MAAM;IAIpC;;OAEG;IACH,UAAU,CAAC,iBAAiB,EAAE,MAAM;IAIpC;;OAEG;IACH,OAAO,CAAC,QAAQ,EAAE,MAAM;IAIxB;;OAEG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM;CAK1B"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oDAAoD,EAAE,MAAM,uBAAuB,CAAA;AACjG,OAAO,EAAE,SAAS,EAAY,OAAO,EAAE,MAAM,QAAQ,CAAA;AAErD,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,EAAE,oDAAoD,GAAG;QAC9D;;WAEG;QACH,UAAU,CAAC,EAAE;YACX;;eAEG;YACH,IAAI,EAAE,MAAM,CAAA;SACb,EAAE,CAAA;KACJ,CAAA;IACD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,qBAAa,gBAAiB,SAAQ,SAAS;;gBAIjC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,uBAAuB;IAmB9D;;OAEG;IACH,UAAU,CAAC,GAAG,mBAAmB,EAAE,MAAM,EAAE;IAI3C;;OAEG;IACH,UAAU,CAAC,GAAG,mBAAmB,EAAE,MAAM,EAAE;IAI3C;;OAEG;IACH,OAAO,CAAC,GAAG,SAAS,EAAE,MAAM,EAAE;IAI9B;;OAEG;IACH,YAAY,CAAC,GAAG,KAAK,EAAE,MAAM,EAAE;CAQhC"}
package/lib/index.js CHANGED
@@ -21,10 +21,10 @@ export class TypeScriptConfig extends Component {
21
21
  config: options.config ?? {},
22
22
  fileName,
23
23
  }, "f");
24
- __classPrivateFieldSet(this, _TypeScriptConfig_file, new JsonFile(this, 'tsconfig.json', {
24
+ __classPrivateFieldSet(this, _TypeScriptConfig_file, new JsonFile(this, fileName, {
25
25
  allowComments: true,
26
26
  obj: {
27
- $schema: 'http://json.schemastore.org/tsconfig',
27
+ $schema: 'https://json.schemastore.org/tsconfig',
28
28
  ...__classPrivateFieldGet(this, _TypeScriptConfig_options, "f").config,
29
29
  },
30
30
  }), "f");
@@ -32,28 +32,28 @@ export class TypeScriptConfig extends Component {
32
32
  /**
33
33
  * Appends to the list of filenames and patterns to exclude in the program.
34
34
  */
35
- addExclude(fileNameOrPattern) {
36
- __classPrivateFieldGet(this, _TypeScriptConfig_file, "f").addToArray('exclude', fileNameOrPattern);
35
+ addExclude(...fileNamesOrPatterns) {
36
+ __classPrivateFieldGet(this, _TypeScriptConfig_file, "f").addToArray('exclude', ...fileNamesOrPatterns);
37
37
  }
38
38
  /**
39
39
  * Appends to the list of filenames and patterns to include in the program.
40
40
  */
41
- addInclude(fileNameOrPattern) {
42
- __classPrivateFieldGet(this, _TypeScriptConfig_file, "f").addToArray('include', fileNameOrPattern);
41
+ addInclude(...fileNamesOrPatterns) {
42
+ __classPrivateFieldGet(this, _TypeScriptConfig_file, "f").addToArray('include', ...fileNamesOrPatterns);
43
43
  }
44
44
  /**
45
45
  * Appends to the list of filenames to include in the program.
46
46
  */
47
- addFile(fileName) {
48
- __classPrivateFieldGet(this, _TypeScriptConfig_file, "f").addToArray('files', fileName);
47
+ addFile(...fileNames) {
48
+ __classPrivateFieldGet(this, _TypeScriptConfig_file, "f").addToArray('files', ...fileNames);
49
49
  }
50
50
  /**
51
51
  * Adds a reference project.
52
52
  */
53
- addReference(path) {
54
- __classPrivateFieldGet(this, _TypeScriptConfig_file, "f").addToArray('references', {
53
+ addReference(...paths) {
54
+ __classPrivateFieldGet(this, _TypeScriptConfig_file, "f").addToArray('references', ...paths.map((path) => ({
55
55
  path,
56
- });
56
+ })));
57
57
  }
58
58
  }
59
59
  _TypeScriptConfig_file = new WeakMap(), _TypeScriptConfig_options = new WeakMap();
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAW,MAAM,QAAQ,CAAA;AAiBrD,MAAM,OAAO,gBAAiB,SAAQ,SAAS;IAI7C,YAAY,OAAgB,EAAE,OAA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,OAAO,CAAC,QAAQ,IAAI,eAAe,CAAA;QAEpD,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;QAN1B,yCAAe;QACf,4CAA2C;QAOzC,uBAAA,IAAI,6BAAY;YACd,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,EAAE;YAC5B,QAAQ;SACT,MAAA,CAAA;QAED,uBAAA,IAAI,0BAAS,IAAI,QAAQ,CAAC,IAAI,EAAE,QAAQ,EAAE;YACxC,aAAa,EAAE,IAAI;YACnB,GAAG,EAAE;gBACH,OAAO,EAAE,uCAAuC;gBAChD,GAAG,uBAAA,IAAI,iCAAS,CAAC,MAAM;aACxB;SACF,CAAC,MAAA,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,GAAG,mBAA6B;QACzC,uBAAA,IAAI,8BAAM,CAAC,UAAU,CAAC,SAAS,EAAE,GAAG,mBAAmB,CAAC,CAAA;IAC1D,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,GAAG,mBAA6B;QACzC,uBAAA,IAAI,8BAAM,CAAC,UAAU,CAAC,SAAS,EAAE,GAAG,mBAAmB,CAAC,CAAA;IAC1D,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,GAAG,SAAmB;QAC5B,uBAAA,IAAI,8BAAM,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,SAAS,CAAC,CAAA;IAC9C,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,GAAG,KAAe;QAC7B,uBAAA,IAAI,8BAAM,CAAC,UAAU,CACnB,YAAY,EACZ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YACtB,IAAI;SACL,CAAC,CAAC,CACJ,CAAA;IACH,CAAC;CACF"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langri-sha/projen-typescript-config",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -13,8 +13,8 @@
13
13
  "devDependencies": {
14
14
  "@langri-sha/jest-test": "0.7.1",
15
15
  "@langri-sha/tsconfig": "0.9.0",
16
- "@types/node": "20.12.11",
17
- "projen": "0.81.10"
16
+ "@types/node": "20.12.12",
17
+ "projen": "0.81.15"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "projen": "^0.81.1"
package/src/index.ts CHANGED
@@ -30,10 +30,10 @@ export class TypeScriptConfig extends Component {
30
30
  fileName,
31
31
  }
32
32
 
33
- this.#file = new JsonFile(this, 'tsconfig.json', {
33
+ this.#file = new JsonFile(this, fileName, {
34
34
  allowComments: true,
35
35
  obj: {
36
- $schema: 'http://json.schemastore.org/tsconfig',
36
+ $schema: 'https://json.schemastore.org/tsconfig',
37
37
  ...this.#options.config,
38
38
  },
39
39
  })
@@ -42,30 +42,33 @@ export class TypeScriptConfig extends Component {
42
42
  /**
43
43
  * Appends to the list of filenames and patterns to exclude in the program.
44
44
  */
45
- addExclude(fileNameOrPattern: string) {
46
- this.#file.addToArray('exclude', fileNameOrPattern)
45
+ addExclude(...fileNamesOrPatterns: string[]) {
46
+ this.#file.addToArray('exclude', ...fileNamesOrPatterns)
47
47
  }
48
48
 
49
49
  /**
50
50
  * Appends to the list of filenames and patterns to include in the program.
51
51
  */
52
- addInclude(fileNameOrPattern: string) {
53
- this.#file.addToArray('include', fileNameOrPattern)
52
+ addInclude(...fileNamesOrPatterns: string[]) {
53
+ this.#file.addToArray('include', ...fileNamesOrPatterns)
54
54
  }
55
55
 
56
56
  /**
57
57
  * Appends to the list of filenames to include in the program.
58
58
  */
59
- addFile(fileName: string) {
60
- this.#file.addToArray('files', fileName)
59
+ addFile(...fileNames: string[]) {
60
+ this.#file.addToArray('files', ...fileNames)
61
61
  }
62
62
 
63
63
  /**
64
64
  * Adds a reference project.
65
65
  */
66
- addReference(path: string) {
67
- this.#file.addToArray('references', {
68
- path,
69
- })
66
+ addReference(...paths: string[]) {
67
+ this.#file.addToArray(
68
+ 'references',
69
+ ...paths.map((path) => ({
70
+ path,
71
+ })),
72
+ )
70
73
  }
71
74
  }