@schemastore/babelrc 0.0.3 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) Florian Keller. All rights reserved.
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
@@ -8,5 +8,5 @@ This package contains type definitions for babelrc.
8
8
  Files were exported from https://github.com/ffflorian/schemastore-updater/tree/main/schemas/babelrc.
9
9
 
10
10
  ## Additional Details
11
- * Last updated: Sat, Jul 04, 2020, 11:00:04 GMT
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 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]: unknown;
38
- };
39
43
  /**
40
44
  * A path to a .babelrc file to extend
41
45
  */
@@ -55,11 +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?: boolean;
66
+ inputSourceMap?:
67
+ | boolean
68
+ | {
69
+ [k: string]: unknown;
70
+ };
63
71
  /**
64
72
  * Keep extensions in module ids
65
73
  */
@@ -71,7 +79,7 @@ export interface JSONSchemaForBabel6ConfigurationFiles {
71
79
  /**
72
80
  * If truthy, insert an explicit id for modules. By default, all modules are anonymous. (Not available for common modules)
73
81
  */
74
- moduleIds?: string;
82
+ moduleIds?: boolean & string;
75
83
  /**
76
84
  * Optional prefix for the AMD module formatter that will be prepend to the filename on module definitions. (defaults to "sourceRoot")
77
85
  */
@@ -79,40 +87,34 @@ export interface JSONSchemaForBabel6ConfigurationFiles {
79
87
  /**
80
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.
81
89
  */
82
- only?: string[];
90
+ only?: string | string[];
83
91
  /**
84
92
  * List of plugins to load and use
85
93
  */
86
94
  plugins?: (
87
- | (
88
- | string
89
- | {
90
- [k: string]: unknown;
91
- }
92
- )[]
93
- | (
94
- | string
95
- | {
96
- [k: string]: unknown;
97
- }
98
- )[]
95
+ | string
96
+ | []
97
+ | [string]
98
+ | [
99
+ string,
100
+ {
101
+ [k: string]: unknown;
102
+ }
103
+ ]
99
104
  )[];
100
105
  /**
101
106
  * List of presets (a set of plugins) to load and use
102
107
  */
103
108
  presets?: (
104
- | (
105
- | string
106
- | {
107
- [k: string]: unknown;
108
- }
109
- )[]
110
- | (
111
- | string
112
- | {
113
- [k: string]: unknown;
114
- }
115
- )[]
109
+ | string
110
+ | []
111
+ | [string]
112
+ | [
113
+ string,
114
+ {
115
+ [k: string]: unknown;
116
+ }
117
+ ]
116
118
  )[];
117
119
  /**
118
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.
package/package.json CHANGED
@@ -1,5 +1,5 @@
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",
@@ -7,8 +7,8 @@
7
7
  "name": "@schemastore/babelrc",
8
8
  "repository": "https://github.com/ffflorian/schemastore-updater/tree/main/schemas/babelrc",
9
9
  "scripts": {},
10
- "typesPublisherContentHash": "10ade8809ba0bcb9d2f959254bddc316f7bcb0f6e17858c460eb5ad066b8b63e",
10
+ "typesPublisherContentHash": "85edda420549955a7c16b8c1afbb23c453053a736b25b4c16f188ada6b585401",
11
11
  "types": "index.d.ts",
12
- "version": "0.0.3",
12
+ "version": "0.0.4",
13
13
  "typeScriptVersion": "2.2"
14
14
  }