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 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
@@ -3,7 +3,7 @@
3
3
  | _ || __| ___|_ _|| __|| __||_ _|
4
4
  | ||__ ||___| | | | __||__ | | |
5
5
  |__|__||_____| |_| |_____||_____| |_|
6
- v0.1.6
6
+ v0.1.7
7
7
  </pre>
8
8
  </h5>
9
9
 
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.6 -------------------\n"),
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.6";
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
@@ -11,7 +11,7 @@ const args: string[] = [];
11
11
 
12
12
  const COMMANDS: string[] = ["run", "build", "test", "init"];
13
13
 
14
- const version = "0.1.6";
14
+ const version = "0.1.7";
15
15
 
16
16
  for (const arg of _args) {
17
17
  if (arg.startsWith("-")) flags.push(arg);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "as-test",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Testing framework for AssemblyScript. Compatible with WASI or Bindings ",
5
5
  "types": "assembly/index.ts",
6
6
  "author": "Jairus Tanaka",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@as-test/transform",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Testing framework for AssemblyScript. Compatible with WASI or Bindings ",
5
5
  "main": "./lib/index.js",
6
6
  "author": "Jairus Tanaka",