ember-codemod-v1-to-v2 1.0.0 → 1.0.1

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.
@@ -1,4 +1,4 @@
1
- import { findFiles, unionize } from '@codemod-utils/files';
1
+ import { findFiles } from '@codemod-utils/files';
2
2
  import { readPackageJson, validatePackageJson } from '@codemod-utils/json';
3
3
  function analyzePackageJson(codemodOptions) {
4
4
  const { projectRoot } = codemodOptions;
@@ -26,7 +26,7 @@ function analyzePackageManager(codemodOptions) {
26
26
  ['yarn.lock', 'yarn'],
27
27
  ]);
28
28
  const lockFiles = Array.from(mapping.keys());
29
- const filePaths = findFiles(unionize(lockFiles), {
29
+ const filePaths = findFiles(lockFiles, {
30
30
  projectRoot,
31
31
  });
32
32
  if (filePaths.length !== 1) {
@@ -1,8 +1,8 @@
1
- import { copyFiles, findFiles, mapFilePaths, moveFiles, removeFiles, unionize, } from '@codemod-utils/files';
1
+ import { copyFiles, findFiles, mapFilePaths, moveFiles, removeFiles, } from '@codemod-utils/files';
2
2
  function copyToAddon(options) {
3
3
  const { locations, projectRoot } = options;
4
4
  const files = ['LICENSE.md', 'README.md'];
5
- const filePaths = findFiles(unionize(files), {
5
+ const filePaths = findFiles(files, {
6
6
  projectRoot,
7
7
  });
8
8
  const filePathMap = mapFilePaths(filePaths, {
@@ -29,7 +29,7 @@ function moveToAddonAndTestApp(options) {
29
29
  'package.json',
30
30
  'tsconfig.json',
31
31
  ];
32
- const filePaths = findFiles(unionize(files), {
32
+ const filePaths = findFiles(files, {
33
33
  projectRoot,
34
34
  });
35
35
  let filePathMap = mapFilePaths(filePaths, {
@@ -52,7 +52,7 @@ function moveToTestApp(options) {
52
52
  'ember-cli-build.js',
53
53
  'testem.js',
54
54
  ];
55
- const filePaths = findFiles(unionize(files), {
55
+ const filePaths = findFiles(files, {
56
56
  projectRoot,
57
57
  });
58
58
  const filePathMap = mapFilePaths(filePaths, {
@@ -64,7 +64,7 @@ function moveToTestApp(options) {
64
64
  function removeFromProjectRoot(options) {
65
65
  const { projectRoot } = options;
66
66
  const files = ['.npmignore', 'index.js'];
67
- const filePaths = findFiles(unionize(files), {
67
+ const filePaths = findFiles(files, {
68
68
  projectRoot,
69
69
  });
70
70
  removeFiles(filePaths, options);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ember-codemod-v1-to-v2",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Codemod to convert Ember addons to v2 addon format",
5
5
  "keywords": [
6
6
  "codemod",
@@ -27,31 +27,31 @@
27
27
  "dist"
28
28
  ],
29
29
  "dependencies": {
30
- "@codemod-utils/blueprints": "^1.0.0",
31
- "@codemod-utils/files": "^1.0.0",
32
- "@codemod-utils/json": "^1.0.0",
30
+ "@codemod-utils/blueprints": "^1.1.0",
31
+ "@codemod-utils/files": "^1.1.0",
32
+ "@codemod-utils/json": "^1.1.1",
33
33
  "strip-json-comments": "^5.0.1",
34
34
  "yargs": "^17.7.2"
35
35
  },
36
36
  "devDependencies": {
37
- "@babel/core": "^7.22.17",
38
- "@codemod-utils/tests": "^1.0.0",
37
+ "@babel/core": "^7.23.2",
38
+ "@codemod-utils/tests": "^1.1.1",
39
39
  "@sondr3/minitest": "^0.1.2",
40
40
  "@tsconfig/node18": "^18.2.2",
41
41
  "@tsconfig/strictest": "^2.0.2",
42
- "@types/node": "^18.17.15",
43
- "@types/yargs": "^17.0.24",
44
- "@typescript-eslint/eslint-plugin": "^6.7.0",
45
- "@typescript-eslint/parser": "^6.7.0",
46
- "concurrently": "^8.2.1",
47
- "eslint": "^8.49.0",
42
+ "@types/node": "^18.18.7",
43
+ "@types/yargs": "^17.0.29",
44
+ "@typescript-eslint/eslint-plugin": "^6.9.1",
45
+ "@typescript-eslint/parser": "^6.9.1",
46
+ "concurrently": "^8.2.2",
47
+ "eslint": "^8.52.0",
48
48
  "eslint-config-prettier": "^9.0.0",
49
- "eslint-import-resolver-typescript": "^3.6.0",
50
- "eslint-plugin-import": "^2.28.1",
51
- "eslint-plugin-n": "^16.1.0",
52
- "eslint-plugin-prettier": "^5.0.0",
49
+ "eslint-import-resolver-typescript": "^3.6.1",
50
+ "eslint-plugin-import": "^2.29.0",
51
+ "eslint-plugin-n": "^16.2.0",
52
+ "eslint-plugin-prettier": "^5.0.1",
53
53
  "eslint-plugin-simple-import-sort": "^10.0.0",
54
- "eslint-plugin-typescript-sort-keys": "^3.0.0",
54
+ "eslint-plugin-typescript-sort-keys": "^3.1.0",
55
55
  "lerna-changelog": "^2.2.0",
56
56
  "prettier": "^3.0.3",
57
57
  "typescript": "^5.2.2"
@@ -70,12 +70,13 @@
70
70
  },
71
71
  "scripts": {
72
72
  "build": "./build.sh --production",
73
- "changelog": "lerna-changelog",
74
73
  "lint": "concurrently \"npm:lint:*(!fix)\" --names \"lint:\"",
75
74
  "lint:fix": "concurrently \"npm:lint:*:fix\" --names \"fix:\"",
76
75
  "lint:js": "eslint . --cache",
77
76
  "lint:js:fix": "eslint . --fix",
78
77
  "lint:types": "tsc --noEmit",
78
+ "release:changelog": "lerna-changelog",
79
+ "release:publish": "pnpm publish",
79
80
  "test": "./build.sh --test && mt dist-for-testing --quiet"
80
81
  }
81
82
  }