Skip to content

Commit

Permalink
chore: update generated package.jsons
Browse files Browse the repository at this point in the history
  • Loading branch information
lishaduck authored and jfmengels committed Nov 11, 2024
1 parent f9a57e4 commit 0cad168
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 9 deletions.
11 changes: 8 additions & 3 deletions lib/new-package.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,7 @@ ElmjutsuDumMyM0DuL3.elm
const licenseArgs = options.forTests ? '--name "Test User" --year 2020' : '';
try {
childProcess.execSync(
// TODO(@lishaduck): Evaluate calling the API instead.
`npx license ${license} --projectName "${authorName}/${packageName}" ${licenseArgs}`,
{
cwd: dir,
Expand Down Expand Up @@ -445,6 +446,7 @@ elm-review --template ${authorName}/${packageName}/example
function packageJson(options, packageName) {
return {
name: packageName,
private: true,
scripts: {
test: 'npm-run-all --print-name --silent --sequential test:make test:format test:run test:review test:package',
'test:make': 'elm make --docs=docs.json',
Expand All @@ -459,11 +461,14 @@ function packageJson(options, packageName) {
'update-examples': 'node maintenance/update-examples-from-preview.js',
postinstall: 'elm-tooling install'
},
dependencies: {
engines: {
node: '>=14.21.3'
},
devDependencies: {
'elm-doc-preview': '^5.0.5',
'elm-review': `^${options.packageJsonVersion}`,
'elm-test': '^0.19.1-revision10',
'elm-tooling': '^1.13.1',
'elm-test': '^0.19.1-revision12',
'elm-tooling': '^1.15.1',
'fs-extra': '^9.0.0',
glob: '^9.3.1',
'npm-run-all': '^4.1.5'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "elm-review-something",
"private": true,
"scripts": {
"test": "npm-run-all --print-name --silent --sequential test:make test:format test:run test:review test:package",
"test:make": "elm make --docs=docs.json",
Expand All @@ -13,11 +14,14 @@
"update-examples": "node maintenance/update-examples-from-preview.js",
"postinstall": "elm-tooling install"
},
"dependencies": {
"engines": {
"node": ">=14.21.3"
},
"devDependencies": {
"elm-doc-preview": "^5.0.5",
"elm-review": "^2.12.0",
"elm-test": "^0.19.1-revision10",
"elm-tooling": "^1.13.1",
"elm-test": "^0.19.1-revision12",
"elm-tooling": "^1.15.1",
"fs-extra": "^9.0.0",
"glob": "^9.3.1",
"npm-run-all": "^4.1.5"
Expand Down
10 changes: 7 additions & 3 deletions test/run-snapshots/elm-review-something/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "elm-review-something",
"private": true,
"scripts": {
"test": "npm-run-all --print-name --silent --sequential test:make test:format test:run test:review test:package",
"test:make": "elm make --docs=docs.json",
Expand All @@ -13,11 +14,14 @@
"update-examples": "node maintenance/update-examples-from-preview.js",
"postinstall": "elm-tooling install"
},
"dependencies": {
"engines": {
"node": ">=14.21.3"
},
"devDependencies": {
"elm-doc-preview": "^5.0.5",
"elm-review": "^2.12.0",
"elm-test": "^0.19.1-revision10",
"elm-tooling": "^1.13.1",
"elm-test": "^0.19.1-revision12",
"elm-tooling": "^1.15.1",
"fs-extra": "^9.0.0",
"glob": "^9.3.1",
"npm-run-all": "^4.1.5"
Expand Down

0 comments on commit 0cad168

Please sign in to comment.