chore: release sccript changes

This commit is contained in:
Nishchit14
2023-04-24 09:26:31 +00:00
parent 8c5da0b7d3
commit cbfa73b52e
2 changed files with 1 additions and 24 deletions

View File

@@ -12,19 +12,8 @@
"start": "npx webpack serve --config ./webpack.dev.js", "start": "npx webpack serve --config ./webpack.dev.js",
"dev": "APP_VERSION=$npm_package_version AppFormat=webapp && node scripts/build && pnpm build:workspace && pnpm start", "dev": "APP_VERSION=$npm_package_version AppFormat=webapp && node scripts/build && pnpm build:workspace && pnpm start",
"electron": "npx electron .", "electron": "npx electron .",
"release:web": "AppFormat=webapp && node scripts/release production", "release:web": "AppFormat=webapp && pnpm build:workspace && node scripts/release",
"release:web:staging": "AppFormat=webapp && pnpm build:workspace && node scripts/release staging",
"release:prod:mac-dmg": "AppFormat=dmg && node scripts/release production p",
"release:prod:linux-appImage": "AppFormat=appImage && node scripts/release production",
"release:prod:linux-snap": "AppFormat=snap scripts/release production p",
"release:prod:win32-nsis": "AppFormat=nsis && node scripts/release production p",
"release:canary:mac-dmg": "AppFormat=dmg && node scripts/release canary p",
"release:canary:linux-appImage": "AppFormat=appImage && node scripts/release canary p",
"release:canary:win32-nsis": "AppFormat=nsis && node scripts/release canary p",
"clean": "rimraf build/ development/ *.zip* .crx",
"lint": "eslint packages/firecamp-rest/src/**/*.{ts|tsx} packages/*.js packages-clients/*.js scripts webpack/*.js", "lint": "eslint packages/firecamp-rest/src/**/*.{ts|tsx} packages/*.js packages-clients/*.js scripts webpack/*.js",
"test-e2e": "cross-env NODE_ENV=test mocha -r ./test/setup-app test/e2e",
"_test": "cross-env NODE_ENV=test mocha -r ./test/setup-app test/app",
"test": "jest", "test": "jest",
"prettify": "prettier --write \"platform/firecamp-platform/src/**/*.(ts|tsx)\" \"packages/firecamp-rest/src/**/*.(ts|tsx)\" \"packages/firecamp-graphql/src/**/*.(ts|tsx)\"", "prettify": "prettier --write \"platform/firecamp-platform/src/**/*.(ts|tsx)\" \"packages/firecamp-rest/src/**/*.(ts|tsx)\" \"packages/firecamp-graphql/src/**/*.(ts|tsx)\"",
"precommit": "lint-staged", "precommit": "lint-staged",

View File

@@ -14,18 +14,6 @@ module.exports = async () => {
const buildPath = path.join(`${__dirname}/../build/${env}`); const buildPath = path.join(`${__dirname}/../build/${env}`);
// copy project assets and generate config. // copy project assets and generate config.
const directoryPaths = [path.join(`${__dirname}/../build`), buildPath]; const directoryPaths = [path.join(`${__dirname}/../build`), buildPath];
if (env === Environment.Development) {
directoryPaths.push(
path.join(`${__dirname}/../build/${env}/build-scripts`)
);
}
if (env === Environment.Production) {
directoryPaths.push(
path.join(`${__dirname}/../build/${env}/build-scripts`),
path.join(`${__dirname}/../build/${env}/services`),
path.join(`${__dirname}/../build/${env}/packages-executors`)
);
}
// Remove build before start bundle // Remove build before start bundle
rm('-rf', buildPath); rm('-rf', buildPath);