@schemastore/babelrc 0.0.1 → 0.0.4
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/LICENSE +1 -1
- package/README.md +2 -2
- package/index.d.ts +39 -21
- package/package.json +4 -4
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) Florian
|
|
3
|
+
Copyright (c) Florian Imdahl. All rights reserved.
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
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/
|
|
8
|
+
Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/babelrc.
|
|
9
9
|
|
|
10
10
|
## Additional Details
|
|
11
|
-
* Last updated:
|
|
11
|
+
* Last updated: Mon, Apr 04, 2022, 11:03:18 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
|
|
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,13 +59,15 @@ 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
|
-
inputSourceMap?:
|
|
63
|
-
|
|
64
|
-
|
|
66
|
+
inputSourceMap?:
|
|
67
|
+
| boolean
|
|
68
|
+
| {
|
|
69
|
+
[k: string]: unknown;
|
|
70
|
+
};
|
|
65
71
|
/**
|
|
66
72
|
* Keep extensions in module ids
|
|
67
73
|
*/
|
|
@@ -73,7 +79,7 @@ export interface JSONSchemaForBabel6ConfigurationFiles {
|
|
|
73
79
|
/**
|
|
74
80
|
* If truthy, insert an explicit id for modules. By default, all modules are anonymous. (Not available for common modules)
|
|
75
81
|
*/
|
|
76
|
-
moduleIds?: string;
|
|
82
|
+
moduleIds?: boolean & string;
|
|
77
83
|
/**
|
|
78
84
|
* Optional prefix for the AMD module formatter that will be prepend to the filename on module definitions. (defaults to "sourceRoot")
|
|
79
85
|
*/
|
|
@@ -81,23 +87,35 @@ export interface JSONSchemaForBabel6ConfigurationFiles {
|
|
|
81
87
|
/**
|
|
82
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.
|
|
83
89
|
*/
|
|
84
|
-
only?: string[];
|
|
90
|
+
only?: string | string[];
|
|
85
91
|
/**
|
|
86
92
|
* List of plugins to load and use
|
|
87
93
|
*/
|
|
88
94
|
plugins?: (
|
|
89
95
|
| string
|
|
90
|
-
|
|
|
91
|
-
|
|
92
|
-
|
|
96
|
+
| []
|
|
97
|
+
| [string]
|
|
98
|
+
| [
|
|
99
|
+
string,
|
|
100
|
+
{
|
|
101
|
+
[k: string]: unknown;
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
)[];
|
|
93
105
|
/**
|
|
94
106
|
* List of presets (a set of plugins) to load and use
|
|
95
107
|
*/
|
|
96
108
|
presets?: (
|
|
97
109
|
| string
|
|
98
|
-
|
|
|
99
|
-
|
|
100
|
-
|
|
110
|
+
| []
|
|
111
|
+
| [string]
|
|
112
|
+
| [
|
|
113
|
+
string,
|
|
114
|
+
{
|
|
115
|
+
[k: string]: unknown;
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
)[];
|
|
101
119
|
/**
|
|
102
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.
|
|
103
121
|
*/
|
|
@@ -118,5 +136,5 @@ export interface JSONSchemaForBabel6ConfigurationFiles {
|
|
|
118
136
|
* The root from which all sources are relative. (defaults to "moduleRoot")
|
|
119
137
|
*/
|
|
120
138
|
sourceRoot?: string;
|
|
121
|
-
[k: string]:
|
|
139
|
+
[k: string]: unknown;
|
|
122
140
|
}
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
|
-
"author": "Florian
|
|
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/
|
|
8
|
+
"repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/babelrc",
|
|
9
9
|
"scripts": {},
|
|
10
|
-
"typesPublisherContentHash": "
|
|
10
|
+
"typesPublisherContentHash": "85edda420549955a7c16b8c1afbb23c453053a736b25b4c16f188ada6b585401",
|
|
11
11
|
"types": "index.d.ts",
|
|
12
|
-
"version": "0.0.
|
|
12
|
+
"version": "0.0.4",
|
|
13
13
|
"typeScriptVersion": "2.2"
|
|
14
14
|
}
|