Skip to content

Commit

Permalink
♻️ [Pkg] Replace all utilities imports with beeftools
Browse files Browse the repository at this point in the history
  • Loading branch information
beefchimi committed Apr 28, 2024
1 parent 924d4c2 commit c76ac99
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion pkg/earwurm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,18 @@
"start": "pnpm build:only --watch"
},
"dependencies": {
"beeftools": "^0.0.5",
"emitten": "^0.6.6"
},
"devDependencies": {
"@earwurm/helpers": "workspace:*",
"@earwurm/mocks": "workspace:*",
"@earwurm/types": "workspace:*",
"@earwurm/utilities": "workspace:*",
"vite": "^5.2.10",
"vite-plugin-dts": "^3.9.0"
},
"peerDependencies": {
"beeftools": "^0.0.5",
"emitten": "^0.6.6"
}
}
2 changes: 1 addition & 1 deletion pkg/earwurm/src/Earwurm.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {arrayShallowEquals, clamp, getErrorMessage} from 'beeftools';
import {EmittenCommon} from 'emitten';
import {linearRamp, unlockAudioContext} from '@earwurm/helpers';
import {arrayShallowEquals, clamp, getErrorMessage} from '@earwurm/utilities';

import {Stack} from './Stack';
import {tokens} from './tokens';
Expand Down
2 changes: 1 addition & 1 deletion pkg/earwurm/src/Sound.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {clamp, calcProgress} from 'beeftools';
import {EmittenCommon} from 'emitten';
import {linearRamp} from '@earwurm/helpers';
import {clamp, calcProgress} from '@earwurm/utilities';

import {tokens} from './tokens';
import type {
Expand Down
2 changes: 1 addition & 1 deletion pkg/earwurm/src/Stack.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {arrayShallowEquals, clamp, getErrorMessage} from 'beeftools';
import {EmittenCommon} from 'emitten';
import {fetchAudioBuffer, linearRamp, scratchBuffer} from '@earwurm/helpers';
import {arrayShallowEquals, clamp, getErrorMessage} from '@earwurm/utilities';

import {Sound} from './Sound';
import {tokens} from './tokens';
Expand Down
2 changes: 1 addition & 1 deletion pkg/earwurm/src/tests/Stack.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {afterEach, describe, it, expect, vi} from 'vitest';
import {arrayOfLength} from 'beeftools';
import {mockData} from '@earwurm/mocks';
import {arrayOfLength} from '@earwurm/utilities';

import {Stack} from '../Stack';
import {Sound} from '../Sound';
Expand Down
2 changes: 1 addition & 1 deletion pkg/mocks/MockAudioParam.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {secToMs} from '@earwurm/utilities';
import {secToMs} from 'beeftools';
import {createErrorMessage} from './mock-utils';

function internalMessage(methodName: string, ...args: unknown[]) {
Expand Down
2 changes: 1 addition & 1 deletion pkg/mocks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"pnpm": ">=9.0.0"
},
"dependencies": {
"@earwurm/utilities": "workspace:*"
"beeftools": "^0.0.5"
},
"devDependencies": {}
}

0 comments on commit c76ac99

Please sign in to comment.