Skip to content

Commit d1baf16

Browse files
committed
remove wildcard on pack install
1 parent 3e79678 commit d1baf16

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "typescript-bundle",
3-
"version": "1.0.10",
3+
"version": "1.0.11",
44
"description": " A zero configuration bundling tool for TypeScript.",
55
"scripts": {
66
"clean": "smoke-task clean",

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import { writeFileSync } from 'fs'
3737
async function info() {
3838
const green = '\x1b[32m'
3939
const esc = '\x1b[0m'
40-
console.log(`Version 1.0.10
40+
console.log(`Version 1.0.11
4141
4242
Examples: ${green}tsc-bundle${esc} index.ts
4343
${green}tsc-bundle${esc} tsconfig.json

tasks.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ THE SOFTWARE.
2626
2727
---------------------------------------------------------------------------*/
2828

29+
const package = require(`${process.cwd()}/package.json`)
30+
2931
async function build_amd_template(target) {
3032
const template = `./src/bundler/loader/templates/template.ts`
3133
const outFile = `./src/bundler/loader/templates/${target}.ts`
@@ -69,7 +71,7 @@ export async function spec() {
6971

7072
export async function install_cli () {
7173
await pack()
72-
await shell('cd ./output/pack && npm install ./typescript-bundle-1.0.10.tgz -g')
74+
await shell(`cd ./output/pack && npm install ./typescript-bundle-${package.version}.tgz -g`)
7375
}
7476

7577
export async function watch() {

0 commit comments

Comments
 (0)