Skip to content

Commit

Permalink
workflow: update core repo
Browse files Browse the repository at this point in the history
  • Loading branch information
patzick committed Dec 4, 2019
1 parent 81a5cdf commit 9c728e1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 19 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"workspaces": {
"packages": [
"packages/*",
"vsf-core-packages/*",
"storefront-ui/*"
"vsf-core-packages/*"
],
"nohoist": [
"**/**/**"
Expand Down
4 changes: 2 additions & 2 deletions scripts/prepareCoreRepoClone.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const fs = require("fs-extra");

const tempDir = path.resolve(__dirname, "../temp");
const repoDir = `${tempDir}/next`;
const nuxtModuleDir = `${repoDir}/packages/nuxt-module`;
const nuxtModuleDir = `${repoDir}/packages/core/nuxt-module`;
const corePackagesDir = path.resolve(__dirname, "../vsf-core-packages");
const nuxtModuleDestinationDir = `${corePackagesDir}/nuxt-module`;

Expand All @@ -22,7 +22,7 @@ async function run() {
await execa("git", ["clone", "https://github.com/DivanteLtd/next", repoDir], {
stdio: "inherit"
});
if (!fs.existsSync(nuxtModuleDestinationDir)) {
if (!fs.existsSync(corePackagesDir)) {
fs.mkdirSync(corePackagesDir);
}

Expand Down
2 changes: 1 addition & 1 deletion vsf-core-packages/nuxt-module/lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ module.exports = function VueStorefrontNuxtModule (moduleOptions) {
//----------------------s--------------

// Using symlinks in lerna somehow breaks composition API behavior as a singleton.
if (options.coreDevelopment === true || options.coreDevelopment.enabled === true) {
if (options.coreDevelopment === true) {
log.info(`Vue Storefront core development mode is on. ${chalk.italic('[coreDevelopment]')}`)
this.extendBuild(config => {
config.resolve.alias['@vue/composition-api'] = path.resolve('node_modules/@vue/composition-api')
Expand Down
14 changes: 0 additions & 14 deletions vsf-core-packages/nuxt-module/package-lock.json

This file was deleted.

0 comments on commit 9c728e1

Please sign in to comment.