diff --git a/lib/new-package.js b/lib/new-package.js index e4c02c394..2ae5bb6ca 100644 --- a/lib/new-package.js +++ b/lib/new-package.js @@ -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, @@ -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', @@ -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' diff --git a/test/run-snapshots/elm-review-something-for-new-rule/package.json b/test/run-snapshots/elm-review-something-for-new-rule/package.json index f3024db52..2d3144daf 100644 --- a/test/run-snapshots/elm-review-something-for-new-rule/package.json +++ b/test/run-snapshots/elm-review-something-for-new-rule/package.json @@ -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", @@ -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" diff --git a/test/run-snapshots/elm-review-something/package.json b/test/run-snapshots/elm-review-something/package.json index f3024db52..2d3144daf 100644 --- a/test/run-snapshots/elm-review-something/package.json +++ b/test/run-snapshots/elm-review-something/package.json @@ -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", @@ -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"