-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
144 additions
and
1,225 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,39 @@ | ||
.editorconfig | ||
.env | ||
.env.example | ||
.env.staging | ||
.git | ||
.github | ||
.nx | ||
.vscode | ||
.workspace.code-workspace | ||
app | ||
apps/landing/.next | ||
dist | ||
logs | ||
node_modules | ||
npm-debug.log | ||
test-results | ||
tmp | ||
yarn-error.log | ||
# ignore everything | ||
* | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
# Include directories | ||
!/apps/api | ||
!/apps/jetstream | ||
!/apps/landing | ||
!/custom-typings | ||
!/libs | ||
!/migrations | ||
!/prisma | ||
!/scripts | ||
|
||
# Generated Docusaurus files | ||
.docusaurus/ | ||
.cache-loader/ | ||
# Include specific files | ||
!/yarn.lock | ||
!/.eslintrc.json | ||
!/.gitignore | ||
!/babel.config.json | ||
!/Dockerfile | ||
!/formulon.d.ts | ||
!/LICENSE.md | ||
!/next-sitemap.config.js | ||
!/nx.json | ||
!/package.json | ||
!/README.md | ||
!/schema.prisma | ||
!/seed-salesforce-api.ts | ||
!/seed.sh | ||
!/tsconfig.base.json | ||
!/webpack-server.config.js | ||
!/webpack-sw.config.js | ||
|
||
# Next.js | ||
.next | ||
|
||
# Playwright | ||
**/test-results | ||
**/playwright-report | ||
**/playwright/.cache | ||
.nx | ||
|
||
# Not required for core jetstream | ||
apps/cron-tasks | ||
apps/docs | ||
apps/jetstream-e2e | ||
# Ignore unnecessary files inside allowed directories | ||
*# | ||
*~ | ||
.DS_Store | ||
Thumbs.db | ||
**/*~ | ||
**/*.log | ||
**/.DS_Store | ||
**/Thumbs.db | ||
|
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 |
---|---|---|
|
@@ -52,6 +52,7 @@ | |
"build:storybook": "storybook build -c libs/ui/.storybook -o dist/storybook -s node_modules/@salesforce-ux/design-system/assets/styles", | ||
"build:web-extension:dev": "nx run jetstream-web-extension:build --configuration=development", | ||
"build:web-extension": "nx run jetstream-web-extension:build", | ||
"scripts:replace-deps": "node ./scripts/replace-package-deps.mjs", | ||
"release": "dotenv release-it ${0}", | ||
"release:build": "zx ./scripts/build-release.mjs", | ||
"release:web-extension": "dotenv -- release-it --config .release-it-web-ext.json", | ||
|
@@ -62,8 +63,8 @@ | |
"generate:data-table-css": "nx workspace-generator convert-sass-to-css ui --filename /src/lib/data-table/data-table-styles.scss", | ||
"generate:version": "zx ./scripts/generate-version.mjs", | ||
"db:generate": "prisma generate", | ||
"db:migrate": "prisma migrate deploy", | ||
"db:seed": "chmod +x prisma/seed.sh && prisma db seed", | ||
"db:migrate": "npx --yes prisma migrate deploy", | ||
"db:seed": "chmod +x prisma/seed.sh && npx --yes prisma db seed", | ||
"icons:build": "npm-run-all icons:build:*", | ||
"icons:build:action": "npx @svgr/[email protected] --config-file .svgo-config.json -d ./libs/icon-factory/src/lib/icons/action ./node_modules/@salesforce-ux/design-system/assets/icons/action", | ||
"icons:build:custom": "npx @svgr/[email protected] --config-file .svgo-config.json -d ./libs/icon-factory/src/lib/icons/custom ./node_modules/@salesforce-ux/design-system/assets/icons/custom", | ||
|
@@ -87,7 +88,7 @@ | |
}, | ||
"private": true, | ||
"prisma": { | ||
"seed": "ts-node prisma/seed-salesforce-api.ts" | ||
"seed": "node prisma/seed-salesforce-api.mjs" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.24.4", | ||
|
File renamed without changes.
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,37 @@ | ||
import fs from 'fs-extra'; | ||
import path from 'path'; | ||
|
||
async function replaceDependencies() { | ||
try { | ||
// Define the paths to the package.json files | ||
const rootPackageJsonPath = path.resolve('package.json'); | ||
const distPackageJsonPath = path.resolve('dist/apps/api/package.json'); | ||
|
||
// Read the package.json files | ||
const [rootPackageJsonData, distPackageJsonData] = await Promise.all([ | ||
fs.readFile(rootPackageJsonPath, 'utf-8'), | ||
fs.readFile(distPackageJsonPath, 'utf-8'), | ||
]); | ||
|
||
// Parse the JSON data | ||
const rootPackageJson = JSON.parse(rootPackageJsonData); | ||
const distPackageJson = JSON.parse(distPackageJsonData); | ||
|
||
const xlsx = rootPackageJson.dependencies.xlsx; | ||
|
||
// Replace the dependencies and devDependencies | ||
rootPackageJson.dependencies = distPackageJson.dependencies; | ||
rootPackageJson.dependencies.xlsx = xlsx; | ||
rootPackageJson.devDependencies = {}; | ||
|
||
// Write the updated package.json back to the root package.json file | ||
await fs.writeFile(rootPackageJsonPath, JSON.stringify(rootPackageJson, null, 2), 'utf-8'); | ||
|
||
console.log('Dependencies successfully replaced in package.json'); | ||
} catch (error) { | ||
console.error('Error replacing dependencies:', error); | ||
} | ||
} | ||
|
||
// Run the function | ||
replaceDependencies(); |
Oops, something went wrong.