Skip to content

Getting Started Guide - usage of asinit fails at npm test #1452

@ColinEberhardt

Description

@ColinEberhardt

The getting started guide starts by creating a new project:

npm init
npm install --save @assemblyscript/loader
npm install --save-dev assemblyscript

This creates a package.json file, and node_modules with the various AS dependencies installed.

The next step is asinit:

npx asinit .

This creates a scaffold project - updating package.json as part of the process. However, if a tests script already exists, this is untouched:

https://github.com/AssemblyScript/assemblyscript/blob/master/bin/asinit#L347

However, the npm init at the very start of the guide creates the following 'standard' script:

 "test": "echo \"Error: no test specified\" && exit 1"

As a result npm test fails after running asinit

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions