* Use bun in package.json * Update workflows * Update more workflows * Kick ci * Fix yaml * Fix type errors * Compat with snyk * Fix jest resolutions * Add another esm package * Fix aliases and next js missing deps * Update next js embed tests * Try fix embed test config * Fix * Fix requires in e2e support * Use bun not yarn in embed bin * Revert config changes * Use bun in more scripts and use prepare-release action * Replace more yarn usages * Remove overrides from bunfig move to package json * Revert e2e support changes * Add back comment * [ci skip] comment typo * Update bun lock * Update to reference bun * Update to reference bun * Update license disclaimer * Tidy tests * Update to use bun in workflows * Change aliases * Update codemirrort selector * Tidy license generation * Remove .only * Fix yarn references * Checkout .github for release scripts * Update lockfile * Re-add package * update release bunlock * fix checkout check --------- Co-authored-by: Ryan Laurie <iethree@gmail.com>
26 lines
518 B
Bash
Executable File
26 lines
518 B
Bash
Executable File
#! /usr/bin/env bash
|
|
|
|
function prepare_files() {
|
|
cp ./bin/embedding-sdk/templates/package.json docs/embedding/
|
|
cp ./bin/embedding-sdk/templates/bun.lock docs/embedding/
|
|
}
|
|
|
|
function install_dependencies() {
|
|
bun install --cwd ./docs/embedding --frozen-lockfile
|
|
}
|
|
|
|
function type_check() {
|
|
tsc --project ./docs/embedding/tsconfig.json
|
|
}
|
|
|
|
function cleanup_files() {
|
|
rm -f ./docs/embedding/package.json
|
|
rm -f ./docs/embedding/bun.lock
|
|
}
|
|
|
|
cleanup_files
|
|
prepare_files
|
|
install_dependencies
|
|
type_check
|
|
cleanup_files
|