Skip to content

Commit a5c75f9

Browse files
committed
fix build script (update index.js before build)
1 parent 689def5 commit a5c75f9

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed

build/build.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ var banner =
1313
' * Released under the MIT License.\n' +
1414
' */'
1515

16+
// update main file
17+
var main = fs
18+
.readFileSync('src/index.js', 'utf-8')
19+
.replace(/Vue\.version = '[\d\.]+'/, "Vue.version = '" + version + "'")
20+
fs.writeFileSync('src/index.js', main)
21+
1622
// CommonJS build.
1723
// this is used as the "main" field in package.json
1824
// and used by bundlers like Webpack and Browserify.

dist/vue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9274,7 +9274,7 @@
92749274
partial: partial
92759275
};
92769276

9277-
Vue.version = '1.0.8';
9277+
Vue.version = '1.0.9';
92789278

92799279
/**
92809280
* Vue and every constructor that extends Vue has an

dist/vue.min.js

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

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import elementDirectives from './directives/element/index'
44
import filters from './filters/index'
55
import { inBrowser } from './util/index'
66

7-
Vue.version = '1.0.8'
7+
Vue.version = '1.0.9'
88

99
/**
1010
* Vue and every constructor that extends Vue has an

0 commit comments

Comments
 (0)