Skip to content

Commit

Permalink
2.0.2-alpha.6
Browse files Browse the repository at this point in the history
  • Loading branch information
mohamedmagdy17593 committed Dec 17, 2023
1 parent 40223a4 commit d420654
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@incorta-org/create-incorta-component",
"description": "Generate a new incorta component",
"main": "index.js",
"version": "2.0.2-alpha.5",
"version": "2.0.2-alpha.6",
"repository": "[email protected]:Incorta/create-incorta-component.git",
"license": "MIT",
"private": false,
Expand Down
4 changes: 3 additions & 1 deletion scripts/package/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,10 @@ function zipDirectory(source, out) {

const createBuildPackage = async () => {
try {
let vitePath = require.resolve('vite');
let viteBinPath = path.join(vitePath, '../..', '.bin', 'vite');
let configFilePath = path.resolve(__dirname, './vite-config-prod.js');
shelljs.exec(`npx vite build --config "${configFilePath}"`);
shelljs.exec(`${viteBinPath} build --config "${configFilePath}"`);

console.log(chalk.gray('Compressing bundle...'));
let distPath = resolvePath('dist');
Expand Down

0 comments on commit d420654

Please sign in to comment.