@bash-app/bash-common 30.21.0 → 30.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "30.21.0",
3
+ "version": "30.21.2",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "type": "module",
6
6
  "main": "src/index.ts",
@@ -47,5 +47,10 @@
47
47
  "ts-node": "^10.9.1",
48
48
  "tslib": "^2.6.2",
49
49
  "typescript": "^5.2.2"
50
- }
50
+ },
51
+ "files": [
52
+ "dist",
53
+ "src",
54
+ "prisma"
55
+ ]
51
56
  }
@@ -7,8 +7,8 @@ generator client {
7
7
 
8
8
  datasource db {
9
9
  provider = "postgresql"
10
- url = env("POSTGRES_PRISMA_URL") // uses connection pooling
11
- directUrl = env("POSTGRES_URL_NON_POOLING") // uses a direct connection
10
+ url = env("POSTGRES_PRISMA_URL")
11
+ directUrl = env("POSTGRES_URL_NON_POOLING")
12
12
  }
13
13
 
14
14
  model Club {
@@ -1,9 +0,0 @@
1
- {
2
- "cSpell.words": [
3
- "autoincrement",
4
- "bashfeed",
5
- "cuid",
6
- "Pinterest",
7
- "Tradeshow"
8
- ]
9
- }
@@ -1,33 +0,0 @@
1
- #! /bin/bash
2
-
3
- # run this script after any schema change to make sure the typescript defintions are updated or
4
- #... or if npm i is run on any of the repos, as it may overwrite the symlink
5
-
6
- SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
7
-
8
- PATH_TO_PARENT_DIR="../.."
9
- NODE_MODULES_PATH="node_modules/@bash-app"
10
- FRONT_END_TARGET="$SCRIPT_DIR/$PATH_TO_PARENT_DIR/bash-app"
11
- API_TARGET="$SCRIPT_DIR/$PATH_TO_PARENT_DIR/api"
12
-
13
- TARGETS=(
14
- $FRONT_END_TARGET
15
- $API_TARGET
16
- )
17
-
18
- BASH_COMMON_TARGET="$SCRIPT_DIR/$PATH_TO_PARENT_DIR/bash-common"
19
-
20
- echo "FRONT_END_TARGET: $FRONT_END_TARGET"
21
- echo "API_TARGET: $API_TARGET"
22
- echo "BASH_COMMON_TARGET: $BASH_COMMON_TARGET"
23
- printf "\n\n"
24
-
25
- cd $BASH_COMMON_TARGET && npx prisma generate
26
-
27
- for TARGET in "${TARGETS[@]}"; do
28
- rm -rf "$TARGET/$NODE_MODULES_PATH"
29
- mkdir -p "$TARGET/$NODE_MODULES_PATH"
30
-
31
- ln -s "$BASH_COMMON_TARGET" "$TARGET/$NODE_MODULES_PATH"
32
- cd $TARGET && cp -rf "./$NODE_MODULES_PATH/bash-common/prisma" . && npm run generate
33
- done
package/tsconfig.json DELETED
@@ -1,19 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "es2022",
4
- "module": "esnext",
5
- "moduleResolution": "node",
6
- "esModuleInterop": true,
7
- "noEmit": true,
8
- "outDir": "./dist",
9
- "rootDir": "./src",
10
- "strict": true,
11
- "skipLibCheck": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "jsx": "react-jsx",
14
- "noImplicitAny": true,
15
- "sourceMap": true
16
- },
17
- "include": ["src/**/*.ts", "src/**/*.tsx", "src/types/**/*.d.ts"],
18
- "exclude": ["node_modules"]
19
- }