@schemastore/babelrc 0.0.2 → 0.0.5

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 (4) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +2 -2
  3. package/index.d.ts +34 -18
  4. package/package.json +4 -4
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) Florian Imdahl. All rights reserved.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE
package/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
  This package contains type definitions for babelrc.
6
6
 
7
7
  ## Details
8
- Files were exported from https://github.com/ffflorian/schemastore-updater/tree/master/schemas/babelrc.
8
+ Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/babelrc.
9
9
 
10
10
  ## Additional Details
11
- * Last updated: Thu, Jul 25, 2019, 17:59:05 GMT
11
+ * Last updated: Mon, May 30, 2022, 07:50:59 GMT
12
12
  * Dependencies: none
package/index.d.ts CHANGED
@@ -5,7 +5,17 @@
5
5
  * and run json-schema-to-typescript to regenerate this file.
6
6
  */
7
7
 
8
- export interface JSONSchemaForBabel6ConfigurationFiles {
8
+ export type JSONSchemaForBabel6ConfigurationFiles = Options & {
9
+ /**
10
+ * This is an object of keys that represent different environments. For example, you may have: `{ env: { production: { /* specific options * / } } }` which will use those options when the environment variable BABEL_ENV is set to "production". If BABEL_ENV isn't set then NODE_ENV will be used, if it's not set then it defaults to "development"
11
+ */
12
+ env?: {
13
+ [k: string]: Options;
14
+ };
15
+ [k: string]: unknown;
16
+ };
17
+
18
+ export interface Options {
9
19
  /**
10
20
  * Include the AST in the returned object
11
21
  */
@@ -30,12 +40,6 @@ export interface JSONSchemaForBabel6ConfigurationFiles {
30
40
  * Do not include superfluous whitespace characters and line terminators. When set to "auto" compact is set to true on input sizes of >500KB.
31
41
  */
32
42
  compact?: "auto" | true | false;
33
- /**
34
- * This is an object of keys that represent different environments. For example, you may have: `{ env: { production: { /* specific options * / } } }` which will use those options when the environment variable BABEL_ENV is set to "production". If BABEL_ENV isn't set then NODE_ENV will be used, if it's not set then it defaults to "development"
35
- */
36
- env?: {
37
- [k: string]: any;
38
- };
39
43
  /**
40
44
  * A path to a .babelrc file to extend
41
45
  */
@@ -55,14 +59,14 @@ export interface JSONSchemaForBabel6ConfigurationFiles {
55
59
  /**
56
60
  * Opposite of the "only" option
57
61
  */
58
- ignore?: string[];
62
+ ignore?: string | string[];
59
63
  /**
60
64
  * If true, attempt to load an input sourcemap from the file itself. If an object is provided, it will be treated as the source map object itself.
61
65
  */
62
66
  inputSourceMap?:
63
67
  | boolean
64
68
  | {
65
- [k: string]: any;
69
+ [k: string]: unknown;
66
70
  };
67
71
  /**
68
72
  * Keep extensions in module ids
@@ -75,7 +79,7 @@ export interface JSONSchemaForBabel6ConfigurationFiles {
75
79
  /**
76
80
  * If truthy, insert an explicit id for modules. By default, all modules are anonymous. (Not available for common modules)
77
81
  */
78
- moduleIds?: string;
82
+ moduleIds?: boolean & string;
79
83
  /**
80
84
  * Optional prefix for the AMD module formatter that will be prepend to the filename on module definitions. (defaults to "sourceRoot")
81
85
  */
@@ -83,23 +87,35 @@ export interface JSONSchemaForBabel6ConfigurationFiles {
83
87
  /**
84
88
  * A glob, regex, or mixed array of both, matching paths to only compile. Can also be an array of arrays containing paths to explicitly match. When attempting to compile a non-matching file it's returned verbatim.
85
89
  */
86
- only?: string[];
90
+ only?: string | string[];
87
91
  /**
88
92
  * List of plugins to load and use
89
93
  */
90
94
  plugins?: (
91
95
  | string
92
- | {
93
- [k: string]: any;
94
- })[][];
96
+ | []
97
+ | [string]
98
+ | [
99
+ string,
100
+ {
101
+ [k: string]: unknown;
102
+ }
103
+ ]
104
+ )[];
95
105
  /**
96
106
  * List of presets (a set of plugins) to load and use
97
107
  */
98
108
  presets?: (
99
109
  | string
100
- | {
101
- [k: string]: any;
102
- })[][];
110
+ | []
111
+ | [string]
112
+ | [
113
+ string,
114
+ {
115
+ [k: string]: unknown;
116
+ }
117
+ ]
118
+ )[];
103
119
  /**
104
120
  * Retain line numbers. This will lead to wacky code but is handy for scenarios where you can't use source maps. NOTE: This will obviously not retain the columns.
105
121
  */
@@ -120,5 +136,5 @@ export interface JSONSchemaForBabel6ConfigurationFiles {
120
136
  * The root from which all sources are relative. (defaults to "moduleRoot")
121
137
  */
122
138
  sourceRoot?: string;
123
- [k: string]: any;
139
+ [k: string]: unknown;
124
140
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
- "author": "Florian Keller <github@floriankeller.de>",
2
+ "author": "Florian Imdahl <git@ffflorian.de>",
3
3
  "dependencies": {},
4
4
  "description": "TypeScript definitions for babelrc.",
5
5
  "license": "MIT",
6
6
  "main": "index.d.ts",
7
7
  "name": "@schemastore/babelrc",
8
- "repository": "https://github.com/ffflorian/schemastore-updater/tree/master/schemas/babelrc",
8
+ "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/babelrc",
9
9
  "scripts": {},
10
- "typesPublisherContentHash": "10ade8809ba0bcb9d2f959254bddc316f7bcb0f6e17858c460eb5ad066b8b63e",
10
+ "typesPublisherContentHash": "4f035967cab9ddd817b8b20ec6d22b363da230d17e2c1e34e9651c3fd57c978d",
11
11
  "types": "index.d.ts",
12
- "version": "0.0.2",
12
+ "version": "0.0.5",
13
13
  "typeScriptVersion": "2.2"
14
14
  }