@griddo/cx 1.49.41 → 1.51.1

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,15 +1,21 @@
1
1
  {
2
2
  "name": "@griddo/cx",
3
3
  "description": "Griddo SSG based on Gatsby",
4
- "version": "1.49.41",
4
+ "version": "1.51.1",
5
5
  "authors": [
6
+ "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
7
+ "Carlos Torres <carlos.torres@secuoyas.com>",
6
8
  "Diego Béjar <diego.bejar@secuoyas.com>",
7
9
  "Francis Vega <francis.vega@secuoyas.com>",
8
10
  "Gonzalo Hernández <gonzalo.hernandez@secuoyas.com>",
9
- "Maria Badanina <maria.badanina@secuoyas.com>",
10
11
  "Sergio Ródenas <sergio.rodenas@secuoyas.com>",
11
12
  "Txema León <txema.leon@secuoyas.com>"
12
13
  ],
14
+ "homepage": "https://griddo.io",
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "https://github.com/griddo/griddo"
18
+ },
13
19
  "bin": {
14
20
  "griddo-cx": "./scripts/griddo-exporter.js"
15
21
  },
@@ -57,10 +63,6 @@
57
63
  "devDependencies": {
58
64
  "prettier": "2.0.4"
59
65
  },
60
- "repository": {
61
- "type": "git",
62
- "url": "https://bitbucket.org/secuoyas/griddo-cx/src"
63
- },
64
66
  "files": [
65
67
  ".babelrc",
66
68
  "gatsby-browser.js",
@@ -79,5 +81,5 @@
79
81
  "publishConfig": {
80
82
  "access": "public"
81
83
  },
82
- "gitHead": "28f0fbda3f3770c971f083f98b69988a6ca6448b"
84
+ "gitHead": "db3b9481ca1ef33aad641cf6b693356055e9dedc"
83
85
  }
@@ -20,7 +20,7 @@ try {
20
20
 
21
21
  console.log(chalk.yellow(' Your sites are being exported'));
22
22
 
23
- const buildCommand = execSync('IS_COMPONENT_LIBRARY=true npm run build', {
23
+ execSync('npm run build', {
24
24
  cwd: workingDirPath,
25
25
  stdio: 'inherit',
26
26
  shell: true,
@@ -66,7 +66,8 @@ try {
66
66
  chalk.green(` Your sites are ready to deploy at ${destDirPath}`)
67
67
  );
68
68
  console.log();
69
- } catch (error) {
70
- console.log(error.message);
71
- console.log('error', error?.stdout?.toString());
69
+ } catch (err) {
70
+ console.log(chalk.red('ERROR'), err?.stdout?.toString());
71
+ console.log(chalk.red('ERROR'), err.message);
72
+ process.exit(1);
72
73
  }
@@ -4,12 +4,12 @@ const findUp = require('find-up');
4
4
 
5
5
  const pkgDir = require('pkg-dir');
6
6
 
7
- const isComponentLibraryEnv = process.env.IS_COMPONENT_LIBRARY || false;
7
+ const isComponentLibraryEnv = __dirname.includes('node_modules');
8
8
 
9
9
  const resolveComponentsPath = (customPath = '') =>
10
10
  isComponentLibraryEnv
11
11
  ? path.resolve(pkgDir.sync(__dirname), '../../../', customPath)
12
- : path.resolve(pkgDir.sync(__dirname), '../../components', customPath);
12
+ : path.resolve(pkgDir.sync(__dirname), '../griddo-components', customPath);
13
13
 
14
14
  const getComponentsJSConfig = () => {
15
15
  const jsConfigPath = findUp.sync('jsconfig.json', {