Skip to content

Commit

Permalink
DEV: Switch to use pnpm
Browse files Browse the repository at this point in the history
  • Loading branch information
tyb-talks committed Oct 2, 2024
1 parent 3bb3861 commit da92be3
Show file tree
Hide file tree
Showing 4 changed files with 3,921 additions and 3,680 deletions.
18 changes: 18 additions & 0 deletions .pnpmfile.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const fs = require("fs");
const { execSync } = require("child_process");

const currRoot = __dirname;

if (fs.existsSync(`${currRoot}/node_modules/.yarn-integrity`)) {
console.log(
"Detected yarn-managed node_modules. Performing one-time cleanup..."
);

// Delete entire contents of all node_modules directories
// But keep the directories themselves, in case they are volume mounts (e.g. in devcontainer)
execSync(
`find ${currRoot}/node_modules -mindepth 1 -maxdepth 1 -exec rm -rf {} +`
);

console.log("cleanup done");
}
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,11 @@
"ember-template-lint": "6.0.0",
"eslint": "8.57.0",
"prettier": "2.8.8"
},
"engines": {
"node": ">= 18",
"npm": "please-use-pnpm",
"yarn": "please-use-pnpm",
"pnpm": ">= 9"
}
}
Loading

0 comments on commit da92be3

Please sign in to comment.