Skip to content

Commit b131b1e

Browse files
committed
add output to dist
1 parent 5b524e0 commit b131b1e

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

packages/ferric-example/.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,4 @@ Cargo.lock
55
/*.apple.node/
66
/*.android.node/
77

8-
# Generated files
9-
/ferric_example.d.ts
10-
/ferric_example.js
8+
dist

packages/ferric/src/build.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,12 +124,12 @@ export const buildCommand = new Command("build")
124124
android,
125125
ndkVersion,
126126
output: outputPath,
127-
cwd,
127+
cwd: cwdPath,
128128
configuration,
129129
xcframeworkExtension,
130130
}) => {
131-
outputPath =
132-
cwd && cwd.length > 0 ? path.join(outputPath, cwd) : outputPath;
131+
const sourcePath = cwdPath && cwdPath.length > 0 ? path.join(outputPath, cwdPath) : outputPath;
132+
outputPath = path.join(sourcePath, "dist");
133133
try {
134134
const targets = new Set([...targetArg]);
135135
if (apple) {
@@ -184,7 +184,7 @@ export const buildCommand = new Command("build")
184184
async (target) =>
185185
[
186186
target,
187-
await build({ configuration, target, sourcePath: outputPath }),
187+
await build({ configuration, target, sourcePath }),
188188
] as const,
189189
),
190190
),
@@ -196,7 +196,7 @@ export const buildCommand = new Command("build")
196196
await build({
197197
configuration,
198198
target,
199-
sourcePath: outputPath,
199+
sourcePath,
200200
ndkVersion,
201201
androidApiLevel: ANDROID_API_LEVEL,
202202
}),
@@ -285,7 +285,7 @@ export const buildCommand = new Command("build")
285285
await oraPromise(
286286
generateTypeScriptDeclarations({
287287
outputFilename: declarationsFilename,
288-
createPath: outputPath,
288+
createPath: sourcePath,
289289
outputPath,
290290
}),
291291
{

0 commit comments

Comments
 (0)