Skip to content
This repository has been archived by the owner on Mar 14, 2022. It is now read-only.

Commit

Permalink
make obt install always create a package-lock.json file (#966)
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeChampion authored Feb 11, 2021
1 parent 15fd16e commit 5073fb7
Show file tree
Hide file tree
Showing 24 changed files with 11,483 additions and 373 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ node_modules
npm-debug.log*
.DS_Store
.editorconfig
/test/integration/*/fixtures/*/package-lock.json
test/integration/demo/fixtures/no-demos/o-component-boilerplate/
ws-*
9 changes: 1 addition & 8 deletions lib/tasks/run-npm-install.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,7 @@
'use strict';

const commandLine = require('../helpers/command-line');
const files = require('../helpers/files');

module.exports = function runNpmInstall(options = {}) {
return files.packageLockJsonExists(options.cwd).then(packageLockJsonExists => {
const command = packageLockJsonExists
? ['i']
: ['install', '--no-shrinkwrap'];

return commandLine.run('npm', command, options);
});
return commandLine.run('npm', ['install'], options);
};

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {},
"devDependencies": {
"eslint-config-origami-component": "^1.1.1"
}
Expand Down
3 changes: 1 addition & 2 deletions test/integration/verify/fixtures/js-es5/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
"main": [
"main.js"
],
"type": "module",
"dependencies": {}
"type": "module"
}
3 changes: 1 addition & 2 deletions test/integration/verify/fixtures/js-es6/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
"main": [
"main.js"
],
"type": "module",
"dependencies": {}
"type": "module"
}
3 changes: 1 addition & 2 deletions test/integration/verify/fixtures/js-es7/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@
"main": [
"main.js"
],
"type": "module",
"dependencies": {}
"type": "module"
}
1 change: 0 additions & 1 deletion test/integration/verify/fixtures/js-invalid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {},
"devDependencies": {
"eslint-config-origami-component": "^1.1.1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {},
"devDependencies": {
"remark-preset-lint-origami-component": "2.0.0-beta.1",
"stylelint": "^13.7.0",
Expand Down
1 change: 0 additions & 1 deletion test/integration/verify/fixtures/no-readme/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {},
"devDependencies": {
"remark-preset-lint-origami-component": "2.0.0-beta.1"
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "test-component",
"main": [],
"type": "module",
"dependencies": {}
"type": "module"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {},
"devDependencies": {
"remark-preset-lint-origami-component": "2.0.0-beta.1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {},
"devDependencies": {
"eslint-config-origami-component": "^1.1.1",
"remark-preset-lint-origami-component": "2.0.0-beta.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {},
"devDependencies": {
"remark-preset-lint-origami-component": "2.0.0-beta.1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {},
"devDependencies": {
"remark-preset-lint-origami-component": "2.0.0-beta.1"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"author": "",
"license": "ISC",
"type": "module",
"dependencies": {},
"devDependencies": {
"remark-preset-lint-origami-component": "2.0.0-beta.1",
"stylelint": "^13.7.0",
Expand Down
3 changes: 1 addition & 2 deletions test/integration/verify/fixtures/sass/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"name": "test-component",
"type": "module",
"dependencies": {}
"type": "module"
}
Loading

0 comments on commit 5073fb7

Please sign in to comment.