-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade to yarn v4 and deprecate turborepo
- Loading branch information
1 parent
61221db
commit ebff1e1
Showing
35 changed files
with
29,677 additions
and
271 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,6 @@ error.log | |
node_modules | ||
*.tgz | ||
!charts/server/charts/*.tgz | ||
yarn.lock | ||
dist | ||
build | ||
.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nmHoistingLimits: workspaces | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,20 +10,22 @@ REPORT_PORTAL_DESCRIPTION ?= "Jan App report" | |
all: | ||
@echo "Specify a target to run" | ||
|
||
# Config yarn version | ||
|
||
config-yarn: | ||
corepack enable | ||
corepack prepare [email protected] --activate | ||
yarn --version | ||
|
||
# Builds the UI kit | ||
build-joi: | ||
ifeq ($(OS),Windows_NT) | ||
cd joi && yarn config set network-timeout 300000 && yarn install && yarn build | ||
else | ||
build-joi: config-yarn | ||
cd joi && yarn install && yarn build | ||
endif | ||
|
||
# Installs yarn dependencies and builds core and extensions | ||
install-and-build: build-joi | ||
ifeq ($(OS),Windows_NT) | ||
yarn config set network-timeout 300000 | ||
echo "skip" | ||
endif | ||
yarn global add [email protected] | ||
yarn build:core | ||
yarn build:server | ||
yarn install | ||
|
@@ -117,9 +119,8 @@ build: check-file-counts | |
|
||
clean: | ||
ifeq ($(OS),Windows_NT) | ||
-powershell -Command "Get-ChildItem -Path . -Include node_modules, .next, dist, build, out, .turbo -Recurse -Directory | Remove-Item -Recurse -Force" | ||
-powershell -Command "Get-ChildItem -Path . -Include package-lock.json -Recurse -File | Remove-Item -Recurse -Force" | ||
-powershell -Command "Get-ChildItem -Path . -Include yarn.lock -Recurse -File | Remove-Item -Recurse -Force" | ||
-powershell -Command "Get-ChildItem -Path . -Include node_modules, .next, dist, build, out, .turbo, .yarn -Recurse -Directory | Remove-Item -Recurse -Force" | ||
-powershell -Command "Get-ChildItem -Path . -Include package-lock.json, tsconfig.tsbuildinfo -Recurse -File | Remove-Item -Recurse -Force" | ||
-powershell -Command "Remove-Item -Recurse -Force ./pre-install/*.tgz" | ||
-powershell -Command "Remove-Item -Recurse -Force ./extensions/*/*.tgz" | ||
-powershell -Command "Remove-Item -Recurse -Force ./electron/pre-install/*.tgz" | ||
|
@@ -131,8 +132,8 @@ else ifeq ($(shell uname -s),Linux) | |
find . -name "build" -type d -exec rm -rf '{}' + | ||
find . -name "out" -type d -exec rm -rf '{}' + | ||
find . -name ".turbo" -type d -exec rm -rf '{}' + | ||
find . -name ".yarn" -type d -exec rm -rf '{}' + | ||
find . -name "packake-lock.json" -type f -exec rm -rf '{}' + | ||
find . -name "yarn.lock" -type f -exec rm -rf '{}' + | ||
find . -name "package-lock.json" -type f -exec rm -rf '{}' + | ||
rm -rf ./pre-install/*.tgz | ||
rm -rf ./extensions/*/*.tgz | ||
|
@@ -146,8 +147,8 @@ else | |
find . -name "build" -type d -exec rm -rf '{}' + | ||
find . -name "out" -type d -exec rm -rf '{}' + | ||
find . -name ".turbo" -type d -exec rm -rf '{}' + | ||
find . -name ".yarn" -type d -exec rm -rf '{}' + | ||
find . -name "package-lock.json" -type f -exec rm -rf '{}' + | ||
find . -name "yarn.lock" -type f -exec rm -rf '{}' + | ||
rm -rf ./pre-install/*.tgz | ||
rm -rf ./extensions/*/*.tgz | ||
rm -rf ./electron/pre-install/*.tgz | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,6 +57,5 @@ | |
"postcss": "^8", | ||
"prettier": "^3.2.5", | ||
"typescript": "^5" | ||
}, | ||
"packageManager": "[email protected]+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
nmHoistingLimits: workspaces | ||
nodeLinker: node-modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,9 +11,9 @@ | |
"clean:modules": "rimraf node_modules/pdf-parse/test && cd node_modules/pdf-parse/lib/pdf.js && rimraf v1.9.426 v1.10.88 v2.0.550", | ||
"build-universal-hnswlib": "cd node_modules/hnswlib-node && arch -x86_64 npx node-gyp rebuild --arch=x64 && mv build/Release/addon.node ./addon-amd64.node && node-gyp rebuild --arch=arm64 && mv build/Release/addon.node ./addon-arm64.node && lipo -create -output build/Release/addon.node ./addon-arm64.node ./addon-amd64.node && rm ./addon-arm64.node && rm ./addon-amd64.node", | ||
"build": "yarn clean:modules && tsc --module commonjs && rollup -c rollup.config.ts", | ||
"build:publish:linux": "rimraf *.tgz --glob && yarn build && npm pack && cpx *.tgz ../../pre-install", | ||
"build:publish:darwin": "rimraf *.tgz --glob && yarn build-universal-hnswlib && yarn build && ../../.github/scripts/auto-sign.sh && npm pack && cpx *.tgz ../../pre-install", | ||
"build:publish:win32": "rimraf *.tgz --glob && yarn build && npm pack && cpx *.tgz ../../pre-install", | ||
"build:publish:linux": "rimraf *.tgz --glob || true && yarn build && npm pack && cpx *.tgz ../../pre-install", | ||
"build:publish:darwin": "rimraf *.tgz --glob || true && yarn build-universal-hnswlib && yarn build && ../../.github/scripts/auto-sign.sh && npm pack && cpx *.tgz ../../pre-install", | ||
"build:publish:win32": "rimraf *.tgz --glob || true && yarn build && npm pack && cpx *.tgz ../../pre-install", | ||
"build:publish": "run-script-os" | ||
}, | ||
"devDependencies": { | ||
|
@@ -28,8 +28,8 @@ | |
"rollup-plugin-define": "^1.0.1", | ||
"rollup-plugin-sourcemaps": "^0.6.3", | ||
"rollup-plugin-typescript2": "^0.36.0", | ||
"typescript": "^5.3.3", | ||
"run-script-os": "^1.1.6" | ||
"run-script-os": "^1.1.6", | ||
"typescript": "^5.3.3" | ||
}, | ||
"dependencies": { | ||
"@janhq/core": "file:../../core", | ||
|
@@ -48,5 +48,8 @@ | |
"@janhq/core", | ||
"hnswlib-node" | ||
], | ||
"packageManager": "[email protected]" | ||
"installConfig": { | ||
"hoistingLimits": "workspaces" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
"scripts": { | ||
"test": "jest", | ||
"build": "tsc -b . && webpack --config webpack.config.js", | ||
"build:publish": "rimraf *.tgz --glob && yarn build && npm pack && cpx *.tgz ../../pre-install" | ||
"build:publish": "rimraf *.tgz --glob || true && yarn build && npm pack && cpx *.tgz ../../pre-install" | ||
}, | ||
"exports": { | ||
".": "./dist/index.js", | ||
|
@@ -19,6 +19,7 @@ | |
"cpx": "^1.5.0", | ||
"rimraf": "^3.0.2", | ||
"ts-loader": "^9.5.0", | ||
"typescript": "^5.7.2", | ||
"webpack": "^5.88.2", | ||
"webpack-cli": "^5.1.4" | ||
}, | ||
|
@@ -36,5 +37,8 @@ | |
"README.md" | ||
], | ||
"bundleDependencies": [], | ||
"packageManager": "[email protected]" | ||
"installConfig": { | ||
"hoistingLimits": "workspaces" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
"scripts": { | ||
"test": "jest test", | ||
"build": "tsc -b . && webpack --config webpack.config.js", | ||
"build:publish": "rimraf *.tgz --glob && yarn build && npm pack && cpx *.tgz ../../pre-install", | ||
"build:publish": "rimraf *.tgz --glob || true && yarn build && npm pack && cpx *.tgz ../../pre-install", | ||
"sync:core": "cd ../.. && yarn build:core && cd extensions && rm yarn.lock && cd inference-anthropic-extension && yarn && yarn build:publish" | ||
}, | ||
"exports": { | ||
|
@@ -21,9 +21,10 @@ | |
"devDependencies": { | ||
"cpx": "^1.5.0", | ||
"rimraf": "^3.0.2", | ||
"ts-loader": "^9.5.0", | ||
"typescript": "^5.7.2", | ||
"webpack": "^5.88.2", | ||
"webpack-cli": "^5.1.4", | ||
"ts-loader": "^9.5.0" | ||
"webpack-cli": "^5.1.4" | ||
}, | ||
"dependencies": { | ||
"@janhq/core": "file:../../core", | ||
|
@@ -41,5 +42,8 @@ | |
"bundleDependencies": [ | ||
"fetch-retry" | ||
], | ||
"packageManager": "[email protected]" | ||
"installConfig": { | ||
"hoistingLimits": "workspaces" | ||
}, | ||
"packageManager": "[email protected]" | ||
} |
Oops, something went wrong.