Skip to content

yarn@latest #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules
.DS_Store
coverage
coverage

yarn-error.log
.yarn/*
1 change: 1 addition & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
17 changes: 9 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@fullscript/js-transforms",
"version": "1.3.0",
"version": "2.0.0",
"description": "Local recast transforms for use against hw-admin",
"exports": "./src/index.js",
"author": "ryan.oconnor@fullscript.com",
Expand All @@ -19,15 +19,16 @@
},
"bin": "./src/index.js",
"dependencies": {
"@babel/parser": "^7.26.3",
"@babel/parser": "^7.27.2",
"cli-highlight": "^2.1.11",
"glob": "^8.0.3",
"recast": "^0.23.9",
"glob": "^11.0.2",
"recast": "^0.23.11",
"yargs": "^17.7.2"
},
"devDependencies": {
"@vitest/coverage-v8": "^2.1.8",
"prettier": "^3.1.0",
"vitest": "^2.1.8"
}
"@vitest/coverage-v8": "^2.1.9",
"prettier": "^3.5.3",
"vitest": "^2.1.9"
},
"packageManager": "yarn@4.9.1"
}
4 changes: 2 additions & 2 deletions src/availableTransforms.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import glob from "glob";
import { sync } from "glob";

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

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

const AVAILABLE_TRANSFORMS = transforms
.filter(transform => !transform.endsWith("spec.js"))
Expand Down
4 changes: 2 additions & 2 deletions src/cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import glob from "glob";
import { sync } from "glob";
import yargs from "yargs";
import { hideBin } from "yargs/helpers";

Expand Down Expand Up @@ -35,7 +35,7 @@ const args = yargsInstance.argv;
const positionalArgs = args._;

const transformToRun = positionalArgs[0];
const filePaths = glob.sync(positionalArgs[1]);
const filePaths = sync(positionalArgs[1]);
const dryRun = args.dryRun;
const options = args.options;
const verbose = args.verbose;
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node

import { readFileSync, writeFile } from "fs";
import glob from "glob";
import { sync } from "glob";
import { print } from "recast";

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

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

filePaths.forEach(filePath => {
Expand Down
1 change: 0 additions & 1 deletion src/transforms/addEslintDisableComment.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ const transform = ({ builder }) => {
};

export { transform };

1,074 changes: 0 additions & 1,074 deletions yarn-error.log

This file was deleted.

3,455 changes: 2,243 additions & 1,212 deletions yarn.lock

Large diffs are not rendered by default.