Skip to content

Commit 8b7b05e

Browse files
committed
Fix warnings
1 parent cbcc3e8 commit 8b7b05e

File tree

2 files changed

+35
-2
lines changed

2 files changed

+35
-2
lines changed

scripts/prepublish.js

+5-2
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,8 @@ clean()
8686
verifyIsCleanWorkTree()
8787
console.log(`okay to publish`)
8888

89-
console.log(`checking windows`)
90-
checkWinBinary()
89+
90+
if(!process.argv.includes('-weekly')){
91+
console.log(`checking windows`)
92+
checkWinBinary()
93+
}

scripts/tmp.js

+30
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,52 @@
22
//@ts-check
33
var fs = require('fs')
44
var path = require('path')
5+
/**
6+
*
7+
* @param {number} n
8+
*/
59
function* range(n) {
610
for (var i = 0; i < n; ++i) {
711
yield i
812
}
913
}
1014

15+
/**
16+
*
17+
* @param {number} n
18+
*/
1119
var constructors = (n) => {
1220
return [...range(n)].map((x => `| A${x} \n`)).reduce((x, y) => x + y)
1321
}
1422

23+
/**
24+
*
25+
* @param {number} n
26+
*/
1527
var polyConstructors = (n) => {
1628
return [...range(n)].map((x => `| \`variant${x} \n`)).reduce((x, y) => x + y)
1729
}
1830

31+
/**
32+
*
33+
* @param {number} n
34+
*/
1935
var matches = (n) => {
2036
return [...range(n)].map((x => `| A${x} -> ${x} \n `)).reduce((x, y) => x + y)
2137
}
38+
39+
/**
40+
*
41+
* @param {number} n
42+
*/
2243
var xs = (n) => {
2344
return [...range(n)].map((x => `| A${x} -> "A${x}" \n `)).reduce((x, y) => x + y)
2445
}
46+
47+
/**
48+
*
49+
* @param {number} n
50+
*/
2551
var code = (n) => {
2652
var content = `type t = \n ${constructors(n)}`
2753
var match = `let to_enum = function\n ${matches(n)}`
@@ -30,6 +56,10 @@ var code = (n) => {
3056
return content + match + to_string
3157
}
3258

59+
/**
60+
*
61+
* @param {number} n
62+
*/
3363
var polyCode = (n) =>{
3464
var content = `type t = [ \n ${polyConstructors(n)}\n ] [@@bs.deriving jsConverter] `
3565
var eq = `

0 commit comments

Comments
 (0)