@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 CHANGED
@@ -1 +1 @@
1
- [{"/Users/martin/repos/uscreen/npm/create-fastify-app/bin/cli.js":"1"},{"size":4730,"mtime":1660576700000,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","suppressedMessages":"6","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"sa97p0","/Users/martin/repos/uscreen/npm/create-fastify-app/bin/cli.js",[],[]]
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
@@ -37,8 +37,8 @@ new-app
37
37
  │   └── services
38
38
  │   └── noop.js
39
39
  ├── package.json
40
- ├── pm2-dev.config.js
41
- ├── pm2.config.js
40
+ ├── pm2-dev.config.cjs
41
+ ├── pm2.config.cjs
42
42
  ├── test
43
43
  │   ├── helper.js
44
44
  │   └── noop.test.js
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.js',
104
- stop: 'pm2 delete pm2-dev.config.js',
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.js',
111
- postdeploy: 'pm2 reload pm2.config.js'
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'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uscreen.de/create-fastify-app",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "cli to create a new @uscreen.de/fastify-app",
5
5
  "main": "index.js",
6
6
  "type": "module",