@platformatic/watt-admin 0.1.0 → 0.1.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/cli.js CHANGED
@@ -142,6 +142,9 @@ async function main () {
142
142
  // Execute the main function if this script is run directly
143
143
  if (require.main === module) {
144
144
  main().then((selectedRuntime) => {
145
+ if (!selectedRuntime) {
146
+ return
147
+ }
145
148
  console.log('Starting Watt admin...')
146
149
  console.log('--------')
147
150
  return start(selectedRuntime.pid)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/watt-admin",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "scripts": {
5
5
  "prepublishOnly": "npm run build",
6
6
  "dev": "wattpm dev",
@@ -0,0 +1,21 @@
1
+ {
2
+ "extends": "fastify-tsconfig",
3
+ "compilerOptions": {
4
+ "sourceMap": true,
5
+ "pretty": true,
6
+ "noEmitOnError": true,
7
+ "incremental": true,
8
+ "outDir": "dist",
9
+ "noUnusedParameters": true
10
+ },
11
+ "watchOptions": {
12
+ "watchFile": "fixedPollingInterval",
13
+ "watchDirectory": "fixedPollingInterval",
14
+ "fallbackPolling": "dynamicPriority",
15
+ "synchronousWatchDirectory": true,
16
+ "excludeDirectories": [
17
+ "**/node_modules",
18
+ "dist"
19
+ ]
20
+ }
21
+ }
@@ -0,0 +1,29 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2020",
4
+ "useDefineForClassFields": true,
5
+ "lib": ["ES2020", "DOM", "DOM.Iterable"],
6
+ "module": "ESNext",
7
+ "skipLibCheck": true,
8
+
9
+ /* Bundler mode */
10
+ "moduleResolution": "bundler",
11
+ "allowImportingTsExtensions": true,
12
+ "resolveJsonModule": true,
13
+ "isolatedModules": true,
14
+ "noEmit": true,
15
+ "jsx": "react-jsx",
16
+
17
+ /* Linting */
18
+ "strict": true,
19
+ "noImplicitAny": true,
20
+ "noUnusedLocals": true,
21
+ "noUnusedParameters": true,
22
+ "noFallthroughCasesInSwitch": true,
23
+
24
+ /* Paths */
25
+ "baseUrl": "."
26
+ },
27
+ "include": ["src", "*.d.ts"],
28
+ "references": [{ "path": "./tsconfig.node.json" }]
29
+ }