chore: package rename

This commit is contained in:
Morten Olsen
2023-09-06 13:06:52 +02:00
parent 69a6b23455
commit b01ce539b7
7 changed files with 16 additions and 13 deletions

View File

@@ -64,7 +64,11 @@ jobs:
runs-on: ubuntu-latest
needs: [build, update-release-draft]
permissions:
contents: write
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
with:
@@ -73,12 +77,11 @@ jobs:
with:
name: lib
path: ./
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: packages/playground/dist
- name: Deploy to GitHub Pages
working-directory: ./packages/playground/dist
id: deployment
uses: actions/deploy-pages@v2
release-npm:
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest

View File

@@ -20,7 +20,7 @@
],
"private": false,
"main": "./dist/cjs/index.js",
"name": "bob-the-algorithm",
"name": "@bob-the-algorithm/core",
"scripts": {
"build": "tsc --build configs/tsconfig.libs.json"
},

View File

@@ -10,7 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"bob-the-algorithm": "workspace:^",
"@bob-the-algorithm/core": "workspace:^",
"date-fns": "^2.30.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"

View File

@@ -1,4 +1,4 @@
import { calulation, plugins } from 'bob-the-algorithm';
import { calulation, plugins } from '@bob-the-algorithm/core';
import { createWorker } from '../../features/runner/worker';
import { convertResult } from '../../utils/graph';

View File

@@ -1,4 +1,4 @@
import { GraphNode } from 'bob-the-algorithm';
import { GraphNode } from '@bob-the-algorithm/core';
import { useMemo } from 'react';
import { ConvertedResult } from '../../utils/graph';
import { format } from 'date-fns';

View File

@@ -1,4 +1,4 @@
import { CalulationResult } from 'bob-the-algorithm';
import { CalulationResult } from '@bob-the-algorithm/core';
function msToHMS(ms: number) {
// 1- Convert to seconds:

2
pnpm-lock.yaml generated
View File

@@ -30,7 +30,7 @@ importers:
packages/playground:
dependencies:
bob-the-algorithm:
'@bob-the-algorithm/core':
specifier: workspace:^
version: link:../algorithm
date-fns: