Skip to content

Commit

Permalink
chore(create): remove quotes from generated test script
Browse files Browse the repository at this point in the history
  • Loading branch information
fahslaj committed Jul 28, 2022
1 parent 04c0757 commit 46c0cd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Expand Up @@ -134,7 +134,7 @@ index SHA..SHA
+ "url": "git+https://github.com/test/test.git"
+ },
+ "scripts": {
+ "test": "node \\"./__tests__/my-cli.test.js\\""
+ "test": "node ./__tests__/my-cli.test.js"
+ },
+ "dependencies": {
+ "yargs": "^1.0.0-mocked"
Expand Down Expand Up @@ -232,7 +232,7 @@ index SHA..SHA
+ "url": "git+https://github.com/test/test.git"
+ },
+ "scripts": {
+ "test": "node \\"./__tests__/my-es-cli.test.js\\""
+ "test": "node ./__tests__/my-es-cli.test.js"
+ },
+ "dependencies": {
+ "yargs": "^1.0.0-mocked"
Expand Down Expand Up @@ -354,7 +354,7 @@ index SHA..SHA
+ "url": "git+https://github.com/test/test.git"
+ },
+ "scripts": {
+ "test": "node \\"./__tests__/my-pkg.test.js\\""
+ "test": "node ./__tests__/my-pkg.test.js"
+ },
+ "bugs": {
+ "url": "https://github.com/test/test/issues"
Expand Down Expand Up @@ -419,7 +419,7 @@ index SHA..SHA
+ "url": "git+https://github.com/test/test.git"
+ },
+ "scripts": {
+ "test": "node \\"./__tests__/my-pkg.test.js\\""
+ "test": "node ./__tests__/my-pkg.test.js"
+ },
+ "type": "module",
+ "bugs": {
Expand Down
2 changes: 1 addition & 1 deletion commands/create/lib/lerna-module-data.js
Expand Up @@ -193,7 +193,7 @@ if (!this.package.repository) {

if (!this.package.scripts) {
exports.scripts = {
test: `node "./__tests__/${name}.test.js"`,
test: `node ./__tests__/${name}.test.js`,
};
}

Expand Down

0 comments on commit 46c0cd2

Please sign in to comment.