@lynxwall/cucumber-tsflow 7.1.2 → 7.3.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.
Files changed (117) hide show
  1. package/README.md +154 -61
  2. package/lib/api/convert-configuration.d.ts +7 -0
  3. package/lib/api/convert-configuration.js +65 -0
  4. package/lib/api/convert-configuration.js.map +1 -0
  5. package/lib/api/index.d.ts +1 -0
  6. package/lib/api/index.js +1 -0
  7. package/lib/api/index.js.map +1 -1
  8. package/lib/api/load-configuration.d.ts +3 -2
  9. package/lib/api/load-configuration.js +78 -18
  10. package/lib/api/load-configuration.js.map +1 -1
  11. package/lib/api/run-cucumber.d.ts +5 -1
  12. package/lib/api/run-cucumber.js +12 -0
  13. package/lib/api/run-cucumber.js.map +1 -1
  14. package/lib/api/wrapper.mjs +1 -0
  15. package/lib/bindings/binding-context.d.ts +54 -3
  16. package/lib/bindings/binding-context.js +80 -5
  17. package/lib/bindings/binding-context.js.map +1 -1
  18. package/lib/bindings/binding-decorator.js +85 -36
  19. package/lib/bindings/binding-decorator.js.map +1 -1
  20. package/lib/bindings/binding-registry.js +10 -0
  21. package/lib/bindings/binding-registry.js.map +1 -1
  22. package/lib/bindings/hook-decorators.js +44 -19
  23. package/lib/bindings/hook-decorators.js.map +1 -1
  24. package/lib/bindings/step-decorators.js +120 -51
  25. package/lib/bindings/step-decorators.js.map +1 -1
  26. package/lib/bindings/types.js.map +1 -1
  27. package/lib/cli/argv-parser.d.ts +1 -0
  28. package/lib/cli/argv-parser.js +2 -2
  29. package/lib/cli/argv-parser.js.map +1 -1
  30. package/lib/cli/index.js +1 -4
  31. package/lib/cli/index.js.map +1 -1
  32. package/lib/runtime/make-runtime.d.ts +3 -2
  33. package/lib/runtime/make-runtime.js.map +1 -1
  34. package/lib/runtime/message-collector.d.ts +1 -1
  35. package/lib/runtime/message-collector.js.map +1 -1
  36. package/lib/runtime/parallel/adapter.d.ts +3 -2
  37. package/lib/runtime/parallel/adapter.js +2 -1
  38. package/lib/runtime/parallel/adapter.js.map +1 -1
  39. package/lib/runtime/parallel/run-worker.js +3 -2
  40. package/lib/runtime/parallel/run-worker.js.map +1 -1
  41. package/lib/runtime/parallel/worker.d.ts +3 -2
  42. package/lib/runtime/parallel/worker.js +4 -2
  43. package/lib/runtime/parallel/worker.js.map +1 -1
  44. package/lib/runtime/test-case-runner.d.ts +2 -1
  45. package/lib/runtime/test-case-runner.js +8 -5
  46. package/lib/runtime/test-case-runner.js.map +1 -1
  47. package/lib/runtime/{parallel/types.d.ts → types.d.ts} +12 -1
  48. package/lib/runtime/types.js.map +1 -0
  49. package/lib/transpilers/esbuild-transpiler.d.ts +1 -1
  50. package/lib/transpilers/esbuild-transpiler.js.map +1 -1
  51. package/lib/transpilers/esbuild.js +18 -1
  52. package/lib/transpilers/esbuild.js.map +1 -1
  53. package/lib/transpilers/esm/esbuild-transpiler-cjs.js +2174 -0
  54. package/lib/transpilers/esm/esbuild-transpiler.mjs +19 -0
  55. package/lib/transpilers/esm/esbuild.mjs +141 -0
  56. package/lib/transpilers/esm/esmbuild-transpiler.d.ts +4 -0
  57. package/lib/transpilers/esm/esmbuild-transpiler.js +19 -0
  58. package/lib/transpilers/esm/esmbuild-transpiler.js.map +1 -0
  59. package/lib/transpilers/esm/esmbuild.d.ts +12 -0
  60. package/lib/transpilers/esm/esmbuild.js +72 -0
  61. package/lib/transpilers/esm/esmbuild.js.map +1 -0
  62. package/lib/transpilers/esm/esmnode.js +8 -0
  63. package/lib/transpilers/esm/esmnode.js.map +1 -0
  64. package/lib/transpilers/esm/esmvue.js +29 -0
  65. package/lib/transpilers/esm/esmvue.js.map +1 -0
  66. package/lib/transpilers/esm/esnode-loader.mjs +9 -0
  67. package/lib/transpilers/esm/esvue-loader.mjs +9 -0
  68. package/lib/transpilers/esm/loader-utils.mjs +278 -0
  69. package/lib/transpilers/esm/tsnode-esm.js +25 -0
  70. package/lib/transpilers/esm/tsnode-esm.js.map +1 -0
  71. package/lib/{esnode.js → transpilers/esm/tsnode-exp-esm.js} +8 -6
  72. package/lib/transpilers/esm/tsnode-exp-esm.js.map +1 -0
  73. package/lib/transpilers/esm/tsnode-loader.mjs +107 -0
  74. package/lib/transpilers/esm/tsnode-service.mjs +40 -0
  75. package/lib/transpilers/esm/tsvue-esm.d.ts +1 -0
  76. package/lib/{tsvue.js → transpilers/esm/tsvue-esm.js} +8 -5
  77. package/lib/transpilers/esm/tsvue-esm.js.map +1 -0
  78. package/lib/transpilers/esm/tsvue-exp-esm.d.ts +1 -0
  79. package/lib/transpilers/esm/tsvue-exp-esm.js +40 -0
  80. package/lib/transpilers/esm/tsvue-exp-esm.js.map +1 -0
  81. package/lib/transpilers/esm/vue-jsdom-setup.mjs +19 -0
  82. package/lib/transpilers/esm/vue-loader.mjs +113 -0
  83. package/lib/transpilers/esm/vue-sfc-compiler.mjs +216 -0
  84. package/lib/transpilers/esnode.d.ts +1 -0
  85. package/lib/transpilers/esnode.js +8 -0
  86. package/lib/transpilers/esnode.js.map +1 -0
  87. package/lib/transpilers/esvue.d.ts +1 -0
  88. package/lib/transpilers/esvue.js +29 -0
  89. package/lib/transpilers/esvue.js.map +1 -0
  90. package/lib/transpilers/tsnode-exp.d.ts +1 -0
  91. package/lib/transpilers/tsnode-exp.js +19 -0
  92. package/lib/transpilers/tsnode-exp.js.map +1 -0
  93. package/lib/transpilers/tsnode.d.ts +1 -0
  94. package/lib/{tsnode.js → transpilers/tsnode.js} +5 -2
  95. package/lib/transpilers/tsnode.js.map +1 -0
  96. package/lib/transpilers/tsvue-exp.d.ts +1 -0
  97. package/lib/transpilers/tsvue-exp.js +40 -0
  98. package/lib/transpilers/tsvue-exp.js.map +1 -0
  99. package/lib/transpilers/tsvue.d.ts +1 -0
  100. package/lib/{esvue.js → transpilers/tsvue.js} +9 -7
  101. package/lib/transpilers/tsvue.js.map +1 -0
  102. package/lib/transpilers/vue-sfc/index.js.map +1 -1
  103. package/lib/tsconfig.node.tsbuildinfo +1 -1
  104. package/lib/version.d.ts +1 -1
  105. package/lib/version.js +1 -1
  106. package/lib/version.js.map +1 -1
  107. package/package.json +38 -25
  108. package/lib/esnode.js.map +0 -1
  109. package/lib/esvue.js.map +0 -1
  110. package/lib/runtime/parallel/types.js.map +0 -1
  111. package/lib/tsnode.js.map +0 -1
  112. package/lib/tsvue.js.map +0 -1
  113. /package/lib/runtime/{parallel/types.js → types.js} +0 -0
  114. /package/lib/{esnode.d.ts → transpilers/esm/esmnode.d.ts} +0 -0
  115. /package/lib/{esvue.d.ts → transpilers/esm/esmvue.d.ts} +0 -0
  116. /package/lib/{tsnode.d.ts → transpilers/esm/tsnode-esm.d.ts} +0 -0
  117. /package/lib/{tsvue.d.ts → transpilers/esm/tsnode-exp-esm.d.ts} +0 -0
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ require('ts-node-maintained').register({
4
+ compilerOptions: {
5
+ module: 'nodeNext',
6
+ target: 'es2022',
7
+ strict: true,
8
+ allowJs: true,
9
+ allowSyntheticDefaultImports: true,
10
+ esModuleInterop: true,
11
+ experimentalDecorators: true,
12
+ resolveJsonModule: true,
13
+ skipLibCheck: true,
14
+ lib: ['es2022']
15
+ },
16
+ transpileOnly: true
17
+ });
18
+ require('tsconfig-paths').register();
19
+ //# sourceMappingURL=tsnode-exp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsnode-exp.js","sourceRoot":"","sources":["../../src/transpilers/tsnode-exp.ts"],"names":[],"mappings":";;AAAA,OAAO,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC;IACtC,eAAe,EAAE;QAChB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;QACb,4BAA4B,EAAE,IAAI;QAClC,eAAe,EAAE,IAAI;QACrB,sBAAsB,EAAE,IAAI;QAC5B,iBAAiB,EAAE,IAAI;QACvB,YAAY,EAAE,IAAI;QAClB,GAAG,EAAE,CAAC,QAAQ,CAAC;KACf;IACD,aAAa,EAAE,IAAI;CACnB,CAAC,CAAC;AAEH,OAAO,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC","sourcesContent":["require('ts-node-maintained').register({\r\n\tcompilerOptions: {\r\n\t\tmodule: 'nodeNext',\r\n\t\ttarget: 'es2022',\r\n\t\tstrict: true,\r\n\t\tallowJs: true,\r\n\t\tallowSyntheticDefaultImports: true,\r\n\t\tesModuleInterop: true,\r\n\t\texperimentalDecorators: true,\r\n\t\tresolveJsonModule: true,\r\n\t\tskipLibCheck: true,\r\n\t\tlib: ['es2022']\r\n\t},\r\n\ttranspileOnly: true\r\n});\r\n\r\nrequire('tsconfig-paths').register();\r\n"]}
@@ -0,0 +1 @@
1
+ export {};
@@ -1,12 +1,15 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- require('ts-node').register({
3
+ require('ts-node-maintained').register({
4
4
  compilerOptions: {
5
5
  module: 'nodeNext',
6
6
  target: 'es2022',
7
7
  strict: true,
8
- resolveJsonModule: true,
8
+ allowJs: true,
9
+ allowSyntheticDefaultImports: true,
9
10
  esModuleInterop: true,
11
+ experimentalDecorators: false,
12
+ resolveJsonModule: true,
10
13
  skipLibCheck: true,
11
14
  lib: ['es2022', 'esnext.decorators']
12
15
  },
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsnode.js","sourceRoot":"","sources":["../../src/transpilers/tsnode.ts"],"names":[],"mappings":";;AAAA,OAAO,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC;IACtC,eAAe,EAAE;QAChB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;QACb,4BAA4B,EAAE,IAAI;QAClC,eAAe,EAAE,IAAI;QACrB,sBAAsB,EAAE,KAAK;QAC7B,iBAAiB,EAAE,IAAI;QACvB,YAAY,EAAE,IAAI;QAClB,GAAG,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAC;KACpC;IACD,aAAa,EAAE,IAAI;CACnB,CAAC,CAAC;AAEH,OAAO,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC","sourcesContent":["require('ts-node-maintained').register({\r\n\tcompilerOptions: {\r\n\t\tmodule: 'nodeNext',\r\n\t\ttarget: 'es2022',\r\n\t\tstrict: true,\r\n\t\tallowJs: true,\r\n\t\tallowSyntheticDefaultImports: true,\r\n\t\tesModuleInterop: true,\r\n\t\texperimentalDecorators: false,\r\n\t\tresolveJsonModule: true,\r\n\t\tskipLibCheck: true,\r\n\t\tlib: ['es2022', 'esnext.decorators']\r\n\t},\r\n\ttranspileOnly: true\r\n});\r\n\r\nrequire('tsconfig-paths').register();\r\n"]}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const hooks = require('require-extension-hooks');
7
+ const vue_sfc_1 = __importDefault(require("./vue-sfc"));
8
+ require('ts-node-maintained').register({
9
+ compilerOptions: {
10
+ module: 'nodeNext',
11
+ target: 'es2022',
12
+ strict: true,
13
+ allowJs: true,
14
+ allowSyntheticDefaultImports: true,
15
+ esModuleInterop: true,
16
+ experimentalDecorators: true,
17
+ resolveJsonModule: true,
18
+ skipLibCheck: true,
19
+ lib: ['es2022']
20
+ },
21
+ transpileOnly: true
22
+ });
23
+ require('tsconfig-paths').register();
24
+ // Register jsdom globally and set SVGElement on global
25
+ require('jsdom-global')();
26
+ global.SVGElement = global.window.SVGElement;
27
+ hooks('vue').push(function (params) {
28
+ try {
29
+ const transformer = new vue_sfc_1.default({
30
+ exclude: ['(?:^|/)node_modules/', '(?:^|/)cucumber-tsflow/lib/']
31
+ });
32
+ const transformResult = transformer.transformCode(params.content, params.filename);
33
+ return transformResult.code;
34
+ }
35
+ catch (err) {
36
+ console.log(err);
37
+ }
38
+ return params.content;
39
+ });
40
+ //# sourceMappingURL=tsvue-exp.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsvue-exp.js","sourceRoot":"","sources":["../../src/transpilers/tsvue-exp.ts"],"names":[],"mappings":";;;;;AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjD,wDAAuC;AAEvC,OAAO,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC;IACtC,eAAe,EAAE;QAChB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;QACb,4BAA4B,EAAE,IAAI;QAClC,eAAe,EAAE,IAAI;QACrB,sBAAsB,EAAE,IAAI;QAC5B,iBAAiB,EAAE,IAAI;QACvB,YAAY,EAAE,IAAI;QAClB,GAAG,EAAE,CAAC,QAAQ,CAAC;KACf;IACD,aAAa,EAAE,IAAI;CACnB,CAAC,CAAC;AAEH,OAAO,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAErC,uDAAuD;AACvD,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;AACzB,MAAc,CAAC,UAAU,GAAI,MAAc,CAAC,MAAM,CAAC,UAAU,CAAC;AAE/D,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,MAAW;IACtC,IAAI,CAAC;QACJ,MAAM,WAAW,GAAG,IAAI,iBAAc,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,EAAE,6BAA6B,CAAC;SAChE,CAAC,CAAC;QACH,MAAM,eAAe,GAAG,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;QAEnF,OAAO,eAAe,CAAC,IAAI,CAAC;IAC7B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAClB,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC;AACvB,CAAC,CAAC,CAAC","sourcesContent":["const hooks = require('require-extension-hooks');\r\nimport VueTransformer from './vue-sfc';\r\n\r\nrequire('ts-node-maintained').register({\r\n\tcompilerOptions: {\r\n\t\tmodule: 'nodeNext',\r\n\t\ttarget: 'es2022',\r\n\t\tstrict: true,\r\n\t\tallowJs: true,\r\n\t\tallowSyntheticDefaultImports: true,\r\n\t\tesModuleInterop: true,\r\n\t\texperimentalDecorators: true,\r\n\t\tresolveJsonModule: true,\r\n\t\tskipLibCheck: true,\r\n\t\tlib: ['es2022']\r\n\t},\r\n\ttranspileOnly: true\r\n});\r\n\r\nrequire('tsconfig-paths').register();\r\n\r\n// Register jsdom globally and set SVGElement on global\r\nrequire('jsdom-global')();\r\n(global as any).SVGElement = (global as any).window.SVGElement;\r\n\r\nhooks('vue').push(function (params: any) {\r\n\ttry {\r\n\t\tconst transformer = new VueTransformer({\r\n\t\t\texclude: ['(?:^|/)node_modules/', '(?:^|/)cucumber-tsflow/lib/']\r\n\t\t});\r\n\t\tconst transformResult = transformer.transformCode(params.content, params.filename);\r\n\r\n\t\treturn transformResult.code;\r\n\t} catch (err) {\r\n\t\tconsole.log(err);\r\n\t}\r\n\treturn params.content;\r\n});\r\n"]}
@@ -0,0 +1 @@
1
+ export {};
@@ -4,19 +4,21 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const hooks = require('require-extension-hooks');
7
- const vue_sfc_1 = __importDefault(require("./transpilers/vue-sfc"));
8
- require('ts-node').register({
7
+ const vue_sfc_1 = __importDefault(require("./vue-sfc"));
8
+ require('ts-node-maintained').register({
9
9
  compilerOptions: {
10
10
  module: 'nodeNext',
11
11
  target: 'es2022',
12
12
  strict: true,
13
- resolveJsonModule: true,
13
+ allowJs: true,
14
+ allowSyntheticDefaultImports: true,
14
15
  esModuleInterop: true,
16
+ experimentalDecorators: false,
17
+ resolveJsonModule: true,
15
18
  skipLibCheck: true,
16
19
  lib: ['es2022', 'esnext.decorators']
17
20
  },
18
- transpileOnly: true,
19
- transpiler: '@lynxwall/cucumber-tsflow/lib/transpilers/esbuild-transpiler'
21
+ transpileOnly: true
20
22
  });
21
23
  require('tsconfig-paths').register();
22
24
  // Register jsdom globally and set SVGElement on global
@@ -31,8 +33,8 @@ hooks('vue').push(function (params) {
31
33
  return transformResult.code;
32
34
  }
33
35
  catch (err) {
34
- console.log(err);
36
+ console.error(err);
35
37
  }
36
38
  return params.content;
37
39
  });
38
- //# sourceMappingURL=esvue.js.map
40
+ //# sourceMappingURL=tsvue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsvue.js","sourceRoot":"","sources":["../../src/transpilers/tsvue.ts"],"names":[],"mappings":";;;;;AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjD,wDAAuC;AAEvC,OAAO,CAAC,oBAAoB,CAAC,CAAC,QAAQ,CAAC;IACtC,eAAe,EAAE;QAChB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,OAAO,EAAE,IAAI;QACb,4BAA4B,EAAE,IAAI;QAClC,eAAe,EAAE,IAAI;QACrB,sBAAsB,EAAE,KAAK;QAC7B,iBAAiB,EAAE,IAAI;QACvB,YAAY,EAAE,IAAI;QAClB,GAAG,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAC;KACpC;IACD,aAAa,EAAE,IAAI;CACnB,CAAC,CAAC;AAEH,OAAO,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAErC,uDAAuD;AACvD,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;AACzB,MAAc,CAAC,UAAU,GAAI,MAAc,CAAC,MAAM,CAAC,UAAU,CAAC;AAE/D,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,MAAW;IACtC,IAAI,CAAC;QACJ,MAAM,WAAW,GAAG,IAAI,iBAAc,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,EAAE,6BAA6B,CAAC;SAChE,CAAC,CAAC;QACH,MAAM,eAAe,GAAG,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;QAEnF,OAAO,eAAe,CAAC,IAAI,CAAC;IAC7B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC;AACvB,CAAC,CAAC,CAAC","sourcesContent":["const hooks = require('require-extension-hooks');\r\nimport VueTransformer from './vue-sfc';\r\n\r\nrequire('ts-node-maintained').register({\r\n\tcompilerOptions: {\r\n\t\tmodule: 'nodeNext',\r\n\t\ttarget: 'es2022',\r\n\t\tstrict: true,\r\n\t\tallowJs: true,\r\n\t\tallowSyntheticDefaultImports: true,\r\n\t\tesModuleInterop: true,\r\n\t\texperimentalDecorators: false,\r\n\t\tresolveJsonModule: true,\r\n\t\tskipLibCheck: true,\r\n\t\tlib: ['es2022', 'esnext.decorators']\r\n\t},\r\n\ttranspileOnly: true\r\n});\r\n\r\nrequire('tsconfig-paths').register();\r\n\r\n// Register jsdom globally and set SVGElement on global\r\nrequire('jsdom-global')();\r\n(global as any).SVGElement = (global as any).window.SVGElement;\r\n\r\nhooks('vue').push(function (params: any) {\r\n\ttry {\r\n\t\tconst transformer = new VueTransformer({\r\n\t\t\texclude: ['(?:^|/)node_modules/', '(?:^|/)cucumber-tsflow/lib/']\r\n\t\t});\r\n\t\tconst transformResult = transformer.transformCode(params.content, params.filename);\r\n\r\n\t\treturn transformResult.code;\r\n\t} catch (err) {\r\n\t\tconsole.error(err);\r\n\t}\r\n\treturn params.content;\r\n});\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/transpilers/vue-sfc/index.ts"],"names":[],"mappings":";;;AAAA,qDAAmD;AAEnD,yCAA6C;AAC7C,yCAAgD;AAChD,iCAAuC;AAGvC,uCAA0D;AAAjD,wGAAA,eAAe,OAAA;AAExB,MAAM,cAAc;IACX,mBAAmB,CAA2B;IAC9C,OAAO,CAAkB;IACzB,KAAK,GAAG,CAAC,GAA4C,EAAE,EAAE,CAChE,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAEhF,YAAY,aAAsB,EAAE;QACnC,MAAM,EAAE,OAAO,GAAG,QAAQ,EAAE,OAAO,EAAE,aAAa,GAAG,YAAY,EAAE,mBAAmB,GAAG,KAAK,EAAE,GAAG,UAAU,CAAC;QAC9G,IAAI,CAAC,mBAAmB,GAAG,OAAO,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,IAAA,0BAAY,EAAC,aAAa,CAAC,CAAC;QAElH,MAAM,OAAO,GAAW,OAAO,CAAC,GAAG,EAAE,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG;YACd,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;YACnD,QAAQ,EAAE,IAAA,0BAAe,EAAC,OAAO,CAAC;YAClC,GAAG,UAAU;YACb,OAAO;YACP,OAAO;YACP,aAAa;YACb,mBAAmB;YACnB,IAAI,EAAE,OAAO;YACb,SAAS,EAAE,IAAI;SACf,CAAC;IACH,CAAC;IACM,KAAK,GAAG,CAAC,GAAyB,EAAE,GAA2D,EAAQ,EAAE,GAAE,CAAC,CAAC;IAC7G,OAAO,GAAG,CAAC,EAAU,EAAwB,EAAE;QACrD,qDAAqD;QACrD,IAAI,IAAA,uBAAe,EAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;YACnC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;QACpC,CAAC;QACD,OAAO,IAAI,CAAC;IACb,CAAC,CAAC;IAEK,IAAI,GAAG,CAAC,OAA2B,EAAE,GAA2D,EAAQ,EAAE,GAAE,CAAC,CAAC;IAE9G,aAAa,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAE;QACzD,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,MAAM,MAAM,GAAG,IAAA,oBAAa,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1G,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC1D,CAAC,CAAC;CACF;AAED,kBAAe,cAAc,CAAC","sourcesContent":["import { createFilter } from '@rollup/pluginutils';\r\nimport type { RollupError, RollupLog } from 'rollup';\r\nimport { resolveCompiler } from './compiler';\r\nimport { parseVueRequest } from './utils/query';\r\nimport { transformMain } from './main';\r\nimport type { Options, ResolvedOptions, VueTransformerContext, VueResolvedId } from './types';\r\n\r\nexport { parseVueRequest, VueQuery } from './utils/query';\r\n\r\nclass VueTransformer implements VueTransformerContext {\r\n\tprivate customElementFilter: (id: unknown) => boolean;\r\n\tprivate options: ResolvedOptions;\r\n\tprivate isSSR = (opt: { ssr?: boolean } | boolean | undefined) =>\r\n\t\topt === undefined ? false : typeof opt === 'boolean' ? opt : opt?.ssr === true;\r\n\r\n\tconstructor(rawOptions: Options = {}) {\r\n\t\tconst { include = /\\.vue$/, exclude, customElement = /\\.ce\\.vue$/, reactivityTransform = false } = rawOptions;\r\n\t\tthis.customElementFilter = typeof customElement === 'boolean' ? () => customElement : createFilter(customElement);\r\n\r\n\t\tconst rootDir: string = process.cwd();\r\n\t\tthis.options = {\r\n\t\t\tisProduction: process.env.NODE_ENV === 'production',\r\n\t\t\tcompiler: resolveCompiler(rootDir),\r\n\t\t\t...rawOptions,\r\n\t\t\tinclude,\r\n\t\t\texclude,\r\n\t\t\tcustomElement,\r\n\t\t\treactivityTransform,\r\n\t\t\troot: rootDir,\r\n\t\t\tsourceMap: true\r\n\t\t};\r\n\t}\r\n\tpublic error = (err: string | RollupError, pos?: number | { column: number; line: number } | undefined): void => {};\r\n\tpublic resolve = (id: string): VueResolvedId | null => {\r\n\t\t// serve sub-part requests (*?vue) as virtual modules\r\n\t\tif (parseVueRequest(id).query.vue) {\r\n\t\t\treturn { external: false, id: id };\r\n\t\t}\r\n\t\treturn null;\r\n\t};\r\n\r\n\tpublic warn = (warning: RollupLog | string, pos?: number | { column: number; line: number } | undefined): void => {};\r\n\r\n\tpublic transformCode = (code: string, filename: string) => {\r\n\t\tconst ssr = this.isSSR(false);\r\n\t\tconst result = transformMain(code, filename, this.options, this, ssr, this.customElementFilter(filename));\r\n\t\treturn { code: result?.code, map: result?.map.mappings };\r\n\t};\r\n}\r\n\r\nexport default VueTransformer;\r\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/transpilers/vue-sfc/index.ts"],"names":[],"mappings":";;;AAAA,qDAAmD;AAEnD,yCAA6C;AAC7C,yCAAgD;AAChD,iCAAuC;AAGvC,uCAA0D;AAAjD,wGAAA,eAAe,OAAA;AAExB,MAAM,cAAc;IACX,mBAAmB,CAA2B;IAC9C,OAAO,CAAkB;IACzB,KAAK,GAAG,CAAC,GAA4C,EAAE,EAAE,CAChE,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,OAAO,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAEhF,YAAY,aAAsB,EAAE;QACnC,MAAM,EAAE,OAAO,GAAG,QAAQ,EAAE,OAAO,EAAE,aAAa,GAAG,YAAY,EAAE,mBAAmB,GAAG,KAAK,EAAE,GAAG,UAAU,CAAC;QAC9G,IAAI,CAAC,mBAAmB,GAAG,OAAO,aAAa,KAAK,SAAS,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC,IAAA,0BAAY,EAAC,aAAa,CAAC,CAAC;QAElH,MAAM,OAAO,GAAW,OAAO,CAAC,GAAG,EAAE,CAAC;QACtC,IAAI,CAAC,OAAO,GAAG;YACd,YAAY,EAAE,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY;YACnD,QAAQ,EAAE,IAAA,0BAAe,EAAC,OAAO,CAAC;YAClC,GAAG,UAAU;YACb,OAAO;YACP,OAAO;YACP,aAAa;YACb,mBAAmB;YACnB,IAAI,EAAE,OAAO;YACb,SAAS,EAAE,IAAI;SACf,CAAC;IACH,CAAC;IAEM,KAAK,GAAG,CAAC,GAAyB,EAAE,GAA2D,EAAQ,EAAE,GAAE,CAAC,CAAC;IAE7G,OAAO,GAAG,CAAC,EAAU,EAAwB,EAAE;QACrD,qDAAqD;QACrD,IAAI,IAAA,uBAAe,EAAC,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC;YACnC,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC;QACpC,CAAC;QACD,OAAO,IAAI,CAAC;IACb,CAAC,CAAC;IAEK,IAAI,GAAG,CAAC,OAA2B,EAAE,GAA2D,EAAQ,EAAE,GAAE,CAAC,CAAC;IAE9G,aAAa,GAAG,CAAC,IAAY,EAAE,QAAgB,EAAE,EAAE;QACzD,MAAM,GAAG,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QAC9B,MAAM,MAAM,GAAG,IAAA,oBAAa,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,mBAAmB,CAAC,QAAQ,CAAC,CAAC,CAAC;QAC1G,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,CAAC,QAAQ,EAAE,CAAC;IAC1D,CAAC,CAAC;CACF;AAED,kBAAe,cAAc,CAAC","sourcesContent":["import { createFilter } from '@rollup/pluginutils';\r\nimport type { RollupError, RollupLog } from 'rollup';\r\nimport { resolveCompiler } from './compiler';\r\nimport { parseVueRequest } from './utils/query';\r\nimport { transformMain } from './main';\r\nimport type { Options, ResolvedOptions, VueTransformerContext, VueResolvedId } from './types';\r\n\r\nexport { parseVueRequest, VueQuery } from './utils/query';\r\n\r\nclass VueTransformer implements VueTransformerContext {\r\n\tprivate customElementFilter: (id: unknown) => boolean;\r\n\tprivate options: ResolvedOptions;\r\n\tprivate isSSR = (opt: { ssr?: boolean } | boolean | undefined) =>\r\n\t\topt === undefined ? false : typeof opt === 'boolean' ? opt : opt?.ssr === true;\r\n\r\n\tconstructor(rawOptions: Options = {}) {\r\n\t\tconst { include = /\\.vue$/, exclude, customElement = /\\.ce\\.vue$/, reactivityTransform = false } = rawOptions;\r\n\t\tthis.customElementFilter = typeof customElement === 'boolean' ? () => customElement : createFilter(customElement);\r\n\r\n\t\tconst rootDir: string = process.cwd();\r\n\t\tthis.options = {\r\n\t\t\tisProduction: process.env.NODE_ENV === 'production',\r\n\t\t\tcompiler: resolveCompiler(rootDir),\r\n\t\t\t...rawOptions,\r\n\t\t\tinclude,\r\n\t\t\texclude,\r\n\t\t\tcustomElement,\r\n\t\t\treactivityTransform,\r\n\t\t\troot: rootDir,\r\n\t\t\tsourceMap: true\r\n\t\t};\r\n\t}\r\n\r\n\tpublic error = (err: string | RollupError, pos?: number | { column: number; line: number } | undefined): void => {};\r\n\r\n\tpublic resolve = (id: string): VueResolvedId | null => {\r\n\t\t// serve sub-part requests (*?vue) as virtual modules\r\n\t\tif (parseVueRequest(id).query.vue) {\r\n\t\t\treturn { external: false, id: id };\r\n\t\t}\r\n\t\treturn null;\r\n\t};\r\n\r\n\tpublic warn = (warning: RollupLog | string, pos?: number | { column: number; line: number } | undefined): void => {};\r\n\r\n\tpublic transformCode = (code: string, filename: string) => {\r\n\t\tconst ssr = this.isSSR(false);\r\n\t\tconst result = transformMain(code, filename, this.options, this, ssr, this.customElementFilter(filename));\r\n\t\treturn { code: result?.code, map: result?.map.mappings };\r\n\t};\r\n}\r\n\r\nexport default VueTransformer;\r\n"]}
@@ -1 +1 @@
1
- {"root":["../src/behave.ts","../src/esnode.ts","../src/esvue.ts","../src/index.ts","../src/junitbamboo.ts","../src/snippet.ts","../src/tsnode.ts","../src/tsvue.ts","../src/version.ts","../src/api/index.ts","../src/api/load-configuration.ts","../src/api/load-support.ts","../src/api/run-cucumber.ts","../src/bindings/binding-context.ts","../src/bindings/binding-decorator.ts","../src/bindings/binding-registry.ts","../src/bindings/hook-decorators.ts","../src/bindings/step-binding.ts","../src/bindings/step-decorators.ts","../src/bindings/types.ts","../src/cli/argv-parser.ts","../src/cli/index.ts","../src/cli/run.ts","../src/formatter/behave-json-formatter.ts","../src/formatter/junit-bamboo-formatter.ts","../src/formatter/step-definition-snippit-syntax/tsflow-snippet-syntax.ts","../src/gherkin/configuration.ts","../src/gherkin/gherkin-feature.ts","../src/gherkin/gherkin-manager.ts","../src/gherkin/models.ts","../src/runtime/coordinator.ts","../src/runtime/make-runtime.ts","../src/runtime/managed-scenario-context.ts","../src/runtime/message-collector.ts","../src/runtime/scenario-context.ts","../src/runtime/scenario-info.ts","../src/runtime/test-case-info.ts","../src/runtime/test-case-runner.ts","../src/runtime/utils.ts","../src/runtime/worker.ts","../src/runtime/parallel/adapter.ts","../src/runtime/parallel/run-worker.ts","../src/runtime/parallel/types.ts","../src/runtime/parallel/worker.ts","../src/runtime/serial/adapter.ts","../src/transpilers/esbuild-transpiler.ts","../src/transpilers/esbuild.ts","../src/transpilers/vue-sfc/compiler.ts","../src/transpilers/vue-sfc/index.ts","../src/transpilers/vue-sfc/main.ts","../src/transpilers/vue-sfc/script.ts","../src/transpilers/vue-sfc/template.ts","../src/transpilers/vue-sfc/types.ts","../src/transpilers/vue-sfc/utils/descriptorcache.ts","../src/transpilers/vue-sfc/utils/error.ts","../src/transpilers/vue-sfc/utils/query.ts","../src/types/durations.d.ts","../src/types/global.d.ts","../src/types/lep.d.ts","../src/utils/helpers.ts","../src/utils/logger.ts","../src/utils/our-callsite.ts"],"version":"5.8.2"}
1
+ {"root":["../src/behave.ts","../src/index.ts","../src/junitbamboo.ts","../src/snippet.ts","../src/version.ts","../src/api/convert-configuration.ts","../src/api/index.ts","../src/api/load-configuration.ts","../src/api/load-support.ts","../src/api/run-cucumber.ts","../src/bindings/binding-context.ts","../src/bindings/binding-decorator.ts","../src/bindings/binding-registry.ts","../src/bindings/hook-decorators.ts","../src/bindings/step-binding.ts","../src/bindings/step-decorators.ts","../src/bindings/types.ts","../src/cli/argv-parser.ts","../src/cli/index.ts","../src/cli/run.ts","../src/formatter/behave-json-formatter.ts","../src/formatter/junit-bamboo-formatter.ts","../src/formatter/step-definition-snippit-syntax/tsflow-snippet-syntax.ts","../src/gherkin/configuration.ts","../src/gherkin/gherkin-feature.ts","../src/gherkin/gherkin-manager.ts","../src/gherkin/models.ts","../src/runtime/coordinator.ts","../src/runtime/make-runtime.ts","../src/runtime/managed-scenario-context.ts","../src/runtime/message-collector.ts","../src/runtime/scenario-context.ts","../src/runtime/scenario-info.ts","../src/runtime/test-case-info.ts","../src/runtime/test-case-runner.ts","../src/runtime/types.ts","../src/runtime/utils.ts","../src/runtime/worker.ts","../src/runtime/parallel/adapter.ts","../src/runtime/parallel/run-worker.ts","../src/runtime/parallel/worker.ts","../src/runtime/serial/adapter.ts","../src/transpilers/esbuild-transpiler.ts","../src/transpilers/esbuild.ts","../src/transpilers/esnode.ts","../src/transpilers/esvue.ts","../src/transpilers/tsnode-exp.ts","../src/transpilers/tsnode.ts","../src/transpilers/tsvue-exp.ts","../src/transpilers/tsvue.ts","../src/transpilers/vue-sfc/compiler.ts","../src/transpilers/vue-sfc/index.ts","../src/transpilers/vue-sfc/main.ts","../src/transpilers/vue-sfc/script.ts","../src/transpilers/vue-sfc/template.ts","../src/transpilers/vue-sfc/types.ts","../src/transpilers/vue-sfc/utils/descriptorcache.ts","../src/transpilers/vue-sfc/utils/error.ts","../src/transpilers/vue-sfc/utils/query.ts","../src/types/durations.d.ts","../src/types/global.d.ts","../src/types/lep.d.ts","../src/types/vue-shim.d.ts","../src/utils/helpers.ts","../src/utils/logger.ts","../src/utils/our-callsite.ts"],"version":"5.9.2"}
package/lib/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "7.1.2";
1
+ export declare const version = "7.3.0";
package/lib/version.js CHANGED
@@ -2,5 +2,5 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.version = void 0;
4
4
  // Generated by genversion.
5
- exports.version = '7.1.2';
5
+ exports.version = '7.3.0';
6
6
  //# sourceMappingURL=version.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,OAAO,CAAA","sourcesContent":["// Generated by genversion.\nexport const version = '7.1.2'\n"]}
1
+ {"version":3,"file":"version.js","sourceRoot":"","sources":["../src/version.ts"],"names":[],"mappings":";;;AAAA,2BAA2B;AACd,QAAA,OAAO,GAAG,OAAO,CAAA","sourcesContent":["// Generated by genversion.\nexport const version = '7.3.0'\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@lynxwall/cucumber-tsflow",
3
3
  "description": "Provides 'specflow' like bindings for CucumberJS 11.2.0 in TypeScript 5.8+.",
4
- "version": "7.1.2",
4
+ "version": "7.3.0",
5
5
  "author": "Lonnie Wall <lynxdev@lynxwall.com>",
6
6
  "license": "MIT",
7
7
  "keywords": [
@@ -26,72 +26,85 @@
26
26
  "main": "./lib/index.js",
27
27
  "exports": {
28
28
  ".": {
29
+ "types": "./lib/index.d.ts",
29
30
  "import": "./lib/wrapper.mjs",
30
- "require": "./lib/index.js",
31
- "types": "./lib/index.d.ts"
31
+ "require": "./lib/index.js"
32
32
  },
33
33
  "./api": {
34
+ "types": "./lib/api/index.d.ts",
34
35
  "import": "./lib/api/wrapper.mjs",
35
- "require": "./lib/api/index.js",
36
- "types": "./lib/api/index.d.ts"
36
+ "require": "./lib/api/index.js"
37
37
  },
38
38
  "./lib/*": {
39
39
  "require": "./lib/*.js"
40
40
  },
41
41
  "./behave": "./lib/behave.js",
42
- "./esnode": "./lib/esnode.js",
43
- "./esvue": "./lib/esvue.js",
42
+ "./esnode": "./lib/transpilers/esnode.js",
43
+ "./esvue": "./lib/transpilers/esvue.js",
44
44
  "./junitbamboo": "./lib/junitbamboo.js",
45
45
  "./snippet": "./lib/snippet.js",
46
- "./tsnode": "./lib/tsnode.js",
47
- "./tsvue": "./lib/tsvue.js",
46
+ "./tsnode-exp": "./lib/transpilers/tsnode-exp.js",
47
+ "./tsnode": "./lib/transpilers/tsnode.js",
48
+ "./tsvue-exp": "./lib/transpilers/tsvue-exp.js",
49
+ "./tsvue": "./lib/transpilers/tsvue.js",
50
+ "./lib/transpilers/esm/vue-loader": "./lib/transpilers/esm/vue-loader.mjs",
51
+ "./lib/transpilers/esm/tsnode-loader": "./lib/transpilers/esm/tsnode-loader.mjs",
52
+ "./lib/transpilers/esm/esnode-loader": "./lib/transpilers/esm/esnode-loader.mjs",
53
+ "./lib/transpilers/esm/esvue-loader": "./lib/transpilers/esm/esvue-loader.mjs",
54
+ "./lib/transpilers/esm/esbuild-transpiler'": "./lib/transpilers/esm/esbuild-transpiler.mjs",
55
+ "./lib/transpilers/esm/vue-jsdom-setup": "./lib/transpilers/esm/vue-jsdom-setup.mjs",
48
56
  "./package.json": "./package.json"
49
57
  },
50
58
  "types": "./lib/index.d.ts",
51
59
  "dependencies": {
52
- "@cucumber/cucumber": "~11.2.0",
60
+ "@cucumber/cucumber": "~12.2.0",
53
61
  "@jeanbenitez/logical-expression-parser": "~1.0.0",
54
62
  "@types/node": "~22.13.10",
55
63
  "ansis": "~3.17.0",
56
- "commander": "^13.1.0",
57
- "debug": "^4.3.4",
58
- "esbuild": "~0.25.1",
59
- "glob": "~11.0.1",
64
+ "commander": "^10.0.1",
65
+ "debug": "^4.4.3",
66
+ "esbuild": "~0.25.10",
67
+ "glob": "~11.0.3",
60
68
  "hash-sum": "~2.0.0",
61
- "import-sync": "^2.2.2",
69
+ "import-sync": "^2.2.3",
62
70
  "jsdom": "~26.0.0",
63
71
  "jsdom-global": "~3.0.2",
64
72
  "lodash.merge": "~4.6.2",
65
73
  "polyfill-symbol-metadata": "^0.0.2",
66
74
  "require-extension-hooks": "~0.3.3",
67
- "rollup": "~4.35.0",
75
+ "rollup": "~4.52.0",
68
76
  "short-uuid": "~5.2.0",
69
77
  "source-map-support": "~0.5.21",
70
- "ts-node": "~10.9.2",
78
+ "ts-node-maintained": "~10.9.6",
71
79
  "tsconfig-paths": "~4.2.0",
72
80
  "tslib": "2.8.1",
73
- "typescript": "~5.8.2",
81
+ "typescript": "~5.9.2",
74
82
  "underscore": "~1.13.7"
75
83
  },
76
84
  "devDependencies": {
77
- "@rollup/pluginutils": "~5.1.4",
85
+ "@rollup/pluginutils": "~5.3.0",
78
86
  "@types/debug": "~4.1.12",
79
- "@types/glob": "~8.1.0",
80
87
  "@types/hash-sum": "~1.0.2",
81
88
  "@types/lodash.merge": "~4.6.9",
82
89
  "@types/source-map-support": "~0.5.10",
83
90
  "@types/underscore": "~1.13.0",
84
91
  "genversion": "~3.2.0",
85
- "shx": "0.3.4"
92
+ "shx": "0.4.0"
86
93
  },
87
94
  "scripts": {
88
- "build": "genversion --es6 src/version.ts && tsc --build tsconfig.node.json && shx cp src/wrapper.mjs lib/ && shx cp src/api/wrapper.mjs lib/api/",
95
+ "build": "genversion --es6 src/version.ts && tsc --build tsconfig.node.json && yarn build:copy-mjs && yarn build:transpiler",
96
+ "build:transpiler": "node src/scripts/build-esm-transpiler-cjs.js",
97
+ "build:copy-mjs": "yarn copy:root-mjs && yarn copy:api-mjs && yarn copy:transpiler-mjs",
98
+ "copy:root-mjs": "shx cp src/*.mjs lib/",
99
+ "copy:api-mjs": "shx cp src/api/*.mjs lib/api/",
100
+ "copy:transpiler-mjs": "shx mkdir -p lib/transpilers/esm && shx cp src/transpilers/esm/*.mjs lib/transpilers/esm/",
89
101
  "build:watch": "tsc --build tsconfig.node.json --watch"
90
102
  },
91
- "bin": {
92
- "cucumber-tsflow": "bin/cucumber-tsflow.js"
93
- },
103
+ "bin": "bin/cucumber-tsflow.js",
94
104
  "files": [
105
+ "CHANGELOG.md",
106
+ "LICENSE",
107
+ "README.md",
95
108
  "api/",
96
109
  "bin/",
97
110
  "lib/"
package/lib/esnode.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"esnode.js","sourceRoot":"","sources":["../src/esnode.ts"],"names":[],"mappings":";;AAAA,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC;IAC3B,eAAe,EAAE;QAChB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,iBAAiB,EAAE,IAAI;QACvB,eAAe,EAAE,IAAI;QACrB,YAAY,EAAE,IAAI;QAClB,GAAG,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAC;KACpC;IACD,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,8DAA8D;CAC1E,CAAC,CAAC;AAEH,OAAO,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC","sourcesContent":["require('ts-node').register({\r\n\tcompilerOptions: {\r\n\t\tmodule: 'nodeNext',\r\n\t\ttarget: 'es2022',\r\n\t\tstrict: true,\r\n\t\tresolveJsonModule: true,\r\n\t\tesModuleInterop: true,\r\n\t\tskipLibCheck: true,\r\n\t\tlib: ['es2022', 'esnext.decorators']\r\n\t},\r\n\ttranspileOnly: true,\r\n\ttranspiler: '@lynxwall/cucumber-tsflow/lib/transpilers/esbuild-transpiler'\r\n});\r\n\r\nrequire('tsconfig-paths').register();\r\n"]}
package/lib/esvue.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"esvue.js","sourceRoot":"","sources":["../src/esvue.ts"],"names":[],"mappings":";;;;;AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjD,oEAAmD;AAEnD,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC;IAC3B,eAAe,EAAE;QAChB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,iBAAiB,EAAE,IAAI;QACvB,eAAe,EAAE,IAAI;QACrB,YAAY,EAAE,IAAI;QAClB,GAAG,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAC;KACpC;IACD,aAAa,EAAE,IAAI;IACnB,UAAU,EAAE,8DAA8D;CAC1E,CAAC,CAAC;AAEH,OAAO,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAErC,uDAAuD;AACvD,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;AACzB,MAAc,CAAC,UAAU,GAAI,MAAc,CAAC,MAAM,CAAC,UAAU,CAAC;AAE/D,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,MAAW;IACtC,IAAI,CAAC;QACJ,MAAM,WAAW,GAAG,IAAI,iBAAc,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,EAAE,6BAA6B,CAAC;SAChE,CAAC,CAAC;QACH,MAAM,eAAe,GAAG,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;QAEnF,OAAO,eAAe,CAAC,IAAI,CAAC;IAC7B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAClB,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC;AACvB,CAAC,CAAC,CAAC","sourcesContent":["const hooks = require('require-extension-hooks');\r\nimport VueTransformer from './transpilers/vue-sfc';\r\n\r\nrequire('ts-node').register({\r\n\tcompilerOptions: {\r\n\t\tmodule: 'nodeNext',\r\n\t\ttarget: 'es2022',\r\n\t\tstrict: true,\r\n\t\tresolveJsonModule: true,\r\n\t\tesModuleInterop: true,\r\n\t\tskipLibCheck: true,\r\n\t\tlib: ['es2022', 'esnext.decorators']\r\n\t},\r\n\ttranspileOnly: true,\r\n\ttranspiler: '@lynxwall/cucumber-tsflow/lib/transpilers/esbuild-transpiler'\r\n});\r\n\r\nrequire('tsconfig-paths').register();\r\n\r\n// Register jsdom globally and set SVGElement on global\r\nrequire('jsdom-global')();\r\n(global as any).SVGElement = (global as any).window.SVGElement;\r\n\r\nhooks('vue').push(function (params: any) {\r\n\ttry {\r\n\t\tconst transformer = new VueTransformer({\r\n\t\t\texclude: ['(?:^|/)node_modules/', '(?:^|/)cucumber-tsflow/lib/']\r\n\t\t});\r\n\t\tconst transformResult = transformer.transformCode(params.content, params.filename);\r\n\r\n\t\treturn transformResult.code;\r\n\t} catch (err) {\r\n\t\tconsole.log(err);\r\n\t}\r\n\treturn params.content;\r\n});\r\n"]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/runtime/parallel/types.ts"],"names":[],"mappings":"","sourcesContent":["import * as messages from '@cucumber/messages';\r\nimport { FinalizeCommand, InitializeCommand, RunCommand } from '@cucumber/cucumber/lib/runtime/parallel/types';\r\nimport { ISourcesCoordinates } from '@cucumber/cucumber/api';\r\n\r\nexport interface IMessageData {\r\n\tgherkinDocumentMap: Record<string, messages.GherkinDocument>;\r\n\tpickleMap: Record<string, messages.Pickle>;\r\n\ttestCaseMap: Record<string, messages.TestCase>;\r\n\tcoordinates: ISourcesCoordinates;\r\n}\r\n\r\nexport interface InitializeTsflowCommand extends InitializeCommand {\r\n\tmessageData: IMessageData;\r\n}\r\n\r\nexport type CoordinatorToWorkerCommand = InitializeTsflowCommand | RunCommand | FinalizeCommand;\r\n"]}
package/lib/tsnode.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsnode.js","sourceRoot":"","sources":["../src/tsnode.ts"],"names":[],"mappings":";;AAAA,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC;IAC3B,eAAe,EAAE;QAChB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,iBAAiB,EAAE,IAAI;QACvB,eAAe,EAAE,IAAI;QACrB,YAAY,EAAE,IAAI;QAClB,GAAG,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAC;KACpC;IACD,aAAa,EAAE,IAAI;CACnB,CAAC,CAAC;AAEH,OAAO,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC","sourcesContent":["require('ts-node').register({\r\n\tcompilerOptions: {\r\n\t\tmodule: 'nodeNext',\r\n\t\ttarget: 'es2022',\r\n\t\tstrict: true,\r\n\t\tresolveJsonModule: true,\r\n\t\tesModuleInterop: true,\r\n\t\tskipLibCheck: true,\r\n\t\tlib: ['es2022', 'esnext.decorators']\r\n\t},\r\n\ttranspileOnly: true\r\n});\r\n\r\nrequire('tsconfig-paths').register();\r\n"]}
package/lib/tsvue.js.map DELETED
@@ -1 +0,0 @@
1
- {"version":3,"file":"tsvue.js","sourceRoot":"","sources":["../src/tsvue.ts"],"names":[],"mappings":";;;;;AAAA,MAAM,KAAK,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAC;AACjD,oEAAmD;AAEnD,OAAO,CAAC,SAAS,CAAC,CAAC,QAAQ,CAAC;IAC3B,eAAe,EAAE;QAChB,MAAM,EAAE,UAAU;QAClB,MAAM,EAAE,QAAQ;QAChB,MAAM,EAAE,IAAI;QACZ,iBAAiB,EAAE,IAAI;QACvB,eAAe,EAAE,IAAI;QACrB,YAAY,EAAE,IAAI;QAClB,GAAG,EAAE,CAAC,QAAQ,EAAE,mBAAmB,CAAC;KACpC;IACD,aAAa,EAAE,IAAI;CACnB,CAAC,CAAC;AAEH,OAAO,CAAC,gBAAgB,CAAC,CAAC,QAAQ,EAAE,CAAC;AAErC,uDAAuD;AACvD,OAAO,CAAC,cAAc,CAAC,EAAE,CAAC;AACzB,MAAc,CAAC,UAAU,GAAI,MAAc,CAAC,MAAM,CAAC,UAAU,CAAC;AAE/D,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,UAAU,MAAW;IACtC,IAAI,CAAC;QACJ,MAAM,WAAW,GAAG,IAAI,iBAAc,CAAC;YACtC,OAAO,EAAE,CAAC,sBAAsB,EAAE,6BAA6B,CAAC;SAChE,CAAC,CAAC;QACH,MAAM,eAAe,GAAG,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;QAEnF,OAAO,eAAe,CAAC,IAAI,CAAC;IAC7B,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACd,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IAClB,CAAC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC;AACvB,CAAC,CAAC,CAAC","sourcesContent":["const hooks = require('require-extension-hooks');\r\nimport VueTransformer from './transpilers/vue-sfc';\r\n\r\nrequire('ts-node').register({\r\n\tcompilerOptions: {\r\n\t\tmodule: 'nodeNext',\r\n\t\ttarget: 'es2022',\r\n\t\tstrict: true,\r\n\t\tresolveJsonModule: true,\r\n\t\tesModuleInterop: true,\r\n\t\tskipLibCheck: true,\r\n\t\tlib: ['es2022', 'esnext.decorators']\r\n\t},\r\n\ttranspileOnly: true\r\n});\r\n\r\nrequire('tsconfig-paths').register();\r\n\r\n// Register jsdom globally and set SVGElement on global\r\nrequire('jsdom-global')();\r\n(global as any).SVGElement = (global as any).window.SVGElement;\r\n\r\nhooks('vue').push(function (params: any) {\r\n\ttry {\r\n\t\tconst transformer = new VueTransformer({\r\n\t\t\texclude: ['(?:^|/)node_modules/', '(?:^|/)cucumber-tsflow/lib/']\r\n\t\t});\r\n\t\tconst transformResult = transformer.transformCode(params.content, params.filename);\r\n\r\n\t\treturn transformResult.code;\r\n\t} catch (err) {\r\n\t\tconsole.log(err);\r\n\t}\r\n\treturn params.content;\r\n});\r\n"]}
File without changes
File without changes