Skip to content

Commit 32a56b8

Browse files
committed
allow yarn again
1 parent 418e7ba commit 32a56b8

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

createReactWpTheme.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,15 @@ const _getScriptsPath = function() {
5757
const scriptsFromNpm = function() {
5858
//path: "@devloco/react-scripts-test",
5959
//path: "@devloco/react-scripts-wptheme",
60+
//console.log('SCRIPTS FROM NPM');
6061
return {
6162
path: "@devloco/react-scripts-wptheme",
6263
callback: function() {}
6364
};
6465
};
6566

6667
const scriptsFromGit = function() {
68+
console.log('SCRIPTS FROM GIT');
6769
const deleteFolderRecursive = (path) => {
6870
if (fs.existsSync(path)) {
6971
fs.readdirSync(path).forEach(function(file) {
@@ -98,6 +100,7 @@ const scriptsFromGit = function() {
98100
};
99101

100102
const scriptsFromFile = function() {
103+
console.log('SCRIPTS FROM FILE');
101104
// let filePath = "file:E:\\WPDev\\github\\devloco\\react-scripts-wptheme";
102105
let filePath = "file:/mnt/e/WPDev/github/devloco/create-react-app/packages/react-scripts";
103106
return {
@@ -208,7 +211,6 @@ function createApp(
208211
console.log();
209212

210213
let useYarn = useNpm ? false : shouldUseYarn();
211-
useYarn = false; // always use NPM for now.
212214

213215
const originalDirectory = process.cwd();
214216
process.chdir(root); // change into the newly created folder, then run create-react-app.

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": "create-react-wptheme",
3-
"version": "2.1.1-wptheme-2.0.9",
3+
"version": "2.1.1-wptheme-2.1.0",
44
"description": "Create React WP themes with no build configuration.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)