@penskemediacorp/twig-to-php-parser 1.57.0 → 1.58.0

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.
@@ -23,14 +23,14 @@ const patternShortPaths = [
23
23
  ];
24
24
 
25
25
  describe( 'twig to php parser', function () {
26
- beforeEach( ( done ) => {
26
+ beforeAll( ( done ) => {
27
27
  exec( 'mkdir ' + appConfiguration.phpDir, ( err ) => {
28
28
  if ( err ) {
29
29
  console.error( err );
30
30
  }
31
31
  } );
32
32
 
33
- return twigToPhpParser( appConfiguration )
33
+ twigToPhpParser( appConfiguration )
34
34
  .catch( ( e ) => console.log( e ) )
35
35
  .then( ( result ) => done() ); // Catch PHP errors.
36
36
  } );
@@ -69,11 +69,12 @@ describe( 'twig to php parser', function () {
69
69
  done();
70
70
  } );
71
71
 
72
- afterEach( () => {
72
+ afterAll( ( done ) => {
73
73
  exec( 'rm -r ' + appConfiguration.phpDir, ( err ) => {
74
74
  if ( err ) {
75
75
  console.error( err );
76
76
  }
77
77
  } );
78
+ done();
78
79
  } );
79
80
  } );
package/index.js CHANGED
@@ -41,6 +41,8 @@ function twigToPhpParser( config = {} ) {
41
41
  phpDir = config.phpDir;
42
42
  }
43
43
 
44
+ console.log( 'JIMBO IN PARSER', twigDir, phpDir );
45
+
44
46
  return new Promise( ( resolve, reject ) => {
45
47
  execPhp(
46
48
  path.resolve( __dirname, './lib/twig-to-php-parser.php' ),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@penskemediacorp/twig-to-php-parser",
3
- "version": "1.57.0",
3
+ "version": "1.58.0",
4
4
  "description": "> TODO: description",
5
5
  "author": "laras126 <laras126@gmail.com>",
6
6
  "homepage": "https://github.com/penske-media-corp/pmc-larva#readme",
@@ -23,8 +23,8 @@
23
23
  "url": "https://github.com/penske-media-corp/pmc-larva/issues"
24
24
  },
25
25
  "dependencies": {
26
- "chalk": "^4.1.0",
27
- "exec-php": "0.0.5"
26
+ "chalk": "^4",
27
+ "exec-php": "^0"
28
28
  },
29
- "gitHead": "5a9cc67202c4184771a25319cad0fc467684c843"
29
+ "gitHead": "a81f2cd6dbdb66655e0330f53551ff81772f35d5"
30
30
  }