mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-02 22:22:50 +00:00
feat: Lerna
Links root and ui packages together, running `pnpm i` in the root folder will also install deps in the ui folder, same with the build script.
This commit is contained in:
1 parent
fc0c025db2
commit
dadc7ff15f
6 files changed
+4269
-283
No files matched your search
@@ -22,15 +22,11 @@ jobs:
|
|||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
ref: ${{ github.ref }}
|
ref: ${{ github.ref }}
|
||||||
|
|
||||||
- name: Install root dependencies
|
- name: Install dependencies
|
||||||
run: yarn
|
run: pnpm i
|
||||||
|
|
||||||
- name: Install ui dependencies
|
|
||||||
run: yarn
|
|
||||||
working-directory: ui
|
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
run: yarn build
|
run: pnpm build
|
||||||
|
|
||||||
- name: Bundle files
|
- name: Bundle files
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -30,12 +30,8 @@ jobs:
|
|||||||
- name: Set env
|
- name: Set env
|
||||||
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install root dependencies
|
- name: Install dependencies
|
||||||
run: pnpm install
|
run: pnpm i
|
||||||
|
|
||||||
- name: Install ui dependencies
|
|
||||||
run: pnpm install
|
|
||||||
working-directory: ui
|
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
run: pnpm build
|
run: pnpm build
|
||||||
|
|||||||
@@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"packages": ["ui"],
|
||||||
|
"npmClient": "pnpm",
|
||||||
|
"version": "0.0.0"
|
||||||
|
}
|
||||||
+4
-3
@@ -12,12 +12,12 @@
|
|||||||
"lib/MySQL.d.ts"
|
"lib/MySQL.d.ts"
|
||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "pnpm build:root && pnpm build:ui",
|
"build": "pnpm build:root && lerna run build",
|
||||||
"build:ui": "cd ./ui/ && pnpm build",
|
|
||||||
"build:root": "esbuild --bundle --platform=node --target=node16.9.1 src/index.ts --outfile=dist/build.js",
|
"build:root": "esbuild --bundle --platform=node --target=node16.9.1 src/index.ts --outfile=dist/build.js",
|
||||||
"watch": "esbuild --watch --bundle --platform=node --target=node16.9.1 src/index.ts --outfile=dist/build.js",
|
"watch": "esbuild --watch --bundle --platform=node --target=node16.9.1 src/index.ts --outfile=dist/build.js",
|
||||||
"lib": "tsc --project lib/tsconfig.lib.json",
|
"lib": "tsc --project lib/tsconfig.lib.json",
|
||||||
"postinstall": "patch-package"
|
"bootstrap": "lerna bootstrap",
|
||||||
|
"postinstall": "patch-package && pnpm bootstrap"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@citizenfx/server": "^2.0.5132-1",
|
"@citizenfx/server": "^2.0.5132-1",
|
||||||
@@ -30,6 +30,7 @@
|
|||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@tellus/patch-package-with-pnpm-support": "github:Tellus/patch-package-with-pnpm-support",
|
"@tellus/patch-package-with-pnpm-support": "github:Tellus/patch-package-with-pnpm-support",
|
||||||
"esbuild": "^0.14.23",
|
"esbuild": "^0.14.23",
|
||||||
|
"lerna": "^4.0.0",
|
||||||
"postinstall-postinstall": "^2.1.0",
|
"postinstall-postinstall": "^2.1.0",
|
||||||
"pretty-quick": "^3.1.3",
|
"pretty-quick": "^3.1.3",
|
||||||
"typescript": "^4.6.2"
|
"typescript": "^4.6.2"
|
||||||
|
|||||||
Generated
+3993
-5
File diff suppressed because it is too large.
Load diff
Generated
+262
-262
File diff suppressed because it is too large.
Load diff
Reference in new issue
Block a user