@cedarjs/babel-config 2.2.0 → 2.2.1-next.21
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/common.js
CHANGED
|
@@ -37,7 +37,7 @@ __export(common_exports, {
|
|
|
37
37
|
registerBabel: () => registerBabel
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(common_exports);
|
|
40
|
-
var
|
|
40
|
+
var import_node_fs = __toESM(require("node:fs"));
|
|
41
41
|
var import_path = __toESM(require("path"));
|
|
42
42
|
var import_typescript = require("typescript");
|
|
43
43
|
var import_project_config = require("@cedarjs/project-config");
|
|
@@ -90,15 +90,15 @@ const parseTypeScriptConfigFiles = () => {
|
|
|
90
90
|
const rwPaths = (0, import_project_config.getPaths)();
|
|
91
91
|
const parseConfigFile = (basePath) => {
|
|
92
92
|
let configPath = import_path.default.join(basePath, "tsconfig.json");
|
|
93
|
-
if (!
|
|
93
|
+
if (!import_node_fs.default.existsSync(configPath)) {
|
|
94
94
|
configPath = import_path.default.join(basePath, "jsconfig.json");
|
|
95
|
-
if (!
|
|
95
|
+
if (!import_node_fs.default.existsSync(configPath)) {
|
|
96
96
|
return null;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
99
99
|
return (0, import_typescript.parseConfigFileTextToJson)(
|
|
100
100
|
configPath,
|
|
101
|
-
|
|
101
|
+
import_node_fs.default.readFileSync(configPath, "utf-8")
|
|
102
102
|
);
|
|
103
103
|
};
|
|
104
104
|
const apiConfig = parseConfigFile(rwPaths.api.base);
|
|
@@ -32,7 +32,7 @@ __export(babel_plugin_redwood_mock_cell_data_exports, {
|
|
|
32
32
|
getCellMetadata: () => getCellMetadata
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(babel_plugin_redwood_mock_cell_data_exports);
|
|
35
|
-
var
|
|
35
|
+
var import_node_fs = __toESM(require("node:fs"));
|
|
36
36
|
var import_path = __toESM(require("path"));
|
|
37
37
|
var import_parser = require("@babel/parser");
|
|
38
38
|
var import_traverse = __toESM(require("@babel/traverse"));
|
|
@@ -225,7 +225,7 @@ const getCellMetadata = (p) => {
|
|
|
225
225
|
};
|
|
226
226
|
};
|
|
227
227
|
function getCellAst(filePath) {
|
|
228
|
-
const code =
|
|
228
|
+
const code = import_node_fs.default.readFileSync(filePath, "utf-8");
|
|
229
229
|
const plugins = ["typescript", "jsx"].filter(Boolean);
|
|
230
230
|
try {
|
|
231
231
|
return (0, import_parser.parse)(code, {
|
package/dist/web.js
CHANGED
|
@@ -36,7 +36,7 @@ __export(web_exports, {
|
|
|
36
36
|
registerWebSideBabelHook: () => registerWebSideBabelHook
|
|
37
37
|
});
|
|
38
38
|
module.exports = __toCommonJS(web_exports);
|
|
39
|
-
var
|
|
39
|
+
var import_node_fs = __toESM(require("node:fs"));
|
|
40
40
|
var import_path = __toESM(require("path"));
|
|
41
41
|
var import_babel_plugin_module_resolver = require("babel-plugin-module-resolver");
|
|
42
42
|
var import_project_config = require("@cedarjs/project-config");
|
|
@@ -197,7 +197,7 @@ const getWebSideBabelPresets = (options) => {
|
|
|
197
197
|
};
|
|
198
198
|
const getWebSideBabelConfigPath = () => {
|
|
199
199
|
const customBabelConfig = import_path.default.join((0, import_project_config.getPaths)().web.base, "babel.config.js");
|
|
200
|
-
if (
|
|
200
|
+
if (import_node_fs.default.existsSync(customBabelConfig)) {
|
|
201
201
|
return customBabelConfig;
|
|
202
202
|
} else {
|
|
203
203
|
return void 0;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/babel-config",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1-next.21+014660ad1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"@babel/register": "7.28.3",
|
|
36
36
|
"@babel/runtime-corejs3": "7.28.4",
|
|
37
37
|
"@babel/traverse": "7.28.5",
|
|
38
|
-
"@cedarjs/project-config": "2.2.
|
|
38
|
+
"@cedarjs/project-config": "2.2.1-next.21+014660ad1",
|
|
39
39
|
"babel-plugin-auto-import": "1.1.0",
|
|
40
40
|
"babel-plugin-graphql-tag": "3.3.0",
|
|
41
41
|
"babel-plugin-module-resolver": "5.0.2",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"typescript": "5.9.3"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@cedarjs/framework-tools": "2.2.
|
|
48
|
+
"@cedarjs/framework-tools": "2.2.1-next.21",
|
|
49
49
|
"@types/babel-plugin-tester": "9.0.10",
|
|
50
50
|
"@types/babel__core": "7.20.5",
|
|
51
51
|
"@types/babel__register": "7.17.3",
|
|
@@ -57,5 +57,5 @@
|
|
|
57
57
|
"publishConfig": {
|
|
58
58
|
"access": "public"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "014660ad1d93c58cd848e67a370bf4856cd64a11"
|
|
61
61
|
}
|