From c327cdab9ac38ea9e7d78499d0c0c83fe6faef23 Mon Sep 17 00:00:00 2001 From: Michele Riva Date: Sat, 30 Jul 2022 12:14:25 +0200 Subject: [PATCH] build(lyra): fixes the build process --- packages/examples/with-react/package.json | 2 +- packages/lyra/package.json | 9 +++++---- pnpm-lock.yaml | 12 ++++++++++-- 3 files changed, 16 insertions(+), 7 deletions(-) diff --git a/packages/examples/with-react/package.json b/packages/examples/with-react/package.json index 4aadd70f2..f7478a61d 100644 --- a/packages/examples/with-react/package.json +++ b/packages/examples/with-react/package.json @@ -8,7 +8,7 @@ "preview": "vite preview" }, "dependencies": { - "@nearform/lyra": "workspace:*", + "@nearform/lyra": "0.0.1-beta-16", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/packages/lyra/package.json b/packages/lyra/package.json index b83a5f3ad..52a56e20a 100644 --- a/packages/lyra/package.json +++ b/packages/lyra/package.json @@ -1,7 +1,7 @@ { "name": "@nearform/lyra", "description": "Fast, in-memory, typo-tolerant, full-text search engine", - "version": "0.0.1-beta-16", + "version": "0.0.1-beta-17", "author": { "name": "Michele Riva", "email": "ciao@micheleriva.it", @@ -14,7 +14,7 @@ "scripts": { "build:cjs": "tsc --project tsconfig.cjs.json", "build:module": "tsc --project tsconfig.esm.json", - "build": "pnpm build:module && pnpm build:cjs", + "build": "rimraf ./dist && pnpm build:module && pnpm build:cjs", "test": "c8 -c tests/config/c8-local.json tap --rcfile=tests/config/tap.yml tests/*.test.ts", "test:ci": "c8 -c tests/config/c8-ci.json tap --rcfile=tests/config/tap.yml --no-color tests/*.test.ts", "ci": "npm run build && npm run test:ci" @@ -29,8 +29,9 @@ "@types/node": "^18.6.2", "@types/tap": "^15.0.7", "c8": "^7.12.0", + "rimraf": "^3.0.2", "tap": "^16.3.0", - "typescript": "^4.7.4", - "ts-node": "^10.9.1" + "ts-node": "^10.9.1", + "typescript": "^4.7.4" } } \ No newline at end of file diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 8b001f473..6ff97d0e6 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -58,7 +58,7 @@ importers: packages/examples/with-react: specifiers: - '@nearform/lyra': workspace:* + '@nearform/lyra': 0.0.1-beta-16 '@types/react': ^18.0.15 '@types/react-dom': ^18.0.6 '@vitejs/plugin-react': ^2.0.0 @@ -68,7 +68,7 @@ importers: unocss: ^0.44.7 vite: ^3.0.3 dependencies: - '@nearform/lyra': link:../../lyra + '@nearform/lyra': 0.0.1-beta-16 react: 18.2.0 react-dom: 18.2.0_react@18.2.0 devDependencies: @@ -85,6 +85,7 @@ importers: '@types/tap': ^15.0.7 c8: ^7.12.0 fastq: ^1.13.0 + rimraf: ^3.0.2 tap: ^16.3.0 ts-node: ^10.9.1 typescript: ^4.7.4 @@ -94,6 +95,7 @@ importers: '@types/node': 18.6.2 '@types/tap': 15.0.7 c8: 7.12.0 + rimraf: 3.0.2 tap: 16.3.0_6oasmw356qmm23djlsjgkwvrtm ts-node: 10.9.1_cyi3jronpmwutj7hw2n2p72xty typescript: 4.7.4 @@ -1782,6 +1784,12 @@ packages: glob-to-regexp: 0.3.0 dev: true + /@nearform/lyra/0.0.1-beta-16: + resolution: {integrity: sha512-xJt/povvt4/fxULqTP58xDy4sRuzTk2jCRzH1yvPXqNW09qlorvDod3QnUhPPTsetC/N1u7l2Vk3INCNZ42RZw==} + dependencies: + fastq: 1.13.0 + dev: false + /@nodelib/fs.scandir/2.1.5: resolution: {integrity: sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==} engines: {node: '>= 8'}