ic-mops 0.20.0 → 0.20.2

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/commands/docs.ts CHANGED
@@ -76,6 +76,7 @@ export async function docs({silent = false} = {}) {
76
76
  `${docsDir}/test/**/*`,
77
77
  ];
78
78
  let files = globSync(`${docsDir}/**/*.adoc`, {ignore}).map(f => path.relative(docsDir, f));
79
+ files.sort();
79
80
  if (files.length) {
80
81
  let stream = tar.create(
81
82
  {
@@ -216,7 +216,7 @@ export async function publish({noDocs = false} = {}) {
216
216
 
217
217
  // check allowed exts
218
218
  for (let file of files) {
219
- if (!minimatch(file, '**/*.{mo,did,md,toml}') && !file.toLowerCase().endsWith('license') && file !== docsFile) {
219
+ if (!minimatch(file, '**/*.{mo,did,md,toml}') && !file.toLowerCase().endsWith('license') && !file.toLowerCase().endsWith('notice') && file !== docsFile) {
220
220
  console.log(chalk.red('Error: ') + `file ${file} has unsupported extension. Allowed: .mo, .did, .md, .toml`);
221
221
  return;
222
222
  }
@@ -66,6 +66,7 @@ export async function docs({ silent = false } = {}) {
66
66
  `${docsDir}/test/**/*`,
67
67
  ];
68
68
  let files = globSync(`${docsDir}/**/*.adoc`, { ignore }).map(f => path.relative(docsDir, f));
69
+ files.sort();
69
70
  if (files.length) {
70
71
  let stream = tar.create({
71
72
  cwd: docsDir,
@@ -194,7 +194,7 @@ export async function publish({ noDocs = false } = {}) {
194
194
  }
195
195
  // check allowed exts
196
196
  for (let file of files) {
197
- if (!minimatch(file, '**/*.{mo,did,md,toml}') && !file.toLowerCase().endsWith('license') && file !== docsFile) {
197
+ if (!minimatch(file, '**/*.{mo,did,md,toml}') && !file.toLowerCase().endsWith('license') && !file.toLowerCase().endsWith('notice') && file !== docsFile) {
198
198
  console.log(chalk.red('Error: ') + `file ${file} has unsupported extension. Allowed: .mo, .did, .md, .toml`);
199
199
  return;
200
200
  }
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/cli.js"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ic-mops",
3
- "version": "0.20.0",
3
+ "version": "0.20.2",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "mops": "dist/cli.js"