@powerlines/plugin-babel 0.2.0 → 0.4.0

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
@@ -33,10 +33,7 @@ const plugin = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((options$1 = {}) => {
33
33
  configResolved: {
34
34
  order: "pre",
35
35
  handler() {
36
- this.dependencies["@babel/core"] = {
37
- type: "devDependency",
38
- version: "^7.28.4"
39
- };
36
+ this.devDependencies["@babel/core"] = "^7.28.4";
40
37
  this.config.transform.babel = defu__default.default(this.config.transform.babel ?? {}, {
41
38
  plugins: [],
42
39
  presets: []
@@ -44,7 +41,7 @@ const plugin = /* @__PURE__ */ chunkUSNT2KNT_cjs.__name((options$1 = {}) => {
44
41
  }
45
42
  },
46
43
  async transform(code, id) {
47
- if (process.env.POWERLINES_LOCAL && isParentPath.isParentPath(id, this.corePackagePath) || code.includes("/* @storm-ignore */") || code.includes("/* @storm-disable */")) {
44
+ if (isParentPath.isParentPath(id, this.powerlinesPath) || code.includes("/* @storm-ignore */") || code.includes("/* @storm-disable */")) {
48
45
  this.log(types$1.LogLevelLabel.TRACE, `Skipping Babel transformation for: ${id}`);
49
46
  return {
50
47
  code,
package/dist/index.js CHANGED
@@ -25,10 +25,7 @@ const plugin = /* @__PURE__ */ __name((options = {}) => {
25
25
  configResolved: {
26
26
  order: "pre",
27
27
  handler() {
28
- this.dependencies["@babel/core"] = {
29
- type: "devDependency",
30
- version: "^7.28.4"
31
- };
28
+ this.devDependencies["@babel/core"] = "^7.28.4";
32
29
  this.config.transform.babel = defu(this.config.transform.babel ?? {}, {
33
30
  plugins: [],
34
31
  presets: []
@@ -36,7 +33,7 @@ const plugin = /* @__PURE__ */ __name((options = {}) => {
36
33
  }
37
34
  },
38
35
  async transform(code, id) {
39
- if (process.env.POWERLINES_LOCAL && isParentPath(id, this.corePackagePath) || code.includes("/* @storm-ignore */") || code.includes("/* @storm-disable */")) {
36
+ if (isParentPath(id, this.powerlinesPath) || code.includes("/* @storm-ignore */") || code.includes("/* @storm-disable */")) {
40
37
  this.log(LogLevelLabel.TRACE, `Skipping Babel transformation for: ${id}`);
41
38
  return {
42
39
  code,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-babel",
3
- "version": "0.2.0",
3
+ "version": "0.4.0",
4
4
  "type": "module",
5
5
  "description": "A package containing a Powerlines plugin to assist in developing other Powerlines plugins.",
6
6
  "repository": {
@@ -140,10 +140,10 @@
140
140
  "chalk": "^5.6.2",
141
141
  "defu": "^6.1.4",
142
142
  "jiti": "^2.6.1",
143
- "powerlines": "^0.2.0",
143
+ "powerlines": "^0.4.0",
144
144
  "unplugin": "^2.3.10"
145
145
  },
146
- "devDependencies": { "@powerlines/nx": "^0.2.0", "@types/node": "^22.18.11" },
146
+ "devDependencies": { "@powerlines/nx": "^0.4.0", "@types/node": "^22.18.11" },
147
147
  "publishConfig": { "access": "public" },
148
- "gitHead": "319be4880b93666a6dafe38d60278a8cad920f0b"
148
+ "gitHead": "f4d0c8a8f0036ac8de46ac96afd9336a390a7268"
149
149
  }