Raise Exception (throw error) step

Hi Karh

It is all here.

just create your structure in a folder like this

image

open terminal

select your root directory, in this case

cd src10-throwerror\wappler-throw-error

Login to npm via

npm login

once logged in you can test with

npm publish ./ --access=public --dry-run

and upload with

npm publish ./ --access=public

dont forget the mandatory package.json file, example

{
    "name": "wappler-raise-exception-throw-error",
    "version": "1.0.3",
    "description": "Raise Exception (throw error) step",
    "license": "MIT",
    "author": {
        "name": "Karh / Apple - @karh"
    },
    "keywords": [
        "wappler-extension",
        "server-connect",
        "wappler-raise-exception-throw-error",
        "node"
    ],
    "dependencies": {}
}

changelog, licence and readme are optional

one small tip for package.json, the "name" must be a lower case or npm publish will throw an error

2 Likes