Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/constants/dev.constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export const JUNO_PACKAGE_JSON_PATH = join(TARGET_PATH, 'juno.package.json');
export const PACKAGE_JSON_PATH = join(process.cwd(), 'package.json');

export const SPUTNIK_INDEX_MJS = 'sputnik.index.mjs';
export const DEPLOY_SPUTNIK_PATH = join(DEPLOY_LOCAL_REPLICA_PATH, SPUTNIK_INDEX_MJS);
export const DEPLOY_SPUTNIK_SCRIPT_PATH = join(DEPLOY_LOCAL_REPLICA_PATH, SPUTNIK_INDEX_MJS);

export const JUNO_ACTION_SPUTNIK_PATH = '/juno/src/sputnik';
export const SPUTNIK_CARGO_TOML = join(JUNO_ACTION_SPUTNIK_PATH, CARGO_TOML);
Expand Down
4 changes: 2 additions & 2 deletions src/services/functions/build/build.javascript.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {Metafile} from 'esbuild';
import {green, red, yellow} from 'kleur';
import {join} from 'node:path';
import {
DEPLOY_SPUTNIK_PATH,
DEPLOY_SPUTNIK_SCRIPT_PATH,
DEVELOPER_PROJECT_SATELLITE_PATH,
INDEX_MJS,
INDEX_TS
Expand Down Expand Up @@ -71,7 +71,7 @@ const buildWithEsbuild = async ({

const {metafile, errors, warnings, version} = await buildFunctions({
infile,
outfile: DEPLOY_SPUTNIK_PATH,
outfile: DEPLOY_SPUTNIK_SCRIPT_PATH,
banner
});

Expand Down
4 changes: 2 additions & 2 deletions src/services/functions/build/build.rust.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
SATELLITE_DID_FILE
} from '../../../constants/build.constants';
import {
DEPLOY_SPUTNIK_PATH,
DEPLOY_SPUTNIK_SCRIPT_PATH,
JUNO_PACKAGE_JSON_PATH,
SATELLITE_OUTPUT,
SATELLITE_PROJECT_NAME,
Expand Down Expand Up @@ -85,7 +85,7 @@ export const buildRust = async ({
const env = {
...process.env,
RUSTFLAGS: '--cfg getrandom_backend="custom" -A deprecated',
...(target === 'wasm32-wasip1' && {DEV_SCRIPT_PATH: DEPLOY_SPUTNIK_PATH})
...(target === 'wasm32-wasip1' && {DEV_SCRIPT_PATH: DEPLOY_SPUTNIK_SCRIPT_PATH})
};

await execute({
Expand Down