@uscreen.de/create-fastify-app 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintcache +1 -1
- package/README.md +2 -2
- package/bin/cli.js +5 -4
- package/package.json +1 -1
package/.eslintcache
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"/Users/martin/repos/uscreen/npm/create-fastify-app/bin/cli.js":"1"},{"size":
|
|
1
|
+
[{"/Users/martin/repos/uscreen/npm/create-fastify-app/bin/cli.js":"1"},{"size":4769,"mtime":1669380908819,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1s60doj","/Users/martin/repos/uscreen/npm/create-fastify-app/bin/cli.js",[],[]]
|
package/README.md
CHANGED
package/bin/cli.js
CHANGED
|
@@ -98,17 +98,18 @@ const addPackageConfig = (path, skelPath) => {
|
|
|
98
98
|
delete pack.packageJson.readme
|
|
99
99
|
|
|
100
100
|
pack.packageJson.main = skelPack.packageJson.main
|
|
101
|
+
pack.packageJson.type = 'module'
|
|
101
102
|
|
|
102
103
|
pack.packageJson.scripts = Object.assign(pack.packageJson.scripts || {}, {
|
|
103
|
-
start: 'pm2 start pm2-dev.config.
|
|
104
|
-
stop: 'pm2 delete pm2-dev.config.
|
|
104
|
+
start: 'pm2 start pm2-dev.config.cjs',
|
|
105
|
+
stop: 'pm2 delete pm2-dev.config.cjs',
|
|
105
106
|
logs: `pm2 logs ${pack.packageJson.name} --raw | pino-pretty -t`,
|
|
106
107
|
lint: "eslint '**/*.js' --fix",
|
|
107
108
|
test: 'tap test/**/*.test.js',
|
|
108
109
|
'test:cov': 'tap --coverage-report=html test/**/*.test.js',
|
|
109
110
|
'test:ci': 'tap --coverage-report=text-summary test/**/*.test.js',
|
|
110
|
-
deploy: 'pm2 deploy pm2.config.
|
|
111
|
-
postdeploy: 'pm2 reload pm2.config.
|
|
111
|
+
deploy: 'pm2 deploy pm2.config.cjs',
|
|
112
|
+
postdeploy: 'pm2 reload pm2.config.cjs'
|
|
112
113
|
})
|
|
113
114
|
pack.packageJson.gitHooks = {
|
|
114
115
|
'pre-commit': 'lint-staged'
|