Repository: ember-codemods/ember-angle-brackets-codemod (js)

Issue:
Support whitespace control (`~`)
The following input:

```hbs
<div>
  {{~both~}}
</div>
<div>
  {{~left}}
</div>
<div>
  {{right~}}
</div>
```

results in the incorrect output:

```hbs
<div>
  {{both}}
</div>
<div>
  {{left}}
</div>
<div>
  {{right}}
</div>
```

we should leave `~`s in place

Pull request description:
Add support for templates containing `~` (whitespace control)
Enabled by https://github.com/glimmerjs/glimmer-vm/pull/983

Resolves #46

/cc @GavinJoyce 

Patch:
diff --git a/transforms/angle-brackets/transform.js b/transforms/angle-brackets/transform.js
index 6a0d815..158e74a 100755
--- a/transforms/angle-brackets/transform.js
+++ b/transforms/angle-brackets/transform.js
@@ -90,14 +90,6 @@ function transformNestedSubExpression(subExpression) {
 function shouldSkipFile(fileInfo, config) {
   let source = fileInfo.source;
 
-  if (source.includes('~')) {
-    //skip files with `~` until https://github.com/ember-codemods/ember-angle-brackets-codemod/issues/46 is resolved
-    logger.warn(
-      `WARNING: ${fileInfo.path} was not converted as it contains a "~" (https://github.com/ember-codemods/ember-angle-brackets-codemod/issues/46)`
-    );
-    return true;
-  }
-
   if (config.skipFilesThatMatchRegex && config.skipFilesThatMatchRegex.test(source)) {
     logger.warn(
       `WARNING: ${fileInfo.path} was not skipped as its content matches the "skipFilesThatMatchRegex" config setting: ${config.skipFilesThatMatchRegex}`


Test patch:
diff --git a/transforms/angle-brackets/test.js b/transforms/angle-brackets/test.js
index aa5c755..48b6f8c 100644
--- a/transforms/angle-brackets/test.js
+++ b/transforms/angle-brackets/test.js
@@ -725,7 +725,7 @@ test('tilde', () => {
   expect(runTest('tilde.hbs', input)).toMatchInlineSnapshot(`
     "
         {{#if foo~}}
-          {{some-component}}
+          <SomeComponent />
         {{/if}}
       "
   `);