Skip to content
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

Fix/mitosis dep #1663

Merged
merged 4 commits into from
Jan 15, 2025
Merged
Show file tree
Hide file tree
Changes from 3 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
6 changes: 6 additions & 0 deletions .changeset/gold-cougars-collect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@builder.io/mitosis': patch
'@builder.io/mitosis-cli': patch
---

Misc: stop using `fs-extra-promise` dependency
2 changes: 0 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@
"@types/babel__core": "7.1.14",
"@types/dedent": "^0.7.0",
"@types/estree": "^1.0.2",
"@types/fs-extra-promise": "^1.0.10",
"@types/hash-sum": "^1.0.0",
"@types/json5": "0.0.30",
"@types/lodash": "^4.14.165",
Expand All @@ -95,7 +94,6 @@
"@types/prettier": "^2.1.5",
"@types/rollup__plugin-virtual": "^2.0.1",
"concurrently": "^8.2.2",
"fs-extra-promise": "^1.0.1",
"rimraf": "^5.0.5",
"rollup": "^2.70.1",
"strip-ansi": "^6.0.1",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/__tests__/qwik.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { outputFileAsync } from 'fs-extra-promise';
import { writeFileSync } from 'fs';
import { resolve } from 'path';
import stripAnsi from 'strip-ansi';
import { File } from '../generators/qwik';
Expand Down Expand Up @@ -27,7 +27,7 @@ const debugOutput = async (fileSet: FileSet) => {
if (debugFiles) {
for (const key in fileSet) {
const file = (fileSet as any)[key];
await outputFileAsync(resolve(base, file.path), file.contents);
await writeFileSync(resolve(base, file.path), file.contents);
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/parsers/jsx/hooks/use-metadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { Context, ParseMitosisOptions, ResolvedImport } from '@/parsers/jsx/type
import { MitosisImport } from '@/types/mitosis-component';
import * as babel from '@babel/core';
import { NodePath } from '@babel/core';
import { existsSync, readFileSync } from 'fs-extra-promise';
import { existsSync, readFileSync } from 'fs';
import * as path from 'path';

type ResolveData = {
Expand Down
68 changes: 0 additions & 68 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3376,7 +3376,6 @@ __metadata:
"@types/babel__core": "npm:7.1.14"
"@types/dedent": "npm:^0.7.0"
"@types/estree": "npm:^1.0.2"
"@types/fs-extra-promise": "npm:^1.0.10"
"@types/hash-sum": "npm:^1.0.0"
"@types/json5": "npm:0.0.30"
"@types/lodash": "npm:^4.14.165"
Expand All @@ -3388,7 +3387,6 @@ __metadata:
concurrently: "npm:^8.2.2"
csstype: "npm:^3.0.4"
fp-ts: "npm:^2.11.10"
fs-extra-promise: "npm:^1.0.1"
hash-sum: "npm:^2.0.0"
json5: "npm:^2.1.3"
lodash: "npm:^4.17.20"
Expand Down Expand Up @@ -6226,13 +6224,6 @@ __metadata:
languageName: node
linkType: hard

"@types/bluebird@npm:*":
version: 3.5.36
resolution: "@types/bluebird@npm:3.5.36"
checksum: 10/74d3870a745a3a70a5f516b8a85746938506b013ca4f8722b4f9b252860efd645d7ce7599dca8e0c86b4145c290f67daa812ad6c9274cc1b450d690b60de7b19
languageName: node
linkType: hard

"@types/body-parser@npm:*":
version: 1.19.2
resolution: "@types/body-parser@npm:1.19.2"
Expand Down Expand Up @@ -6453,26 +6444,6 @@ __metadata:
languageName: node
linkType: hard

"@types/fs-extra-promise@npm:^1.0.10":
version: 1.0.10
resolution: "@types/fs-extra-promise@npm:1.0.10"
dependencies:
"@types/bluebird": "npm:*"
"@types/fs-extra": "npm:^4"
"@types/node": "npm:*"
checksum: 10/a65d59cb9335df5ed30deade86763c99771b76694b04bec15bbadaeedf4e4f8557aa7d7cbf6d08f2e92ac4e5b4be071e9a89f50d03490dd3fe8d2699029e6b74
languageName: node
linkType: hard

"@types/fs-extra@npm:^4":
version: 4.0.12
resolution: "@types/fs-extra@npm:4.0.12"
dependencies:
"@types/node": "npm:*"
checksum: 10/a78250cb222bb64966747ca16120485e1b14d985a2d1bb6b2d4f21113925c39155e02749c4d6fcc4c6e10b80fc332345a89f5a93756439aaede6f7d4ea81db89
languageName: node
linkType: hard

"@types/fs-extra@npm:^9.0.13":
version: 9.0.13
resolution: "@types/fs-extra@npm:9.0.13"
Expand Down Expand Up @@ -8756,13 +8727,6 @@ __metadata:
languageName: node
linkType: hard

"bluebird@npm:^3.5.0":
version: 3.7.2
resolution: "bluebird@npm:3.7.2"
checksum: 10/007c7bad22c5d799c8dd49c85b47d012a1fe3045be57447721e6afbd1d5be43237af1db62e26cb9b0d9ba812d2e4ca3bac82f6d7e016b6b88de06ee25ceb96e7
languageName: node
linkType: hard

"bn.js@npm:^4.0.0, bn.js@npm:^4.1.0, bn.js@npm:^4.11.9":
version: 4.12.0
resolution: "bn.js@npm:4.12.0"
Expand Down Expand Up @@ -12879,16 +12843,6 @@ __metadata:
languageName: node
linkType: hard

"fs-extra-promise@npm:^1.0.1":
version: 1.0.1
resolution: "fs-extra-promise@npm:1.0.1"
dependencies:
bluebird: "npm:^3.5.0"
fs-extra: "npm:^2.1.2"
checksum: 10/09b29c5df8e1b333090deef0127ba9094ebb7dc9a4cd7c8163b048b82eaccb978674b2cf3565d2d8332c40ecfd0e6587f1415d10ff3b7f99735b5c52b676d62e
languageName: node
linkType: hard

"fs-extra@npm:^10.1.0":
version: 10.1.0
resolution: "fs-extra@npm:10.1.0"
Expand All @@ -12911,16 +12865,6 @@ __metadata:
languageName: node
linkType: hard

"fs-extra@npm:^2.1.2":
version: 2.1.2
resolution: "fs-extra@npm:2.1.2"
dependencies:
graceful-fs: "npm:^4.1.2"
jsonfile: "npm:^2.1.0"
checksum: 10/2cd92acba96fc2a180b7fc9d7966765d3eb4dfe8b52c112da62d421b40d07554e814ead8364f7be002449bfecb2180ec9ee37f85c4eee28e5281c7969c5cd059
languageName: node
linkType: hard

"fs-extra@npm:^7.0.1, fs-extra@npm:~7.0.1":
version: 7.0.1
resolution: "fs-extra@npm:7.0.1"
Expand Down Expand Up @@ -15044,18 +14988,6 @@ __metadata:
languageName: node
linkType: hard

"jsonfile@npm:^2.1.0":
version: 2.4.0
resolution: "jsonfile@npm:2.4.0"
dependencies:
graceful-fs: "npm:^4.1.6"
dependenciesMeta:
graceful-fs:
optional: true
checksum: 10/517656e0a7c4eda5a90341dd0ec9e9b7590d0c77d66d8aad0162615dfc7c5f219c82565b927cc4cc774ca93e484d118a274ef0def74279a3d8afb4ff2f4e4800
languageName: node
linkType: hard

"jsonfile@npm:^4.0.0":
version: 4.0.0
resolution: "jsonfile@npm:4.0.0"
Expand Down
Loading