fix test, adjust node adapter, bump version to 0.1

This commit is contained in:
dswbx
2024-11-28 10:11:04 +01:00
parent 550c86a4e0
commit 33a820aa11
4 changed files with 9 additions and 5 deletions

2
.gitignore vendored
View File

@@ -17,6 +17,8 @@ packages/media/.env
**/*/vite.config.ts.timestamp* **/*/vite.config.ts.timestamp*
.history .history
**/*/.db/* **/*/.db/*
**/*/*.db-shm
**/*/*.db-wal
.npmrc .npmrc
/.verdaccio /.verdaccio
.idea .idea

View File

@@ -15,8 +15,8 @@ const { dummyConnection, afterAllCleanup } = getDummyConnection();
* Node writefile * Node writefile
* data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView> | Stream, * data: string | NodeJS.ArrayBufferView | Iterable<string | NodeJS.ArrayBufferView> | AsyncIterable<string | NodeJS.ArrayBufferView> | Stream,
*/ */
const ALL_TESTS = !!process.env.ALL_TESTS;
describe("MediaController", () => { describe.skipIf(ALL_TESTS)("MediaController", () => {
test("..", async () => { test("..", async () => {
const ctx: any = { const ctx: any = {
em: new EntityManager([], dummyConnection, []), em: new EntityManager([], dummyConnection, []),

View File

@@ -3,7 +3,7 @@
"type": "module", "type": "module",
"sideEffects": false, "sideEffects": false,
"bin": "./dist/cli/index.js", "bin": "./dist/cli/index.js",
"version": "0.0.14", "version": "0.1.0",
"scripts": { "scripts": {
"build:all": "bun run build && bun run build:cli", "build:all": "bun run build && bun run build:cli",
"dev": "vite", "dev": "vite",

View File

@@ -12,9 +12,11 @@ const config = {
}; };
serve(config, { serve(config, {
relativeDistPath: "../../node_modules/bknd/dist",
port: 1337, port: 1337,
listener: ({ port }) => { listener: ({ port }) => {
console.log(`Server is running on http://localhost:${port}`); console.log(`Server is running on http://localhost:${port}`);
} },
// this is only required to run inside the same workspace
// leave blank if you're running this from a different project
relativeDistPath: "../../app/dist"
}); });