@bash-app/bash-common 1.0.1 → 1.0.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,11 +1,12 @@
1
1
  {
2
2
  "name": "@bash-app/bash-common",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Common data and scripts to use on the frontend and backend",
5
5
  "scripts": {
6
6
  "generate": "prisma generate",
7
7
  "tsc": "tsc",
8
- "postinstall": "ts-node ./src/postinstall.ts"
8
+ "postinstall": "ts-node ./src/postinstall.ts",
9
+ "prepublishOnly": "npm run tsc"
9
10
  },
10
11
  "repository": {
11
12
  "type": "git",
@@ -2,7 +2,10 @@ import fs from 'node:fs/promises';
2
2
 
3
3
  async function copyPrisma(): Promise<void> {
4
4
  try {
5
- const copied = await fs.cp('./prisma', 'prisma', {
5
+ const cwd = process.cwd();
6
+ const filePath = `${cwd}/prisma`;
7
+ console.log(`Copying local prisma folder to root of project: ${filePath}`);
8
+ const copied = await fs.cp('./prisma', filePath, {
6
9
  recursive: true
7
10
  });
8
11
  }