Skip to content

Commit

Permalink
fix(build): fix build again (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
allardy authored Jun 2, 2021
1 parent 994ad1f commit ffc36af
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@botpress/studio",
"version": "0.0.11",
"version": "0.0.12",
"description": "Create your virtual assistants",
"main": "index.js",
"bin": "./packages/studio-be/out/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/native-extensions/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"module": "commonjs",
"target": "es2019",
"baseUrl": "./src",
"outDir": "../out",
"outDir": "./out",
"typeRoots": ["../../node_modules/@types"],
"types": ["@types/node"]
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/gulp.studio.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
require('bluebird-global')
const gulp = require('gulp')
const exec = require('child_process').exec
const rimraf = require('gulp-rimraf')
Expand Down Expand Up @@ -69,10 +70,9 @@ const package = async () => {
const version = require(path.join(__dirname, '../package.json')).version.replace(/\./g, '_')

try {
await Promise.fromCallback(cb => exec('yarn', { cwd: './packages/studio-be' }, cb))
const cmd = `cross-env pkg --targets node12-win32-x64,node12-linux-x64,node12-macos-x64 --output ./binaries/studio ./package.json`

// Executing twice because for an unknown reason, the first time native extensions are not included
await execAsync(cmd)
await execAsync(cmd)

await fse.rename('./binaries/studio-win.exe', `./binaries/studio-v${version}-win-x64.exe`)
Expand Down

0 comments on commit ffc36af

Please sign in to comment.