Skip to content

Commit ccbd2e3

Browse files
Merge pull request #13 from Fullscript/upgrade-yarn
yarn@latest
2 parents 1dcfdb8 + 1181c2c commit ccbd2e3

9 files changed

Lines changed: 2263 additions & 2302 deletions

File tree

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
node_modules
22
.DS_Store
3-
coverage
3+
coverage
4+
5+
yarn-error.log
6+
.yarn/*

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@fullscript/js-transforms",
3-
"version": "1.3.0",
3+
"version": "2.0.0",
44
"description": "Local recast transforms for use against hw-admin",
55
"exports": "./src/index.js",
66
"author": "ryan.oconnor@fullscript.com",
@@ -19,15 +19,16 @@
1919
},
2020
"bin": "./src/index.js",
2121
"dependencies": {
22-
"@babel/parser": "^7.26.3",
22+
"@babel/parser": "^7.27.2",
2323
"cli-highlight": "^2.1.11",
24-
"glob": "^8.0.3",
25-
"recast": "^0.23.9",
24+
"glob": "^11.0.2",
25+
"recast": "^0.23.11",
2626
"yargs": "^17.7.2"
2727
},
2828
"devDependencies": {
29-
"@vitest/coverage-v8": "^2.1.8",
30-
"prettier": "^3.1.0",
31-
"vitest": "^2.1.8"
32-
}
29+
"@vitest/coverage-v8": "^2.1.9",
30+
"prettier": "^3.5.3",
31+
"vitest": "^2.1.9"
32+
},
33+
"packageManager": "yarn@4.9.1"
3334
}

src/availableTransforms.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import glob from "glob";
1+
import { sync } from "glob";
22

33
import { __dirname } from "./dirname.js";
44

55
// Relative to the directory where the command is run
6-
const transforms = glob.sync(`${__dirname}/transforms/**/*.js`);
6+
const transforms = sync(`${__dirname}/transforms/**/*.js`);
77

88
const AVAILABLE_TRANSFORMS = transforms
99
.filter(transform => !transform.endsWith("spec.js"))

src/cli.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import glob from "glob";
1+
import { sync } from "glob";
22
import yargs from "yargs";
33
import { hideBin } from "yargs/helpers";
44

@@ -35,7 +35,7 @@ const args = yargsInstance.argv;
3535
const positionalArgs = args._;
3636

3737
const transformToRun = positionalArgs[0];
38-
const filePaths = glob.sync(positionalArgs[1]);
38+
const filePaths = sync(positionalArgs[1]);
3939
const dryRun = args.dryRun;
4040
const options = args.options;
4141
const verbose = args.verbose;

src/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22

33
import { readFileSync, writeFile } from "fs";
4-
import glob from "glob";
4+
import { sync } from "glob";
55
import { print } from "recast";
66

77
import { parseCode } from "./parser.js";
@@ -23,7 +23,7 @@ if (!validTransformName(transformToRun)) {
2323
process.exit(1);
2424
}
2525

26-
const transformPath = glob.sync(`${__dirname}/transforms/**/${transformToRun}.js`)[0];
26+
const transformPath = sync(`${__dirname}/transforms/**/${transformToRun}.js`)[0];
2727
const { transform } = await import(transformPath.replace("./src", "."));
2828

2929
filePaths.forEach(filePath => {

src/transforms/addEslintDisableComment.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,3 @@ const transform = ({ builder }) => {
4040
};
4141

4242
export { transform };
43-

yarn-error.log

Lines changed: 0 additions & 1074 deletions
This file was deleted.

yarn.lock

Lines changed: 2243 additions & 1212 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)