ember-codemod-pod-to-octane 1.1.2 → 1.1.3

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.
Files changed (35) hide show
  1. package/package.json +5 -5
  2. package/src/migration/ember-addon/addon/component-classes.js +7 -31
  3. package/src/migration/ember-addon/addon/component-stylesheets.js +7 -19
  4. package/src/migration/ember-addon/addon/component-templates.js +7 -7
  5. package/src/migration/ember-addon/app/component-classes.js +7 -7
  6. package/src/migration/ember-addon/app/component-stylesheets.js +7 -7
  7. package/src/migration/ember-addon/app/component-templates.js +7 -7
  8. package/src/migration/ember-addon/tests/components.js +7 -19
  9. package/src/migration/ember-app/app/component-classes.js +7 -31
  10. package/src/migration/ember-app/app/component-stylesheets.js +7 -19
  11. package/src/migration/ember-app/app/component-templates.js +7 -7
  12. package/src/migration/ember-app/app/route-adapters.js +7 -19
  13. package/src/migration/ember-app/app/route-controllers.js +7 -19
  14. package/src/migration/ember-app/app/route-models.js +7 -19
  15. package/src/migration/ember-app/app/route-routes.js +7 -19
  16. package/src/migration/ember-app/app/route-serializers.js +7 -19
  17. package/src/migration/ember-app/app/route-stylesheets.js +7 -19
  18. package/src/migration/ember-app/app/route-templates.js +7 -7
  19. package/src/migration/ember-app/app/services.js +7 -19
  20. package/src/migration/ember-app/tests/components.js +7 -19
  21. package/src/migration/ember-app/tests/route-controllers.js +13 -35
  22. package/src/migration/ember-app/tests/route-routes.js +13 -35
  23. package/src/migration/ember-app/tests/services.js +7 -19
  24. package/src/migration/ember-engine/addon/component-classes.js +7 -31
  25. package/src/migration/ember-engine/addon/component-stylesheets.js +7 -19
  26. package/src/migration/ember-engine/addon/component-templates.js +7 -7
  27. package/src/migration/ember-engine/addon/route-controllers.js +7 -19
  28. package/src/migration/ember-engine/addon/route-routes.js +7 -19
  29. package/src/migration/ember-engine/addon/route-stylesheets.js +7 -19
  30. package/src/migration/ember-engine/addon/route-templates.js +7 -7
  31. package/src/migration/ember-engine/tests/components.js +7 -19
  32. package/src/migration/ember-engine/tests/route-controllers.js +13 -35
  33. package/src/migration/ember-engine/tests/route-routes.js +13 -35
  34. package/src/utils/files/map-file-path.js +0 -17
  35. package/src/utils/files.js +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-codemod-pod-to-octane",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "Codemod to un-pod Ember apps, addons, and engines",
5
5
  "keywords": [
6
6
  "codemod",
@@ -25,15 +25,15 @@
25
25
  "src/"
26
26
  ],
27
27
  "dependencies": {
28
- "@codemod-utils/files": "^0.1.0",
28
+ "@codemod-utils/files": "^0.2.0",
29
29
  "yargs": "^17.7.2"
30
30
  },
31
31
  "devDependencies": {
32
- "@babel/core": "^7.21.8",
32
+ "@babel/core": "^7.22.1",
33
33
  "@babel/eslint-parser": "^7.21.8",
34
- "@codemod-utils/tests": "^0.1.0",
34
+ "@codemod-utils/tests": "^0.1.1",
35
35
  "@sondr3/minitest": "^0.1.1",
36
- "eslint": "^8.40.0",
36
+ "eslint": "^8.42.0",
37
37
  "eslint-config-prettier": "^8.8.0",
38
38
  "eslint-plugin-import": "^2.27.5",
39
39
  "eslint-plugin-n": "^16.0.0",
@@ -1,6 +1,4 @@
1
- import { findFiles } from '@codemod-utils/files';
2
-
3
- import { mapFilePath } from '../../../utils/files.js';
1
+ import { findFiles, renameFile } from '@codemod-utils/files';
4
2
 
5
3
  export function migrationStrategyForComponentClasses(options) {
6
4
  const { projectRoot } = options;
@@ -10,38 +8,16 @@ export function migrationStrategyForComponentClasses(options) {
10
8
  });
11
9
 
12
10
  return oldPaths.map((oldPath) => {
13
- if (oldPath.endsWith('.d.ts')) {
14
- return mapFilePath(oldPath, {
15
- find: {
16
- directory: 'addon/components',
17
- file: 'component.d.ts',
18
- },
19
- replace(key) {
20
- return `addon/components/${key}.d.ts`;
21
- },
22
- });
23
- }
24
-
25
- if (oldPath.endsWith('.ts')) {
26
- return mapFilePath(oldPath, {
27
- find: {
28
- directory: 'addon/components',
29
- file: 'component.ts',
30
- },
31
- replace(key) {
32
- return `addon/components/${key}.ts`;
33
- },
34
- });
35
- }
36
-
37
- return mapFilePath(oldPath, {
11
+ const newPath = renameFile(oldPath, {
38
12
  find: {
39
13
  directory: 'addon/components',
40
- file: 'component.js',
14
+ file: 'component',
41
15
  },
42
- replace(key) {
43
- return `addon/components/${key}.js`;
16
+ replace: (key) => {
17
+ return `addon/components/${key}`;
44
18
  },
45
19
  });
20
+
21
+ return [oldPath, newPath];
46
22
  });
47
23
  }
@@ -1,6 +1,4 @@
1
- import { findFiles } from '@codemod-utils/files';
2
-
3
- import { mapFilePath } from '../../../utils/files.js';
1
+ import { findFiles, renameFile } from '@codemod-utils/files';
4
2
 
5
3
  export function migrationStrategyForComponentStylesheets(options) {
6
4
  const { projectRoot } = options;
@@ -10,26 +8,16 @@ export function migrationStrategyForComponentStylesheets(options) {
10
8
  });
11
9
 
12
10
  return oldPaths.map((oldPath) => {
13
- if (oldPath.endsWith('.scss')) {
14
- return mapFilePath(oldPath, {
15
- find: {
16
- directory: 'addon/components',
17
- file: 'styles.scss',
18
- },
19
- replace(key) {
20
- return `addon/components/${key}.scss`;
21
- },
22
- });
23
- }
24
-
25
- return mapFilePath(oldPath, {
11
+ const newPath = renameFile(oldPath, {
26
12
  find: {
27
13
  directory: 'addon/components',
28
- file: 'styles.css',
14
+ file: 'styles',
29
15
  },
30
- replace(key) {
31
- return `addon/components/${key}.css`;
16
+ replace: (key) => {
17
+ return `addon/components/${key}`;
32
18
  },
33
19
  });
20
+
21
+ return [oldPath, newPath];
34
22
  });
35
23
  }
@@ -1,6 +1,4 @@
1
- import { findFiles } from '@codemod-utils/files';
2
-
3
- import { mapFilePath } from '../../../utils/files.js';
1
+ import { findFiles, renameFile } from '@codemod-utils/files';
4
2
 
5
3
  export function migrationStrategyForComponentTemplates(options) {
6
4
  const { projectRoot } = options;
@@ -10,14 +8,16 @@ export function migrationStrategyForComponentTemplates(options) {
10
8
  });
11
9
 
12
10
  return oldPaths.map((oldPath) => {
13
- return mapFilePath(oldPath, {
11
+ const newPath = renameFile(oldPath, {
14
12
  find: {
15
13
  directory: 'addon/components',
16
- file: 'template.hbs',
14
+ file: 'template',
17
15
  },
18
- replace(key) {
19
- return `addon/components/${key}.hbs`;
16
+ replace: (key) => {
17
+ return `addon/components/${key}`;
20
18
  },
21
19
  });
20
+
21
+ return [oldPath, newPath];
22
22
  });
23
23
  }
@@ -1,6 +1,4 @@
1
- import { findFiles } from '@codemod-utils/files';
2
-
3
- import { mapFilePath } from '../../../utils/files.js';
1
+ import { findFiles, renameFile } from '@codemod-utils/files';
4
2
 
5
3
  export function migrationStrategyForComponentClasses(options) {
6
4
  const { projectRoot } = options;
@@ -10,14 +8,16 @@ export function migrationStrategyForComponentClasses(options) {
10
8
  });
11
9
 
12
10
  return oldPaths.map((oldPath) => {
13
- return mapFilePath(oldPath, {
11
+ const newPath = renameFile(oldPath, {
14
12
  find: {
15
13
  directory: 'app/components',
16
- file: 'component.js',
14
+ file: 'component',
17
15
  },
18
- replace(key) {
19
- return `app/components/${key}.js`;
16
+ replace: (key) => {
17
+ return `app/components/${key}`;
20
18
  },
21
19
  });
20
+
21
+ return [oldPath, newPath];
22
22
  });
23
23
  }
@@ -1,6 +1,4 @@
1
- import { findFiles } from '@codemod-utils/files';
2
-
3
- import { mapFilePath } from '../../../utils/files.js';
1
+ import { findFiles, renameFile } from '@codemod-utils/files';
4
2
 
5
3
  export function migrationStrategyForComponentStylesheets(options) {
6
4
  const { projectRoot } = options;
@@ -10,14 +8,16 @@ export function migrationStrategyForComponentStylesheets(options) {
10
8
  });
11
9
 
12
10
  return oldPaths.map((oldPath) => {
13
- return mapFilePath(oldPath, {
11
+ const newPath = renameFile(oldPath, {
14
12
  find: {
15
13
  directory: 'app/components',
16
- file: 'styles.js',
14
+ file: 'styles',
17
15
  },
18
- replace(key) {
19
- return `app/components/${key}.js`;
16
+ replace: (key) => {
17
+ return `app/components/${key}`;
20
18
  },
21
19
  });
20
+
21
+ return [oldPath, newPath];
22
22
  });
23
23
  }
@@ -1,6 +1,4 @@
1
- import { findFiles } from '@codemod-utils/files';
2
-
3
- import { mapFilePath } from '../../../utils/files.js';
1
+ import { findFiles, renameFile } from '@codemod-utils/files';
4
2
 
5
3
  export function migrationStrategyForComponentTemplates(options) {
6
4
  const { projectRoot } = options;
@@ -10,14 +8,16 @@ export function migrationStrategyForComponentTemplates(options) {
10
8
  });
11
9
 
12
10
  return oldPaths.map((oldPath) => {
13
- return mapFilePath(oldPath, {
11
+ const newPath = renameFile(oldPath, {
14
12
  find: {
15
13
  directory: 'app/components',
16
- file: 'template.js',
14
+ file: 'template',
17
15
  },
18
- replace(key) {
19
- return `app/components/${key}.js`;
16
+ replace: (key) => {
17
+ return `app/components/${key}`;
20
18
  },
21
19
  });
20
+
21
+ return [oldPath, newPath];
22
22
  });
23
23
  }
@@ -1,6 +1,4 @@
1
- import { findFiles } from '@codemod-utils/files';
2
-
3
- import { mapFilePath } from '../../../utils/files.js';
1
+ import { findFiles, renameFile } from '@codemod-utils/files';
4
2
 
5
3
  export function migrationStrategyForComponents(options) {
6
4
  const { projectRoot } = options;
@@ -13,26 +11,16 @@ export function migrationStrategyForComponents(options) {
13
11
  );
14
12
 
15
13
  return oldPaths.map((oldPath) => {
16
- if (oldPath.endsWith('.ts')) {
17
- return mapFilePath(oldPath, {
18
- find: {
19
- directory: 'tests/integration/components',
20
- file: 'component-test.ts',
21
- },
22
- replace(key) {
23
- return `tests/integration/components/${key}-test.ts`;
24
- },
25
- });
26
- }
27
-
28
- return mapFilePath(oldPath, {
14
+ const newPath = renameFile(oldPath, {
29
15
  find: {
30
16
  directory: 'tests/integration/components',
31
- file: 'component-test.js',
17
+ file: 'component-test',
32
18
  },
33
- replace(key) {
34
- return `tests/integration/components/${key}-test.js`;
19
+ replace: (key) => {
20
+ return `tests/integration/components/${key}-test`;
35
21
  },
36
22
  });
23
+
24
+ return [oldPath, newPath];
37
25
  });
38
26
  }
@@ -1,8 +1,6 @@
1
1
  import { join } from 'node:path';
2
2
 
3
- import { findFiles } from '@codemod-utils/files';
4
-
5
- import { mapFilePath } from '../../../utils/files.js';
3
+ import { findFiles, renameFile } from '@codemod-utils/files';
6
4
 
7
5
  export function migrationStrategyForComponentClasses(options) {
8
6
  const { podPath, projectRoot } = options;
@@ -15,38 +13,16 @@ export function migrationStrategyForComponentClasses(options) {
15
13
  );
16
14
 
17
15
  return oldPaths.map((oldPath) => {
18
- if (oldPath.endsWith('.d.ts')) {
19
- return mapFilePath(oldPath, {
20
- find: {
21
- directory: join('app', podPath, 'components'),
22
- file: 'component.d.ts',
23
- },
24
- replace(key) {
25
- return `app/components/${key}.d.ts`;
26
- },
27
- });
28
- }
29
-
30
- if (oldPath.endsWith('.ts')) {
31
- return mapFilePath(oldPath, {
32
- find: {
33
- directory: join('app', podPath, 'components'),
34
- file: 'component.ts',
35
- },
36
- replace(key) {
37
- return `app/components/${key}.ts`;
38
- },
39
- });
40
- }
41
-
42
- return mapFilePath(oldPath, {
16
+ const newPath = renameFile(oldPath, {
43
17
  find: {
44
18
  directory: join('app', podPath, 'components'),
45
- file: 'component.js',
19
+ file: 'component',
46
20
  },
47
- replace(key) {
48
- return `app/components/${key}.js`;
21
+ replace: (key) => {
22
+ return `app/components/${key}`;
49
23
  },
50
24
  });
25
+
26
+ return [oldPath, newPath];
51
27
  });
52
28
  }
@@ -1,8 +1,6 @@
1
1
  import { join } from 'node:path';
2
2
 
3
- import { findFiles } from '@codemod-utils/files';
4
-
5
- import { mapFilePath } from '../../../utils/files.js';
3
+ import { findFiles, renameFile } from '@codemod-utils/files';
6
4
 
7
5
  export function migrationStrategyForComponentStylesheets(options) {
8
6
  const { podPath, projectRoot } = options;
@@ -15,26 +13,16 @@ export function migrationStrategyForComponentStylesheets(options) {
15
13
  );
16
14
 
17
15
  return oldPaths.map((oldPath) => {
18
- if (oldPath.endsWith('.scss')) {
19
- return mapFilePath(oldPath, {
20
- find: {
21
- directory: join('app', podPath, 'components'),
22
- file: 'styles.scss',
23
- },
24
- replace(key) {
25
- return `app/components/${key}.scss`;
26
- },
27
- });
28
- }
29
-
30
- return mapFilePath(oldPath, {
16
+ const newPath = renameFile(oldPath, {
31
17
  find: {
32
18
  directory: join('app', podPath, 'components'),
33
- file: 'styles.css',
19
+ file: 'styles',
34
20
  },
35
- replace(key) {
36
- return `app/components/${key}.css`;
21
+ replace: (key) => {
22
+ return `app/components/${key}`;
37
23
  },
38
24
  });
25
+
26
+ return [oldPath, newPath];
39
27
  });
40
28
  }
@@ -1,8 +1,6 @@
1
1
  import { join } from 'node:path';
2
2
 
3
- import { findFiles } from '@codemod-utils/files';
4
-
5
- import { mapFilePath } from '../../../utils/files.js';
3
+ import { findFiles, renameFile } from '@codemod-utils/files';
6
4
 
7
5
  export function migrationStrategyForComponentTemplates(options) {
8
6
  const { podPath, projectRoot } = options;
@@ -15,14 +13,16 @@ export function migrationStrategyForComponentTemplates(options) {
15
13
  );
16
14
 
17
15
  return oldPaths.map((oldPath) => {
18
- return mapFilePath(oldPath, {
16
+ const newPath = renameFile(oldPath, {
19
17
  find: {
20
18
  directory: join('app', podPath, 'components'),
21
- file: 'template.hbs',
19
+ file: 'template',
22
20
  },
23
- replace(key) {
24
- return `app/components/${key}.hbs`;
21
+ replace: (key) => {
22
+ return `app/components/${key}`;
25
23
  },
26
24
  });
25
+
26
+ return [oldPath, newPath];
27
27
  });
28
28
  }
@@ -1,8 +1,6 @@
1
1
  import { join } from 'node:path';
2
2
 
3
- import { findFiles } from '@codemod-utils/files';
4
-
5
- import { mapFilePath } from '../../../utils/files.js';
3
+ import { findFiles, renameFile } from '@codemod-utils/files';
6
4
 
7
5
  export function migrationStrategyForRouteAdapters(options) {
8
6
  const { podPath, projectRoot } = options;
@@ -12,26 +10,16 @@ export function migrationStrategyForRouteAdapters(options) {
12
10
  });
13
11
 
14
12
  return oldPaths.map((oldPath) => {
15
- if (oldPath.endsWith('.ts')) {
16
- return mapFilePath(oldPath, {
17
- find: {
18
- directory: join('app', podPath),
19
- file: 'adapter.ts',
20
- },
21
- replace(key) {
22
- return `app/adapters/${key}.ts`;
23
- },
24
- });
25
- }
26
-
27
- return mapFilePath(oldPath, {
13
+ const newPath = renameFile(oldPath, {
28
14
  find: {
29
15
  directory: join('app', podPath),
30
- file: 'adapter.js',
16
+ file: 'adapter',
31
17
  },
32
- replace(key) {
33
- return `app/adapters/${key}.js`;
18
+ replace: (key) => {
19
+ return `app/adapters/${key}`;
34
20
  },
35
21
  });
22
+
23
+ return [oldPath, newPath];
36
24
  });
37
25
  }
@@ -1,8 +1,6 @@
1
1
  import { join } from 'node:path';
2
2
 
3
- import { findFiles } from '@codemod-utils/files';
4
-
5
- import { mapFilePath } from '../../../utils/files.js';
3
+ import { findFiles, renameFile } from '@codemod-utils/files';
6
4
 
7
5
  export function migrationStrategyForRouteControllers(options) {
8
6
  const { podPath, projectRoot } = options;
@@ -12,26 +10,16 @@ export function migrationStrategyForRouteControllers(options) {
12
10
  });
13
11
 
14
12
  return oldPaths.map((oldPath) => {
15
- if (oldPath.endsWith('.ts')) {
16
- return mapFilePath(oldPath, {
17
- find: {
18
- directory: join('app', podPath),
19
- file: 'controller.ts',
20
- },
21
- replace(key) {
22
- return `app/controllers/${key}.ts`;
23
- },
24
- });
25
- }
26
-
27
- return mapFilePath(oldPath, {
13
+ const newPath = renameFile(oldPath, {
28
14
  find: {
29
15
  directory: join('app', podPath),
30
- file: 'controller.js',
16
+ file: 'controller',
31
17
  },
32
- replace(key) {
33
- return `app/controllers/${key}.js`;
18
+ replace: (key) => {
19
+ return `app/controllers/${key}`;
34
20
  },
35
21
  });
22
+
23
+ return [oldPath, newPath];
36
24
  });
37
25
  }
@@ -1,8 +1,6 @@
1
1
  import { join } from 'node:path';
2
2
 
3
- import { findFiles } from '@codemod-utils/files';
4
-
5
- import { mapFilePath } from '../../../utils/files.js';
3
+ import { findFiles, renameFile } from '@codemod-utils/files';
6
4
 
7
5
  export function migrationStrategyForRouteModels(options) {
8
6
  const { podPath, projectRoot } = options;
@@ -12,26 +10,16 @@ export function migrationStrategyForRouteModels(options) {
12
10
  });
13
11
 
14
12
  return oldPaths.map((oldPath) => {
15
- if (oldPath.endsWith('.ts')) {
16
- return mapFilePath(oldPath, {
17
- find: {
18
- directory: join('app', podPath),
19
- file: 'model.ts',
20
- },
21
- replace(key) {
22
- return `app/models/${key}.ts`;
23
- },
24
- });
25
- }
26
-
27
- return mapFilePath(oldPath, {
13
+ const newPath = renameFile(oldPath, {
28
14
  find: {
29
15
  directory: join('app', podPath),
30
- file: 'model.js',
16
+ file: 'model',
31
17
  },
32
- replace(key) {
33
- return `app/models/${key}.js`;
18
+ replace: (key) => {
19
+ return `app/models/${key}`;
34
20
  },
35
21
  });
22
+
23
+ return [oldPath, newPath];
36
24
  });
37
25
  }
@@ -1,8 +1,6 @@
1
1
  import { join } from 'node:path';
2
2
 
3
- import { findFiles } from '@codemod-utils/files';
4
-
5
- import { mapFilePath } from '../../../utils/files.js';
3
+ import { findFiles, renameFile } from '@codemod-utils/files';
6
4
 
7
5
  export function migrationStrategyForRouteRoutes(options) {
8
6
  const { podPath, projectRoot } = options;
@@ -12,26 +10,16 @@ export function migrationStrategyForRouteRoutes(options) {
12
10
  });
13
11
 
14
12
  return oldPaths.map((oldPath) => {
15
- if (oldPath.endsWith('.ts')) {
16
- return mapFilePath(oldPath, {
17
- find: {
18
- directory: join('app', podPath),
19
- file: 'route.ts',
20
- },
21
- replace(key) {
22
- return `app/routes/${key}.ts`;
23
- },
24
- });
25
- }
26
-
27
- return mapFilePath(oldPath, {
13
+ const newPath = renameFile(oldPath, {
28
14
  find: {
29
15
  directory: join('app', podPath),
30
- file: 'route.js',
16
+ file: 'route',
31
17
  },
32
- replace(key) {
33
- return `app/routes/${key}.js`;
18
+ replace: (key) => {
19
+ return `app/routes/${key}`;
34
20
  },
35
21
  });
22
+
23
+ return [oldPath, newPath];
36
24
  });
37
25
  }
@@ -1,8 +1,6 @@
1
1
  import { join } from 'node:path';
2
2
 
3
- import { findFiles } from '@codemod-utils/files';
4
-
5
- import { mapFilePath } from '../../../utils/files.js';
3
+ import { findFiles, renameFile } from '@codemod-utils/files';
6
4
 
7
5
  export function migrationStrategyForRouteSerializers(options) {
8
6
  const { podPath, projectRoot } = options;
@@ -12,26 +10,16 @@ export function migrationStrategyForRouteSerializers(options) {
12
10
  });
13
11
 
14
12
  return oldPaths.map((oldPath) => {
15
- if (oldPath.endsWith('.ts')) {
16
- return mapFilePath(oldPath, {
17
- find: {
18
- directory: join('app', podPath),
19
- file: 'serializer.ts',
20
- },
21
- replace(key) {
22
- return `app/serializers/${key}.ts`;
23
- },
24
- });
25
- }
26
-
27
- return mapFilePath(oldPath, {
13
+ const newPath = renameFile(oldPath, {
28
14
  find: {
29
15
  directory: join('app', podPath),
30
- file: 'serializer.js',
16
+ file: 'serializer',
31
17
  },
32
- replace(key) {
33
- return `app/serializers/${key}.js`;
18
+ replace: (key) => {
19
+ return `app/serializers/${key}`;
34
20
  },
35
21
  });
22
+
23
+ return [oldPath, newPath];
36
24
  });
37
25
  }
@@ -1,8 +1,6 @@
1
1
  import { join } from 'node:path';
2
2
 
3
- import { findFiles } from '@codemod-utils/files';
4
-
5
- import { mapFilePath } from '../../../utils/files.js';
3
+ import { findFiles, renameFile } from '@codemod-utils/files';
6
4
 
7
5
  export function migrationStrategyForRouteStylesheets(options) {
8
6
  const { podPath, projectRoot } = options;
@@ -15,26 +13,16 @@ export function migrationStrategyForRouteStylesheets(options) {
15
13
  );
16
14
 
17
15
  return oldPaths.map((oldPath) => {
18
- if (oldPath.endsWith('.scss')) {
19
- return mapFilePath(oldPath, {
20
- find: {
21
- directory: join('app', podPath),
22
- file: 'styles.scss',
23
- },
24
- replace(key) {
25
- return `app/styles/${key}.scss`;
26
- },
27
- });
28
- }
29
-
30
- return mapFilePath(oldPath, {
16
+ const newPath = renameFile(oldPath, {
31
17
  find: {
32
18
  directory: join('app', podPath),
33
- file: 'styles.css',
19
+ file: 'styles',
34
20
  },
35
- replace(key) {
36
- return `app/styles/${key}.css`;
21
+ replace: (key) => {
22
+ return `app/styles/${key}`;
37
23
  },
38
24
  });
25
+
26
+ return [oldPath, newPath];
39
27
  });
40
28
  }