@graphcommerce/cli 8.1.0-canary.42 → 8.1.0-canary.44

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/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # @graphcommerce/cli
2
2
 
3
+ ## 8.1.0-canary.44
4
+
5
+ ### Patch Changes
6
+
7
+ - [`44ea147`](https://github.com/graphcommerce-org/graphcommerce/commit/44ea1474d1429d05f535df903beb1fb2c0ca7754) - Added missing tsx package
8
+ ([@paales](https://github.com/paales))
9
+
10
+ ## 8.1.0-canary.43
11
+
12
+ ### Patch Changes
13
+
14
+ - [`6184a28`](https://github.com/graphcommerce-org/graphcommerce/commit/6184a28b2ba2dc70189a9b881887696dc0a346c8) - Fixed issue where codegen would throw an error: SyntaxError: Cannot use import statement outside a module.
15
+ ([@paales](https://github.com/paales))
16
+
3
17
  ## 8.1.0-canary.42
4
18
 
5
19
  ## 8.1.0-canary.41
package/dist/bin/mesh.js CHANGED
@@ -15,6 +15,8 @@ const utils_1 = require("@graphql-mesh/utils");
15
15
  const dotenv_1 = __importDefault(require("dotenv"));
16
16
  const yaml_1 = __importDefault(require("yaml"));
17
17
  const findConfig_1 = require("../utils/findConfig");
18
+ require("tsx/cjs"); // support importing typescript configs in CommonJS
19
+ require("tsx/esm"); // support importing typescript configs in ESM
18
20
  dotenv_1.default.config();
19
21
  function handleFatalError(e, logger = new utils_1.DefaultLogger('◈')) {
20
22
  logger.error(e.stack || e.message);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@graphcommerce/cli",
3
3
  "homepage": "https://www.graphcommerce.org/",
4
4
  "repository": "github:graphcommerce-org/graphcommerce",
5
- "version": "8.1.0-canary.42",
5
+ "version": "8.1.0-canary.44",
6
6
  "scripts": {
7
7
  "dev": "tsc --preserveWatchOutput --watch",
8
8
  "build": "tsc",
@@ -35,14 +35,15 @@
35
35
  "graphql-codegen-typescript-validation-schema": "^0.14.1",
36
36
  "graphql-tag": "^2.12.6",
37
37
  "rimraf": "^5.0.5",
38
- "tslib": "^2.6.2"
38
+ "tslib": "^2.6.2",
39
+ "tsx": "^4.16.2"
39
40
  },
40
41
  "peerDependencies": {
41
- "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.42",
42
- "@graphcommerce/hygraph-cli": "^8.1.0-canary.42",
43
- "@graphcommerce/next-config": "^8.1.0-canary.42",
44
- "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.42",
45
- "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.42",
42
+ "@graphcommerce/eslint-config-pwa": "^8.1.0-canary.44",
43
+ "@graphcommerce/hygraph-cli": "^8.1.0-canary.44",
44
+ "@graphcommerce/next-config": "^8.1.0-canary.44",
45
+ "@graphcommerce/prettier-config-pwa": "^8.1.0-canary.44",
46
+ "@graphcommerce/typescript-config-pwa": "^8.1.0-canary.44",
46
47
  "graphql": "^16.7.1",
47
48
  "react": "^18.2.0"
48
49
  },
package/src/bin/mesh.ts CHANGED
@@ -16,6 +16,9 @@ import dotenv from 'dotenv'
16
16
  import yaml from 'yaml'
17
17
  import { findConfig } from '../utils/findConfig'
18
18
 
19
+ import 'tsx/cjs' // support importing typescript configs in CommonJS
20
+ import 'tsx/esm' // support importing typescript configs in ESM
21
+
19
22
  dotenv.config()
20
23
 
21
24
  export function handleFatalError(e: Error, logger: Logger = new DefaultLogger('◈')) {