tsfmt 0.2.0 → 0.2.2

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/cli.js CHANGED
@@ -1,3 +1,4 @@
1
+ #!/usr/bin/env node
1
2
  "use strict";
2
3
  const fs = require("fs");
3
4
  const glob = require("glob");
@@ -138,6 +138,16 @@ class FormatterPipeline {
138
138
  dryRun
139
139
  };
140
140
  }
141
+ if (this.config.skipReactFiles && /\.(tsx|jsx)$/.test(filePath)) {
142
+ return {
143
+ filePath,
144
+ originalSource,
145
+ currentSource: originalSource,
146
+ executions: [],
147
+ changed: false,
148
+ dryRun
149
+ };
150
+ }
141
151
  const context = {
142
152
  filePath,
143
153
  originalSource,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tsfmt",
3
3
  "author": "Encore Digital Group",
4
- "version": "0.2.0",
4
+ "version": "0.2.2",
5
5
  "description": "An opinionated TypeScript code formatter",
6
6
  "publishConfig": {
7
7
  "access": "public",