Skip to content

Commit

Permalink
Little fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mutantcornholio committed Jan 11, 2020
1 parent 51949a8 commit 40e51e1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "veendor",
"version": "3.0.4",
"version": "3.1.1",
"description": "a tool for stroing your npm dependencies in arbitraty storage",
"bin": {
"veendor": "dist/bin/veendor.js"
"veendor": "bin/veendor.js"
},
"scripts": {
"build": "npm run build:1_tsc && npm run build:2_tscpaths && npm run build:3_tests_dirs && npm run build:4_tests_files && npm run build:5_package.json",
Expand All @@ -15,8 +15,7 @@
"test": "npm run test:unit && npm run test:integration",
"test:unit": "mocha --file dist/test/setup.js --reporter dot 'dist/test/unit/**/*.test.js'",
"test:integration": "mocha --file dist/test/setup.js --reporter dot 'dist/test/integration/**/*.test.js'",
"prepublishOnly": "npm run build && npm run test",
"publish": "cd dist && npm publish"
"publish": "npm run build && npm run test && cd dist && npm publish --access=public"
},
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion src/bin/veendor.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env node
import program from 'commander';
const {version} = require('../../package.json');
const {version} = require('../package.json');

program
.version(version)
Expand Down
2 changes: 1 addition & 1 deletion src/lib/resolveConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'path';
import {Config} from '@/types';

function resolveConfig(explicitConfig: string): Promise<Config> {
global.VEENDOR_VERSION = require('../../package.json').version;
global.VEENDOR_VERSION = require('../package.json').version;

return new Promise(resolve => {
let config;
Expand Down

0 comments on commit 40e51e1

Please sign in to comment.