Automate versioning and upgrades typescript

parent a3a8db01
{ {
"name": "siscon-cli", "name": "siscon-cli",
"version": "0.0.2", "version": "1.0.0",
"lockfileVersion": 1, "lockfileVersion": 1,
"requires": true, "requires": true,
"dependencies": { "dependencies": {
...@@ -3432,9 +3432,9 @@ ...@@ -3432,9 +3432,9 @@
} }
}, },
"typescript": { "typescript": {
"version": "2.5.2", "version": "3.0.3",
"resolved": "https://registry.npmjs.org/typescript/-/typescript-2.5.2.tgz", "resolved": "https://nexus.dev.evologica.com.br/repository/npm/typescript/-/typescript-3.0.3.tgz",
"integrity": "sha1-A4qV99m7tCCxvzW6MdTFwd0//jQ=", "integrity": "sha512-kk80vLW9iGtjMnIv11qyxLqZm20UklzuR2tL0QAnDIygIUIemcZMxlMWudl9OOt76H3ntVzcTiddQ1/pAAJMYg==",
"dev": true "dev": true
}, },
"unc-path-regex": { "unc-path-regex": {
......
...@@ -5,9 +5,10 @@ import './views/ponto' ...@@ -5,9 +5,10 @@ import './views/ponto'
import './views/servico' import './views/servico'
import * as chalk from 'chalk' import * as chalk from 'chalk'
const figlet = require('figlet') const figlet = require('figlet')
import { version } from '../package.json'
program program
.version('0.0.1', '-v, --version') .version(version, '-v, --version')
.parse(process.argv) .parse(process.argv)
if (!program.args.length) { if (!program.args.length) {
......
...@@ -10,6 +10,7 @@ ...@@ -10,6 +10,7 @@
"suppressImplicitAnyIndexErrors": true, "suppressImplicitAnyIndexErrors": true,
"allowUnreachableCode": true, "allowUnreachableCode": true,
"moduleResolution": "node", "moduleResolution": "node",
"resolveJsonModule": true,
"newLine": "LF", "newLine": "LF",
"target": "es6", "target": "es6",
"lib": [ "lib": [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment