Skip to content

Commit

Permalink
feat: replace core-peer by core (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Jan 6, 2025
1 parent 8047905 commit 0f033f8
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 23 deletions.
31 changes: 16 additions & 15 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@junobuild/admin": "^0.0.61",
"@junobuild/cli-tools": "^0.0.16",
"@junobuild/config-loader": "^0.0.7",
"@junobuild/core-peer": "^0.0.29",
"@junobuild/core": "^0.1.0",
"@junobuild/did-tools": "^0.0.4",
"@junobuild/utils": "^0.0.27",
"conf": "^13.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
preDeploy as cliPreDeploy,
hasArgs
} from '@junobuild/cli-tools';
import {uploadBlob, type Asset} from '@junobuild/core-peer';
import {uploadBlob, type Asset} from '@junobuild/core';
import {red} from 'kleur';
import {lstatSync} from 'node:fs';
import {junoConfigExist, readJunoConfig} from '../configs/juno.config';
Expand Down
4 changes: 1 addition & 3 deletions src/services/build.services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,7 @@ const api = async () => {
try {
const packageJson = await readFile(join(process.cwd(), 'package.json'), 'utf-8');
const {dependencies} = JSON.parse(packageJson) as {dependencies?: Record<string, string>};
return Object.keys(dependencies ?? {}).includes('@junobuild/core-peer')
? 'core-peer'
: 'core';
return Object.keys(dependencies ?? {}).includes('@junobuild/core') ? 'core-peer' : 'core';
} catch (err: unknown) {
// This should not block the developer therefore we fallback to core
return 'core';
Expand Down
2 changes: 1 addition & 1 deletion src/services/clear.services.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {deleteAssets, listCustomDomains, setCustomDomains} from '@junobuild/admin';
import {deleteAsset} from '@junobuild/core-peer';
import {deleteAsset} from '@junobuild/core';
import ora from 'ora';
import {readJunoConfig} from '../configs/juno.config';
import {DAPP_COLLECTION} from '../constants/constants';
Expand Down
4 changes: 2 additions & 2 deletions src/services/deploy.services.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {satelliteMemorySize, satelliteVersion} from '@junobuild/admin';
import type {Asset} from '@junobuild/core-peer';
import {listAssets as listAssetsLib} from '@junobuild/core-peer';
import type {Asset} from '@junobuild/core';
import {listAssets as listAssetsLib} from '@junobuild/core';
import {yellow} from 'kleur';
import {compare} from 'semver';
import {readJunoConfig} from '../configs/juno.config';
Expand Down

0 comments on commit 0f033f8

Please sign in to comment.