as-test 0.1.6 → 0.1.7
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 +1 -0
- package/README.md +1 -1
- package/assembly/index.ts +1 -1
- package/bin/build.js +0 -13
- package/bin/index.js +1 -1
- package/cli/index.ts +1 -1
- package/package.json +1 -1
- package/transform/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -15,3 +15,4 @@ v0.1.3 - Revamp `log<T>(data: T)` with new as-console version
|
|
|
15
15
|
v0.1.4 - Fix a few bugs with the cli
|
|
16
16
|
v0.1.5 - Add skeleton cli and custom config
|
|
17
17
|
v0.1.6 - Fix: args should be prefixed with a space
|
|
18
|
+
v0.1.7 - Fix: remove warning about wasi-shim not being included when it is included
|
package/README.md
CHANGED
package/assembly/index.ts
CHANGED
|
@@ -230,7 +230,7 @@ export function run(options: RunOptions = new RunOptions()): void {
|
|
|
230
230
|
),
|
|
231
231
|
);
|
|
232
232
|
console.log(
|
|
233
|
-
rainbow.dimMk("\n------------------- v0.1.
|
|
233
|
+
rainbow.dimMk("\n------------------- v0.1.7 -------------------\n"),
|
|
234
234
|
);
|
|
235
235
|
// @ts-ignore
|
|
236
236
|
if (isDefined(COVERAGE_USE)) {
|
package/bin/build.js
CHANGED
|
@@ -35,15 +35,6 @@ export async function build(args) {
|
|
|
35
35
|
const pkg = JSON.parse(readFileSync("./package.json").toString());
|
|
36
36
|
let buildCommands = [];
|
|
37
37
|
if (config.buildOptions.wasi) {
|
|
38
|
-
if (!existsSync("./node_modules/@assemblyscript/wasi-shim/asconfig.json")) {
|
|
39
|
-
console.log(
|
|
40
|
-
chalk.bgRed(" ERROR ") +
|
|
41
|
-
chalk.dim(":") +
|
|
42
|
-
" " +
|
|
43
|
-
"could not find @assemblyscript/wasi-shim! Add it to your dependencies to run with WASI!",
|
|
44
|
-
);
|
|
45
|
-
process.exit(1);
|
|
46
|
-
}
|
|
47
38
|
if (
|
|
48
39
|
(pkg.dependencies &&
|
|
49
40
|
!Object.keys(pkg.dependencies).includes("@assemblyscript/wasi-shim")) ||
|
|
@@ -56,15 +47,11 @@ export async function build(args) {
|
|
|
56
47
|
"@assemblyscript/wasi-shim",
|
|
57
48
|
))
|
|
58
49
|
) {
|
|
59
|
-
if (
|
|
60
|
-
existsSync("./node_modules/@assemblyscript/wasi-shim/asconfig.json")
|
|
61
|
-
) {
|
|
62
50
|
console.log(
|
|
63
51
|
chalk.bold.bgMagentaBright(" WARN ") +
|
|
64
52
|
chalk.dim(": @assemblyscript/wasi-shim") +
|
|
65
53
|
" is not included in project dependencies!",
|
|
66
54
|
);
|
|
67
|
-
}
|
|
68
55
|
}
|
|
69
56
|
}
|
|
70
57
|
let packageManagerCommand = "npx";
|
package/bin/index.js
CHANGED
|
@@ -7,7 +7,7 @@ const _args = process.argv.slice(2);
|
|
|
7
7
|
const flags = [];
|
|
8
8
|
const args = [];
|
|
9
9
|
const COMMANDS = ["run", "build", "test", "init"];
|
|
10
|
-
const version = "0.1.
|
|
10
|
+
const version = "0.1.7";
|
|
11
11
|
for (const arg of _args) {
|
|
12
12
|
if (arg.startsWith("-")) flags.push(arg);
|
|
13
13
|
else args.push(arg);
|
package/cli/index.ts
CHANGED
package/package.json
CHANGED