@cosmwasm/ts-codegen 0.27.0 → 0.28.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.
@@ -43,7 +43,9 @@ var readSchemas = /*#__PURE__*/function () {
43
43
  fn = clean ? _cleanse.cleanse : function (str) {
44
44
  return str;
45
45
  };
46
- files = (0, _glob.sync)(schemaDir + '/**/*.json');
46
+ files = (0, _glob.sync)(schemaDir + '/**/*.json').filter(function (file) {
47
+ return !file.match(/\/raw\//);
48
+ });
47
49
  schemas = files.map(function (file) {
48
50
  return JSON.parse((0, _fs.readFileSync)(file, 'utf-8'));
49
51
  });
@@ -15,7 +15,7 @@ export const readSchemas = async ({
15
15
  clean = true
16
16
  }) => {
17
17
  const fn = clean ? cleanse : str => str;
18
- const files = glob(schemaDir + '/**/*.json');
18
+ const files = glob(schemaDir + '/**/*.json').filter(file => !file.match(/\/raw\//));
19
19
  const schemas = files.map(file => JSON.parse(readFileSync(file, 'utf-8')));
20
20
 
21
21
  if (schemas.length > 1) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cosmwasm/ts-codegen",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "@cosmwasm/ts-codegen converts your CosmWasm smart contracts into dev-friendly TypeScript classes so you can focus on shipping code.",
5
5
  "author": "Dan Lynch <pyramation@gmail.com>",
6
6
  "homepage": "https://github.com/cosmwasm/ts-codegen",
@@ -96,7 +96,7 @@
96
96
  "parse-package-name": "1.0.0",
97
97
  "rimraf": "3.0.2",
98
98
  "shelljs": "0.8.5",
99
- "wasm-ast-types": "^0.20.0"
99
+ "wasm-ast-types": "^0.21.0"
100
100
  },
101
- "gitHead": "d2edba320c63e2db5fe2db0bfb1f4cd5e44f2188"
101
+ "gitHead": "90fb688d19f477d246f9021ac91d824c96b8f3fc"
102
102
  }
@@ -13,7 +13,9 @@ export const readSchemas = async ({
13
13
  schemaDir, clean = true
14
14
  }: ReadSchemaOpts): Promise<ContractInfo> => {
15
15
  const fn = clean ? cleanse : (str) => str;
16
- const files = glob(schemaDir + '/**/*.json');
16
+ const files = glob(schemaDir + '/**/*.json')
17
+ .filter(file => !file.match(/\/raw\//));
18
+
17
19
  const schemas = files
18
20
  .map(file => JSON.parse(readFileSync(file, 'utf-8')));
19
21