MCPcopy
hub / github.com/vueuse/vue-demi / copy

Function copy

scripts/utils.js:14–25  ·  view source on GitHub ↗
(name, version, vue)

Source from the content-addressed store, hash-verified

12}
13
14function copy(name, version, vue) {
15 vue = vue || 'vue'
16 const src = path.join(dir, `v${version}`, name)
17 const dest = path.join(dir, name)
18 let content = fs.readFileSync(src, 'utf-8')
19 content = content.replace(/'vue'/g, `'${vue}'`)
20 // unlink for pnpm, #92
21 try {
22 fs.unlinkSync(dest)
23 } catch (error) { }
24 fs.writeFileSync(dest, content, 'utf-8')
25}
26
27function updateVue2API() {
28 const ignoreList = ['version', 'default']

Callers 1

switchVersionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…