@tangelo/tangelo-configuration-toolkit 1.9.2 → 1.9.3

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangelo/tangelo-configuration-toolkit",
3
- "version": "1.9.2",
3
+ "version": "1.9.3",
4
4
  "description": "Tangelo Configuration Toolkit is a command-line toolkit which offers support for developing a Tangelo configuration.",
5
5
  "bin": {
6
6
  "tct": "bin/index.js",
@@ -1,3 +1,4 @@
1
+ const babel_pe = require('@babel/preset-env');
1
2
  const execGitCommand = require('../../lib/exec-git-command');
2
3
  const fs = require('fs-extra');
3
4
  const globby = require('globby');
@@ -6,7 +7,7 @@ const {NodeSSH} = require('node-ssh');
6
7
  const through2 = require('through2');
7
8
  const {spawnSync} = require('child_process');
8
9
 
9
- const g_babel = require('gulp-babel')({presets: [[require('@babel/preset-env'), {modules: false}]], comments: false, minified: true});
10
+ const g_babel = require('gulp-babel');
10
11
  const g_eol = require('gulp-eol');
11
12
  const g_filter = require('gulp-filter');
12
13
  const g_plumber = require('gulp-plumber');
@@ -155,7 +156,7 @@ const transfer = (paths, lrServer) => {
155
156
  .pipe(xpsF.restore)
156
157
  .pipe(jsF)
157
158
  .pipe(g_sourcemaps.init())
158
- .pipe(g_babel)
159
+ .pipe(g_babel({presets: [[babel_pe, {modules: false}]], comments: false, minified: true})) // function must be executed here, otherwise second execution during watch fails
159
160
  .pipe(g_sourcemaps.write('.'))
160
161
  .pipe(jsF.restore)
161
162
  .pipe(sassF)