@powerlines/plugin-babel 0.12.211 → 0.12.213

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/index.cjs CHANGED
@@ -37,7 +37,7 @@ const plugin = (options = {}) => {
37
37
  }
38
38
  },
39
39
  async transform(code, id) {
40
- if ((0, __stryke_path_is_parent_path.isParentPath)(id, this.powerlinesPath) || code.includes("/* @storm-ignore */") || code.includes("/* @storm-disable */")) {
40
+ if ((0, __stryke_path_is_parent_path.isParentPath)(id, this.powerlinesPath) || code.includes("/* @powerlines-ignore */") || code.includes("/* @powerlines-disable */")) {
41
41
  this.trace(`Skipping Babel transformation for: ${id}`);
42
42
  return {
43
43
  code,
@@ -56,7 +56,7 @@ const plugin = (options = {}) => {
56
56
  "cts",
57
57
  "mts",
58
58
  "tsx"
59
- ].includes((0, __stryke_path_file_path_fns.findFileExtensionSafe)(id)) && !require_helpers_filters.isDuplicatePlugin(plugins, "@babel/plugin-syntax-typescript") && !require_helpers_filters.isDuplicatePlugin(presets, "@babel/preset-typescript")) plugins.unshift(["@babel/plugin-syntax-typescript", { isTSX: (0, __stryke_path_file_path_fns.findFileExtension)(id) === ".tsx" }]);
59
+ ].includes((0, __stryke_path_file_path_fns.findFileExtensionSafe)(id, { fullExtension: true })) && !require_helpers_filters.isDuplicatePlugin(plugins, "@babel/plugin-syntax-typescript") && !require_helpers_filters.isDuplicatePlugin(presets, "@babel/preset-typescript")) plugins.unshift(["@babel/plugin-syntax-typescript", { isTSX: (0, __stryke_path_file_path_fns.findFileExtension)(id) === "tsx" }]);
60
60
  const result = await (0, __babel_core.transformAsync)(code, {
61
61
  highlightCode: true,
62
62
  code: true,
package/dist/index.mjs CHANGED
@@ -34,7 +34,7 @@ const plugin = (options = {}) => {
34
34
  }
35
35
  },
36
36
  async transform(code, id) {
37
- if (isParentPath(id, this.powerlinesPath) || code.includes("/* @storm-ignore */") || code.includes("/* @storm-disable */")) {
37
+ if (isParentPath(id, this.powerlinesPath) || code.includes("/* @powerlines-ignore */") || code.includes("/* @powerlines-disable */")) {
38
38
  this.trace(`Skipping Babel transformation for: ${id}`);
39
39
  return {
40
40
  code,
@@ -53,7 +53,7 @@ const plugin = (options = {}) => {
53
53
  "cts",
54
54
  "mts",
55
55
  "tsx"
56
- ].includes(findFileExtensionSafe(id)) && !isDuplicatePlugin(plugins, "@babel/plugin-syntax-typescript") && !isDuplicatePlugin(presets, "@babel/preset-typescript")) plugins.unshift(["@babel/plugin-syntax-typescript", { isTSX: findFileExtension(id) === ".tsx" }]);
56
+ ].includes(findFileExtensionSafe(id, { fullExtension: true })) && !isDuplicatePlugin(plugins, "@babel/plugin-syntax-typescript") && !isDuplicatePlugin(presets, "@babel/preset-typescript")) plugins.unshift(["@babel/plugin-syntax-typescript", { isTSX: findFileExtension(id) === "tsx" }]);
57
57
  const result = await transformAsync(code, {
58
58
  highlightCode: true,
59
59
  code: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-babel",
3
- "version": "0.12.211",
3
+ "version": "0.12.213",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -163,12 +163,12 @@
163
163
  "chalk": "5.6.2",
164
164
  "defu": "^6.1.4",
165
165
  "jiti": "^2.6.1",
166
- "powerlines": "^0.37.75"
166
+ "powerlines": "^0.37.77"
167
167
  },
168
168
  "devDependencies": {
169
- "@powerlines/plugin-plugin": "^0.12.153",
169
+ "@powerlines/plugin-plugin": "^0.12.155",
170
170
  "@types/node": "^24.10.9"
171
171
  },
172
172
  "publishConfig": { "access": "public" },
173
- "gitHead": "497dd2df3434490b336f074510cb6fa8aa919588"
173
+ "gitHead": "77a3e8d37f6eff165c11192daf8da35ff294ff5f"
174
174
  }