Skip to content

Commit

Permalink
ci: fix versions
Browse files Browse the repository at this point in the history
  • Loading branch information
ido-pluto committed Nov 20, 2023
1 parent eb1c173 commit ea39802
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
10 changes: 6 additions & 4 deletions .config/scripts/scan-publish-order.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,11 @@ export default class ScanPublishOrder {
}

async #readAllPackages() {
const packages = await fs.readdir(this.scanLocation);
for (const packageName of packages) {
const packagePath = path.join(this.scanLocation, packageName);
const packages = await fs.readdir(this.scanLocation, {withFileTypes: true});
for (const packageState of packages) {
if (packageState.isFile()) continue;

const packagePath = path.join(this.scanLocation, packageState.name);
const packageJsonPath = path.join(packagePath, 'package.json');
if (await fs.stat(packageJsonPath).then(stat => stat.isFile())) {
const packageContent = await fs.readFile(packageJsonPath, 'utf-8').then(JSON.parse);
Expand Down Expand Up @@ -83,7 +85,7 @@ export default class ScanPublishOrder {
*/
#checkOkToBeNextInOrder(dependencies = {}) {
for (const [key, value] of Object.entries(dependencies)) {
if (value === DEFAULT_ORGANIZATION_PACKAGE_VERSION && !this.#packagesOrder.includes(key)) {
if (value.endsWith(DEFAULT_ORGANIZATION_PACKAGE_VERSION) && !this.#packagesOrder.includes(key)) {
return false;
}
}
Expand Down
4 changes: 2 additions & 2 deletions packages/express-endpoints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@
"typescript": "^5.2.2"
},
"dependencies": {
"@astro-utils/formidable": "^0.0.1",
"@astro-utils/formidable": "0.0.1",
"@tinyhttp/accepts": "^2.2.0",
"cookie": "^0.6.0",
"express-serve-static-core": "^0.1.1",
"express-serve-static-core": "0.1.1",
"mime": "^3.0.0",
"statuses": "^2.0.1",
"zod-express-middleware": "^1.4.0"
Expand Down
7 changes: 0 additions & 7 deletions packages/express-endpoints/src/express-route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,4 @@ export default class ExpressRoute {
}
}
}

private _clone() {
const clone = new ExpressRoute();
clone._middleware = this._middleware.slice();
clone._bodyOptions = this._bodyOptions;
return clone;
}
}

0 comments on commit ea39802

Please sign in to comment.