dceky 1.0.4-beta.new-divided-export.4 → 1.0.4-beta.new-divided-export.6

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.
@@ -18,8 +18,11 @@ var genE2ELaunchFile = function () {
18
18
  var launchFile = [
19
19
  '// Auto-generated by dceky - do not edit manually',
20
20
  '',
21
- 'import \'dceky\';',
21
+ 'import commands from \'dceky\';',
22
22
  'import \'../commands\';',
23
+ '',
24
+ 'commands();',
25
+ '',
23
26
  ].join('\n');
24
27
  // Write the configuration file directly
25
28
  fs_1.default.writeFileSync(outputFile, launchFile, 'utf8');
@@ -1 +1 @@
1
- {"version":3,"file":"genE2ELaunchFile.js","sourceRoot":"","sources":["../../setup/genE2ELaunchFile.ts"],"names":[],"mappings":";;;;;AAAA,0CAAoB;AACpB,8CAAwB;AACxB,sEAAgD;AAEhD;;;;GAIG;AACH,IAAM,gBAAgB,GAAG;IACvB,IAAM,IAAI,GAAG,IAAA,qBAAW,GAAE,CAAC;IAE3B,IAAM,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC;IAE9D,wCAAwC;IACxC,IAAM,UAAU,GAAG;QACjB,mDAAmD;QACnD,EAAE;QACF,mBAAmB;QACnB,yBAAyB;KAC1B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEb,wCAAwC;IACxC,YAAE,CAAC,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAEjD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
1
+ {"version":3,"file":"genE2ELaunchFile.js","sourceRoot":"","sources":["../../setup/genE2ELaunchFile.ts"],"names":[],"mappings":";;;;;AAAA,0CAAoB;AACpB,8CAAwB;AACxB,sEAAgD;AAEhD;;;;GAIG;AACH,IAAM,gBAAgB,GAAG;IACvB,IAAM,IAAI,GAAG,IAAA,qBAAW,GAAE,CAAC;IAE3B,IAAM,UAAU,GAAG,cAAI,CAAC,IAAI,CAAC,IAAI,EAAE,yBAAyB,CAAC,CAAC;IAE9D,wCAAwC;IACxC,IAAM,UAAU,GAAG;QACjB,mDAAmD;QACnD,EAAE;QACF,iCAAiC;QACjC,yBAAyB;QACzB,EAAE;QACF,aAAa;QACb,EAAE;KACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEb,wCAAwC;IACxC,YAAE,CAAC,aAAa,CAAC,UAAU,EAAE,UAAU,EAAE,MAAM,CAAC,CAAC;IAEjD,OAAO,UAAU,CAAC;AACpB,CAAC,CAAC;AAEF,kBAAe,gBAAgB,CAAC"}
@@ -1,6 +1,2 @@
1
- /**
2
- * Dummy function to make sure this file doesn't get pruned
3
- * @author Gabe Abrams
4
- */
5
- declare const index: () => never;
6
- export default index;
1
+ import commands from './commands';
2
+ export default commands;
package/lib/src/index.js CHANGED
@@ -5,14 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  // Import helpers
7
7
  var commands_1 = __importDefault(require("./commands"));
8
- // Initialize commands upon import
8
+ // Initialize commands
9
9
  (0, commands_1.default)();
10
- /**
11
- * Dummy function to make sure this file doesn't get pruned
12
- * @author Gabe Abrams
13
- */
14
- var index = function () {
15
- throw new Error('You don\'t need to call dceky\'s main export. Initialization automatically occurs');
16
- };
17
- exports.default = index;
10
+ exports.default = commands_1.default;
18
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,iBAAiB;AACjB,wDAAkC;AAElC,kCAAkC;AAClC,IAAA,kBAAQ,GAAE,CAAC;AAEX;;;GAGG;AACH,IAAM,KAAK,GAAG;IACZ,MAAM,IAAI,KAAK,CAAC,mFAAmF,CAAC,CAAC;AACvG,CAAC,CAAC;AAEF,kBAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;AAAA,iBAAiB;AACjB,wDAAkC;AAElC,sBAAsB;AACtB,IAAA,kBAAQ,GAAE,CAAC;AAEX,kBAAe,kBAAQ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dceky",
3
- "version": "1.0.4-beta.new-divided-export.4",
3
+ "version": "1.0.4-beta.new-divided-export.6",
4
4
  "description": "Cypress toolkit for Harvard DCE",
5
5
  "main": "./lib/src/index.js",
6
6
  "types": "./lib/src/index.d.ts",
@@ -16,8 +16,11 @@ const genE2ELaunchFile = (): string => {
16
16
  const launchFile = [
17
17
  '// Auto-generated by dceky - do not edit manually',
18
18
  '',
19
- 'import \'dceky\';',
19
+ 'import commands from \'dceky\';',
20
20
  'import \'../commands\';',
21
+ '',
22
+ 'commands();',
23
+ '',
21
24
  ].join('\n');
22
25
 
23
26
  // Write the configuration file directly
package/src/index.ts CHANGED
@@ -1,15 +1,7 @@
1
1
  // Import helpers
2
2
  import commands from './commands';
3
3
 
4
- // Initialize commands upon import
4
+ // Initialize commands
5
5
  commands();
6
6
 
7
- /**
8
- * Dummy function to make sure this file doesn't get pruned
9
- * @author Gabe Abrams
10
- */
11
- const index = () => {
12
- throw new Error('You don\'t need to call dceky\'s main export. Initialization automatically occurs');
13
- };
14
-
15
- export default index;
7
+ export default commands;