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

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,42 @@
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": "Wed, 15 May 2024 06:46:11 GMT",
6
+ "version": "0.2.0",
7
+ "tag": "@langri-sha/projen-typescript-config_v0.2.0",
8
+ "comments": {
9
+ "minor": [
10
+ {
11
+ "author": "filip.dupanovic@gmail.com",
12
+ "package": "@langri-sha/projen-typescript-config",
13
+ "commit": "92c7d4c9ac50342a39af3fc029307a2899f0ae34",
14
+ "comment": "feat(typescript-config): Allow providing multiple filenames or patterns"
15
+ }
16
+ ],
17
+ "patch": [
18
+ {
19
+ "author": "email not defined",
20
+ "package": "@langri-sha/projen-typescript-config",
21
+ "commit": "92c7d4c9ac50342a39af3fc029307a2899f0ae34",
22
+ "comment": "chore(deps): chore(deps): update dependency @types/node to v20.12.12"
23
+ },
24
+ {
25
+ "author": "filip.dupanovic@gmail.com",
26
+ "package": "@langri-sha/projen-typescript-config",
27
+ "commit": "92c7d4c9ac50342a39af3fc029307a2899f0ae34",
28
+ "comment": "fix(typescript-config): Use secure schema URL"
29
+ },
30
+ {
31
+ "author": "email not defined",
32
+ "package": "@langri-sha/projen-typescript-config",
33
+ "commit": "92c7d4c9ac50342a39af3fc029307a2899f0ae34",
34
+ "comment": "chore(deps): chore(deps): update dependency projen to v0.81.11"
35
+ }
36
+ ]
37
+ }
38
+ },
39
+ {
40
+ "date": "Tue, 14 May 2024 20:41:06 GMT",
6
41
  "version": "0.1.0",
7
42
  "tag": "@langri-sha/projen-typescript-config_v0.1.0",
8
43
  "comments": {
package/CHANGELOG.md CHANGED
@@ -1,12 +1,26 @@
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 Wed, 15 May 2024 06:46:11 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
+ ## 0.2.0
8
+
9
+ Wed, 15 May 2024 06:46:11 GMT
10
+
11
+ ### Minor changes
12
+
13
+ - feat(typescript-config): Allow providing multiple filenames or patterns (filip.dupanovic@gmail.com)
14
+
15
+ ### Patches
16
+
17
+ - chore(deps): chore(deps): update dependency @types/node to v20.12.12 (email not defined)
18
+ - fix(typescript-config): Use secure schema URL (filip.dupanovic@gmail.com)
19
+ - chore(deps): chore(deps): update dependency projen to v0.81.11 (email not defined)
20
+
7
21
  ## 0.1.0
8
22
 
9
- Tue, 14 May 2024 20:39:52 GMT
23
+ Tue, 14 May 2024 20:41:06 GMT
10
24
 
11
25
  ### Minor changes
12
26
 
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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KAAK,EAAE,MAAM,EAAE;CAQhC"}
package/lib/index.js CHANGED
@@ -24,7 +24,7 @@ export class TypeScriptConfig extends Component {
24
24
  __classPrivateFieldSet(this, _TypeScriptConfig_file, new JsonFile(this, 'tsconfig.json', {
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,OAAgC;QAC5D,MAAM,QAAQ,GAAG,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,eAAe,EAAE;YAC/C,aAAa,EAAE,IAAI;YACnB,GAAG,EAAE;gBACH,OAAO,EAAE,sCAAsC;gBAC/C,GAAG,uBAAA,IAAI,iCAAS,CAAC,MAAM;aACxB;SACF,CAAC,MAAA,CAAA;IACJ,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,iBAAyB;QAClC,uBAAA,IAAI,8BAAM,CAAC,UAAU,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAA;IACrD,CAAC;IAED;;OAEG;IACH,UAAU,CAAC,iBAAyB;QAClC,uBAAA,IAAI,8BAAM,CAAC,UAAU,CAAC,SAAS,EAAE,iBAAiB,CAAC,CAAA;IACrD,CAAC;IAED;;OAEG;IACH,OAAO,CAAC,QAAgB;QACtB,uBAAA,IAAI,8BAAM,CAAC,UAAU,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAA;IAC1C,CAAC;IAED;;OAEG;IACH,YAAY,CAAC,IAAY;QACvB,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G,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.0",
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.11"
18
18
  },
19
19
  "peerDependencies": {
20
20
  "projen": "^0.81.1"
package/src/index.ts CHANGED
@@ -33,7 +33,7 @@ export class TypeScriptConfig extends Component {
33
33
  this.#file = new JsonFile(this, 'tsconfig.json', {
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
  }