@suffolklitlab/alkiln 5.0.0-experimental6 → 5.0.0-hotfixupload11

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.
Files changed (2) hide show
  1. package/lib/scope.js +31 -1
  2. package/package.json +1 -1
package/lib/scope.js CHANGED
@@ -1794,8 +1794,38 @@ module.exports = {
1794
1794
  return false;
1795
1795
  }
1796
1796
 
1797
+ // `**/docassemble/**/data/sources`
1797
1798
  // `/usr/share/docassemble/files/playgroundsources/${session_vars.get_user_id()}/${session_vars.get_user_project_name()}/*.feature`);
1798
1799
  // `/tmp/playgroundsources/${session_vars.get_user_id()}/${session_vars.get_user_project_name()}/*.feature`);
1800
+ // MUST have proj name for right upload files
1801
+
1802
+ let dirs_playground = fg.sync(
1803
+ [ `/usr/share/docassemble/files/playgroundsources/**/data/sources` ],
1804
+ { onlyFiles: false, suppressErrors: true }
1805
+ );
1806
+ console.log(`\n=== dirs_playground ===`);
1807
+ console.log(dirs_playground);
1808
+
1809
+ let dirs_playground_all = fg.sync(
1810
+ [ `/usr/share/docassemble/**/data/sources` ],
1811
+ { onlyFiles: false, suppressErrors: true }
1812
+ );
1813
+ console.log(`\n=== dirs_playground_all ===`);
1814
+ console.log(dirs_playground_all);
1815
+
1816
+ let dirs_s3 = fg.sync(
1817
+ [ `/tmp/playgroundsources/**/data/sources` ],
1818
+ { onlyFiles: false, suppressErrors: true }
1819
+ );
1820
+ console.log(`\n=== dirs_s3 ===`);
1821
+ console.log(dirs_s3);
1822
+
1823
+ let dirs_repo = fg.sync(
1824
+ [ `${ process.cwd() }/**/docassemble/**/data/sources` ],
1825
+ { onlyFiles: false, suppressErrors: true }
1826
+ );
1827
+ console.log(`\n=== dirs_repo ===`);
1828
+ console.log(dirs_repo);
1799
1829
 
1800
1830
  // Make sure sources directory exists
1801
1831
  let dirs = fg.sync([ `${ process.cwd() }/**/docassemble/**/data/sources` ], { onlyFiles: false });
@@ -1815,7 +1845,7 @@ module.exports = {
1815
1845
  let matching_paths = [];
1816
1846
  if ( dir === null ) {
1817
1847
  for ( let one_dir of dirs ) {
1818
- console.log( one_dir );
1848
+ // console.log( one_dir );
1819
1849
  matching_paths = fg.sync([ `${ one_dir }/${ trimmed_name }` ]);
1820
1850
  if ( matching_paths.length > 0 ) {
1821
1851
  dir = one_dir;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@suffolklitlab/alkiln",
3
- "version": "5.0.0-experimental6",
3
+ "version": "5.0.0-hotfixupload11",
4
4
  "description": "Integrated automated end-to-end testing with docassemble, puppeteer, and cucumber.",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {