@warp-drive-mirror/build-config 5.6.0-alpha.3 → 5.6.0-alpha.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.
- package/dist/babel-macros.js +45 -12
- package/dist/babel-macros.js.map +1 -1
- package/dist/babel-plugin-transform-asserts.cjs +2 -2
- package/dist/babel-plugin-transform-asserts.cjs.map +1 -1
- package/dist/babel-plugin-transform-deprecations.cjs +2 -2
- package/dist/babel-plugin-transform-deprecations.cjs.map +1 -1
- package/dist/babel-plugin-transform-features.cjs +2 -2
- package/dist/babel-plugin-transform-features.cjs.map +1 -1
- package/dist/babel-plugin-transform-logging.cjs +2 -2
- package/dist/babel-plugin-transform-logging.cjs.map +1 -1
- package/dist/canary-features-DF5hbs2w.js +170 -0
- package/dist/canary-features-DF5hbs2w.js.map +1 -0
- package/dist/canary-features.js +1 -1
- package/dist/cjs-set-config.cjs +174 -602
- package/dist/cjs-set-config.cjs.map +1 -1
- package/dist/{debugging-BtpYr1v0.js → debugging-VdsvkNjX.js} +80 -62
- package/dist/debugging-VdsvkNjX.js.map +1 -0
- package/dist/debugging.js +1 -1
- package/dist/deprecations-BVxAmwe9.js +549 -0
- package/dist/deprecations-BVxAmwe9.js.map +1 -0
- package/dist/deprecations.js +1 -1
- package/dist/env.js +124 -0
- package/dist/env.js.map +1 -1
- package/dist/index.js +12 -515
- package/dist/index.js.map +1 -1
- package/dist/macros.js +18 -0
- package/dist/macros.js.map +1 -1
- package/package.json +2 -5
- package/unstable-preview-types/babel-macros.d.ts +10 -0
- package/unstable-preview-types/babel-macros.d.ts.map +1 -1
- package/unstable-preview-types/canary-features.d.ts +97 -40
- package/unstable-preview-types/canary-features.d.ts.map +1 -1
- package/unstable-preview-types/debugging.d.ts +59 -48
- package/unstable-preview-types/debugging.d.ts.map +1 -1
- package/unstable-preview-types/deprecation-versions.d.ts +0 -469
- package/unstable-preview-types/deprecation-versions.d.ts.map +1 -1
- package/unstable-preview-types/deprecations.d.ts +504 -1
- package/unstable-preview-types/deprecations.d.ts.map +1 -1
- package/unstable-preview-types/env.d.ts +123 -0
- package/unstable-preview-types/env.d.ts.map +1 -1
- package/unstable-preview-types/index.d.ts +77 -13
- package/unstable-preview-types/index.d.ts.map +1 -1
- package/unstable-preview-types/macros.d.ts +16 -0
- package/unstable-preview-types/macros.d.ts.map +1 -1
- package/dist/canary-features-D1wplYmb.js +0 -113
- package/dist/canary-features-D1wplYmb.js.map +0 -1
- package/dist/debugging-BtpYr1v0.js.map +0 -1
- package/dist/deprecations-D_dBAPC9.js +0 -34
- package/dist/deprecations-D_dBAPC9.js.map +0 -1
package/dist/env.js
CHANGED
|
@@ -1,8 +1,132 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Internal constants for instrumenting the library's code for different environments.
|
|
3
|
+
*
|
|
4
|
+
* @hidden
|
|
5
|
+
* @module
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* a `boolean` indicating whether the code is running in a **development environment**
|
|
10
|
+
* which is converted into a [macroCondition](https://www.npmjs.com/package/@embroider/macros#the-macros) during the package's build process.
|
|
11
|
+
*
|
|
12
|
+
* code within a branch where `DEBUG === true` will be removed from **production** builds
|
|
13
|
+
* while code within a branch where `DEBUG === false` will be removed from **development** builds
|
|
14
|
+
*
|
|
15
|
+
* ```ts
|
|
16
|
+
* if (DEBUG) {
|
|
17
|
+
* // debug code
|
|
18
|
+
* } else {
|
|
19
|
+
* // production code
|
|
20
|
+
* }
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* This constant may be used in ternary expressions but should not be
|
|
24
|
+
* otherwised used as a value.
|
|
25
|
+
*
|
|
26
|
+
* Negating the value is supported.
|
|
27
|
+
*
|
|
28
|
+
* ```ts
|
|
29
|
+
* if (!DEBUG) {
|
|
30
|
+
* // production code
|
|
31
|
+
* } else {
|
|
32
|
+
* // debug code
|
|
33
|
+
* }
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
1
38
|
const DEBUG = true;
|
|
39
|
+
/**
|
|
40
|
+
* a `boolean` indicating whether the code is running in a **production environment**
|
|
41
|
+
* which is converted into a [macroCondition](https://www.npmjs.com/package/@embroider/macros#the-macros) during the package's build process.
|
|
42
|
+
*
|
|
43
|
+
* code within a branch where `PRODUCTION === true` will be removed from **development** builds
|
|
44
|
+
* while code within a branch where `PRODUCTION === false` will be removed from **production** builds
|
|
45
|
+
*
|
|
46
|
+
* ```ts
|
|
47
|
+
* if (PRODUCTION) {
|
|
48
|
+
* // production code
|
|
49
|
+
* } else {
|
|
50
|
+
* // debug code
|
|
51
|
+
* }
|
|
52
|
+
* ```
|
|
53
|
+
*
|
|
54
|
+
* This constant may be used in ternary expressions but should not be
|
|
55
|
+
* otherwised used as a value.
|
|
56
|
+
*
|
|
57
|
+
* Negating the value is supported.
|
|
58
|
+
*
|
|
59
|
+
* ```ts
|
|
60
|
+
* if (!PRODUCTION) {
|
|
61
|
+
* // debug code
|
|
62
|
+
* } else {
|
|
63
|
+
* // production code
|
|
64
|
+
* }
|
|
65
|
+
* ```
|
|
66
|
+
*
|
|
67
|
+
* @internal
|
|
68
|
+
*/
|
|
2
69
|
const PRODUCTION = true;
|
|
70
|
+
/**
|
|
71
|
+
* a `boolean` indicating whether the code is running in a **testing environment**
|
|
72
|
+
* which is converted into a [macroCondition](https://www.npmjs.com/package/@embroider/macros#the-macros) during the package's build process.
|
|
73
|
+
*
|
|
74
|
+
* TESTING can be true for both development and production builds, it is always true
|
|
75
|
+
* in a development build, and also true when any of the following ENV variables are set:
|
|
76
|
+
*
|
|
77
|
+
* - `EMBER_ENV === 'test'`
|
|
78
|
+
* - `IS_TESTING`
|
|
79
|
+
* - `EMBER_CLI_TEST_COMMAND`
|
|
80
|
+
*
|
|
81
|
+
* ```ts
|
|
82
|
+
* if (TESTING) {
|
|
83
|
+
* // test env code
|
|
84
|
+
* } else {
|
|
85
|
+
* // non-test env code
|
|
86
|
+
* }
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* Like DEBUG and PRODUCTION, this constant is converted into a macro during the package's
|
|
90
|
+
* build process, and code within the `false` branch will be removed from the build output.
|
|
91
|
+
*
|
|
92
|
+
* This constant may be used in ternary expressions but should not be
|
|
93
|
+
* otherwised used as a value.
|
|
94
|
+
*
|
|
95
|
+
* Negating the value is supported.
|
|
96
|
+
*
|
|
97
|
+
* ```ts
|
|
98
|
+
* if (!TESTING) {
|
|
99
|
+
* // production code
|
|
100
|
+
* } else {
|
|
101
|
+
* // testing code
|
|
102
|
+
* }
|
|
103
|
+
* ```
|
|
104
|
+
*
|
|
105
|
+
* @internal
|
|
106
|
+
*/
|
|
3
107
|
const TESTING = true;
|
|
108
|
+
/**
|
|
109
|
+
* Indicates whether Holodeck is in a forced global recording mode.
|
|
110
|
+
*
|
|
111
|
+
* @internal
|
|
112
|
+
*/
|
|
4
113
|
const IS_RECORDING = true;
|
|
114
|
+
/**
|
|
115
|
+
* Indicates whether the code is running in a CI environment.
|
|
116
|
+
*
|
|
117
|
+
* This is determined by the presence of the `CI` environment variable.
|
|
118
|
+
*
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
5
121
|
const IS_CI = true;
|
|
122
|
+
/**
|
|
123
|
+
* Indicates whether holodeck should record the current test run.
|
|
124
|
+
*
|
|
125
|
+
* This is always true in a non-CI environment, and is true if
|
|
126
|
+
* `IS_RECORDING` is true.
|
|
127
|
+
*
|
|
128
|
+
* @internal
|
|
129
|
+
*/
|
|
6
130
|
const SHOULD_RECORD = true;
|
|
7
131
|
|
|
8
132
|
export { DEBUG, IS_CI, IS_RECORDING, PRODUCTION, SHOULD_RECORD, TESTING };
|
package/dist/env.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"env.js","sources":["../src/env.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"env.js","sources":["../src/env.ts"],"sourcesContent":["/**\n * Internal constants for instrumenting the library's code for different environments.\n *\n * @hidden\n * @module\n */\n\n/**\n * a `boolean` indicating whether the code is running in a **development environment**\n * which is converted into a [macroCondition](https://www.npmjs.com/package/@embroider/macros#the-macros) during the package's build process.\n *\n * code within a branch where `DEBUG === true` will be removed from **production** builds\n * while code within a branch where `DEBUG === false` will be removed from **development** builds\n *\n * ```ts\n * if (DEBUG) {\n * // debug code\n * } else {\n * // production code\n * }\n * ```\n *\n * This constant may be used in ternary expressions but should not be\n * otherwised used as a value.\n *\n * Negating the value is supported.\n *\n * ```ts\n * if (!DEBUG) {\n * // production code\n * } else {\n * // debug code\n * }\n * ```\n *\n * @internal\n */\nexport const DEBUG: boolean = true;\n/**\n * a `boolean` indicating whether the code is running in a **production environment**\n * which is converted into a [macroCondition](https://www.npmjs.com/package/@embroider/macros#the-macros) during the package's build process.\n *\n * code within a branch where `PRODUCTION === true` will be removed from **development** builds\n * while code within a branch where `PRODUCTION === false` will be removed from **production** builds\n *\n * ```ts\n * if (PRODUCTION) {\n * // production code\n * } else {\n * // debug code\n * }\n * ```\n *\n * This constant may be used in ternary expressions but should not be\n * otherwised used as a value.\n *\n * Negating the value is supported.\n *\n * ```ts\n * if (!PRODUCTION) {\n * // debug code\n * } else {\n * // production code\n * }\n * ```\n *\n * @internal\n */\nexport const PRODUCTION: boolean = true;\n/**\n * a `boolean` indicating whether the code is running in a **testing environment**\n * which is converted into a [macroCondition](https://www.npmjs.com/package/@embroider/macros#the-macros) during the package's build process.\n *\n * TESTING can be true for both development and production builds, it is always true\n * in a development build, and also true when any of the following ENV variables are set:\n *\n * - `EMBER_ENV === 'test'`\n * - `IS_TESTING`\n * - `EMBER_CLI_TEST_COMMAND`\n *\n * ```ts\n * if (TESTING) {\n * // test env code\n * } else {\n * // non-test env code\n * }\n * ```\n *\n * Like DEBUG and PRODUCTION, this constant is converted into a macro during the package's\n * build process, and code within the `false` branch will be removed from the build output.\n *\n * This constant may be used in ternary expressions but should not be\n * otherwised used as a value.\n *\n * Negating the value is supported.\n *\n * ```ts\n * if (!TESTING) {\n * // production code\n * } else {\n * // testing code\n * }\n * ```\n *\n * @internal\n */\nexport const TESTING: boolean = true;\n/**\n * Indicates whether Holodeck is in a forced global recording mode.\n *\n * @internal\n */\nexport const IS_RECORDING: boolean = true;\n/**\n * Indicates whether the code is running in a CI environment.\n *\n * This is determined by the presence of the `CI` environment variable.\n *\n * @internal\n */\nexport const IS_CI: boolean = true;\n/**\n * Indicates whether holodeck should record the current test run.\n *\n * This is always true in a non-CI environment, and is true if\n * `IS_RECORDING` is true.\n *\n * @internal\n */\nexport const SHOULD_RECORD: boolean = true;\n"],"names":["DEBUG","PRODUCTION","TESTING","IS_RECORDING","IS_CI","SHOULD_RECORD"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,KAAc,GAAG;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,UAAmB,GAAG;AACnC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,OAAgB,GAAG;AAChC;AACA;AACA;AACA;AACA;AACO,MAAMC,YAAqB,GAAG;AACrC;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,KAAc,GAAG;AAC9B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMC,aAAsB,GAAG;;;;"}
|