Skip to content

Commit

Permalink
different hello world for libraries vs simple projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dherman committed Apr 15, 2024
1 parent e6eef73 commit 970aff8
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion pkgs/create-neon/data/templates/README.md.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,23 @@ This command uses the [@neon-rs/cli](https://www.npmjs.com/package/@neon-rs/cli)

After building {{package.name}}, you can explore its exports at the Node console:

{{#if packageSpec.library}}
```sh
$ npm i
$ npm run build
$ node
> require('.').greeting()
{ message: 'hello node' }
```
{{else}}
```sh
$ npm i
$ npm run build
$ node
> require('.').hello()
"hello node"
'hello node'
```
{{/if}}

## Available Scripts

Expand Down

0 comments on commit 970aff8

Please sign in to comment.