mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-29 06:22:24 -05:00
Follow https://www.npmjs.com/package/genversion and show the package version in the description
This commit is contained in:
parent
10579a553e
commit
01222423b7
3 changed files with 10 additions and 3 deletions
|
|
@ -25,6 +25,8 @@ import {
|
|||
OptionsWithUri
|
||||
} from 'request';
|
||||
|
||||
import { version } from '../version';
|
||||
|
||||
export class FriendGrid implements INodeType {
|
||||
description: INodeTypeDescription = {
|
||||
displayName: 'FriendGrid',
|
||||
|
|
@ -33,7 +35,7 @@ export class FriendGrid implements INodeType {
|
|||
group: ['transform'],
|
||||
version: 1,
|
||||
subtitle: '={{$parameter["operation"] + ": " + $parameter["resource"]}}',
|
||||
description: 'Consume FriendGrid API',
|
||||
description: `Consume FriendGrid API (v.${version})`,
|
||||
defaults: {
|
||||
name: 'FriendGrid',
|
||||
color: '#1A82e2',
|
||||
|
|
|
|||
2
nodes/version.ts
Normal file
2
nodes/version.ts
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
// Generated by genversion.
|
||||
export const version = '0.1.0';
|
||||
|
|
@ -15,13 +15,15 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"dev": "npm run watch",
|
||||
"build": "tsc && gulp",
|
||||
"build": "tsc && gulp && genversion -s -e nodes/version.ts && git add .",
|
||||
"lint": "tslint -p tsconfig.json -c tslint.json",
|
||||
"lintfix": "tslint --fix -p tsconfig.json -c tslint.json",
|
||||
"nodelinter": "nodelinter",
|
||||
"watch": "tsc --watch",
|
||||
"test": "jest",
|
||||
"release": "npm run build && npm publish --access=public"
|
||||
"release": "npm run build && npm publish --access=public",
|
||||
"version": "npm run build && genversion -s -e nodes/version.ts",
|
||||
"postversion": "git push"
|
||||
},
|
||||
"files": [
|
||||
"dist"
|
||||
|
|
@ -39,6 +41,7 @@
|
|||
"@types/jest": "^27.4.0",
|
||||
"@types/node": "14.17.27",
|
||||
"@types/request-promise-native": "~1.0.15",
|
||||
"genversion": "^3.1.1",
|
||||
"gulp": "^4.0.0",
|
||||
"jest": "^27.4.7",
|
||||
"n8n-workflow": "~0.93.0",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue