mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-05-16 12:26:42 -04:00
add postinstall script for react-native-codegen
This commit is contained in:
2
.npmrc
2
.npmrc
@@ -1 +1,3 @@
|
||||
; necessary for metro + mobile
|
||||
strict-peer-dependencies=false
|
||||
node-linker=hoisted
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
strict-peer-dependencies = false
|
||||
ignore-workspace-root-check = true
|
||||
; shamefully-hoist = true
|
||||
@@ -8,7 +8,8 @@
|
||||
"android": "expo run:android",
|
||||
"ios": "expo run:ios",
|
||||
"xcode": "open ios/spacedrive.xcworkspace",
|
||||
"lint": "eslint src/**/*.{ts,tsx} && tsc --noEmit"
|
||||
"lint": "eslint src/**/*.{ts,tsx} && tsc --noEmit",
|
||||
"postinstall": "node scripts/postinstall.js"
|
||||
},
|
||||
"dependencies": {
|
||||
"@gorhom/bottom-sheet": "^4.4.3",
|
||||
|
||||
13
apps/mobile/scripts/postinstall.js
Normal file
13
apps/mobile/scripts/postinstall.js
Normal file
@@ -0,0 +1,13 @@
|
||||
// @ts-check
|
||||
let fs = require('fs-extra');
|
||||
let path = require('path');
|
||||
|
||||
async function copyReactNativeCodegen() {
|
||||
const sourcePath = path.join(__dirname, '../../../node_modules/react-native-codegen');
|
||||
const destPath = path.join(__dirname, '../node_modules/react-native-codegen');
|
||||
|
||||
await fs.remove(destPath).catch(() => {});
|
||||
await fs.move(sourcePath, destPath);
|
||||
}
|
||||
|
||||
copyReactNativeCodegen();
|
||||
@@ -11,12 +11,13 @@
|
||||
"format": "prettier --config .prettierrc.js --write \"**/*.{ts,tsx,html,scss,json,yml,md}\"",
|
||||
"desktop": "pnpm --filter @sd/desktop --",
|
||||
"web": "pnpm --filter @sd/web -- ",
|
||||
"mobile": "pnpm --filter @sd/mobile --",
|
||||
"server": "pnpm --filter @sd/server -- ",
|
||||
"landing": "pnpm --filter @sd/landing -- ",
|
||||
"ui": "pnpm --filter @sd/ui -- ",
|
||||
"interface": "pnpm --filter @sd/interface -- ",
|
||||
"docs": "pnpm --filter @sd/docs -- ",
|
||||
"client": "pnpm --filter @sd/client -- ",
|
||||
"server": "pnpm --filter @sd/server -- ",
|
||||
"prisma": "cd core && cargo prisma",
|
||||
"codegen": "cargo test -p sd-core api::tests::test_and_export_rspc_bindings -- --exact",
|
||||
"typecheck": "pnpm -r exec tsc"
|
||||
|
||||
BIN
pnpm-lock.yaml
generated
BIN
pnpm-lock.yaml
generated
Binary file not shown.
Reference in New Issue
Block a user