@impactor/nodejs 3.0.4 → 5.0.0

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.
Files changed (2) hide show
  1. package/package.json +7 -6
  2. package/nx.json +0 -174
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@impactor/nodejs",
3
- "version": "3.0.4",
3
+ "version": "5.0.0",
4
4
  "type": "module",
5
5
  "description": "nodejs utils",
6
6
  "private": false,
@@ -20,7 +20,7 @@
20
20
  }
21
21
  },
22
22
  "imports": {
23
- "#*": "./src/*"
23
+ "#*": "./*"
24
24
  },
25
25
  "exports": {
26
26
  ".": {
@@ -38,12 +38,11 @@
38
38
  "types": "./index.d.ts",
39
39
  "main": "./index.js",
40
40
  "dependencies": {
41
- "@impactor/cache": "3.0.4",
42
- "@impactor/javascript": "3.0.4",
41
+ "@impactor/cache": "5.0.0",
42
+ "@impactor/javascript": "5.0.0",
43
43
  "content-type": "^1.0.5"
44
44
  },
45
45
  "devDependencies": {
46
- "@types/content-type": "^1.1.9",
47
46
  "tsx": "^4.21.0"
48
47
  },
49
48
  "engines": {
@@ -71,5 +70,7 @@
71
70
  "url": "https://www.patreon.com/GoogleDev"
72
71
  }
73
72
  ],
74
- "scripts": {}
73
+ "scripts": {
74
+ "start": "NODE_ENV=production pnpm tsx --env-file-if-exists=.env --env-file-if-exists=.env.local --env-file-if-exists=.env.production --env-file-if-exists=.env.production.local main.js"
75
+ }
75
76
  }
package/nx.json DELETED
@@ -1,174 +0,0 @@
1
- {
2
- "$schema": "./node_modules/nx/schemas/nx-schema.json",
3
- "targetDefaults": {
4
- "build": {
5
- "executor": "@impactor/nx-manager:universal-builder",
6
- "dependsOn": ["typecheck", "prebuild", "^build"],
7
- "cache": true,
8
- "inputs": ["default", "^default"],
9
- "outputs": ["{projectRoot}/dist"],
10
- "options": {
11
- "forceRnDefaultPostBuild": true
12
- }
13
- },
14
- "serve": {
15
- "executor": "nx:run-commands",
16
- "dependsOn": ["build", "preserve"],
17
- "continuous": true,
18
- "options": {
19
- "cwd": "{projectRoot}",
20
- "command": "NODE_ENV=development pnpm tsx --env-file-if-exists=.env --env-file-if-exists=.env.local dist/main.js"
21
- },
22
- "configurations": {
23
- "production": {
24
- "command": "NODE_ENV=production pnpm tsx --env-file-if-exists=.env --env-file-if-exists=.env.local --env-file-if-exists=.env.production --env-file-if-exists=.env.production.local dist/main.js"
25
- }
26
- }
27
- },
28
- "nx-release-publish": {
29
- "options": {
30
- "packageRoot": "{projectRoot}/dist"
31
- }
32
- },
33
- "test": {
34
- "inputs": ["test"],
35
- "outputs": ["{workspaceRoot}/coverage/{projectRoot}"],
36
- "dependsOn": ["^build", "pretest"],
37
- "configurations": {
38
- "unit": {
39
- "args": [
40
- "--testPathIgnorePatterns '.*\\.e2e\\.spec\\.ts$'",
41
- "--testPathIgnorePatterns '/.*-e2e/'",
42
- "--testPathIgnorePatterns '/.*-e2e/'"
43
- ]
44
- },
45
- "e2e": {
46
- "args": [
47
- "--testMatch '**/*-e2e/**/*.{spec,test}.[mc]?[jt]s?(x)'",
48
- "--testMatch '**/e2e/**/*.{spec,test}.[mc]?[jt]s?(x)'",
49
- "--testMatch '**/*.e2e.(spec|test).?([mc])[jt]s?(x)'"
50
- ]
51
- }
52
- }
53
- },
54
- "@angular/build:application": {
55
- "cache": true,
56
- "dependsOn": ["prebuild", "^build"],
57
- "inputs": ["default", "^default"]
58
- },
59
- "@nx/angular:package": {
60
- "cache": true,
61
- "dependsOn": ["^build"],
62
- "inputs": ["default", "^default"],
63
- "outputs": ["{projectRoot}/dist"],
64
- "options": {
65
- "project": "{projectRoot}/ng-package.json",
66
- "tsConfig": "{projectRoot}/tsconfig.lib.json"
67
- }
68
- },
69
- "@nx/js:tsc": {
70
- "cache": true,
71
- "dependsOn": ["^build"],
72
- "inputs": ["default", "^default"]
73
- }
74
- },
75
- "namedInputs": {
76
- "default": [
77
- "{projectRoot}/src/**/*",
78
- "!{projectRoot}/**/*.(spec|test)(.e2e)?.[tj]sx?",
79
- "!{projectRoot}/**/e2e/**/*",
80
- "{projectRoot}/.env(.*)?",
81
- "{workspaceRoot}/tasks/(post-)?build.ts",
82
- "{projectRoot}/(project|package|tsconfig)(.+)?.json",
83
- "{workspaceRoot}/tsconfig.base.json",
84
- {
85
- "runtime": "node --version"
86
- },
87
- {
88
- "env": "NODE_ENV"
89
- }
90
- ],
91
- "test": [
92
- "default",
93
- "{projectRoot}/tsconfig.spec.json",
94
- "{projectRoot}/jest.config.[jt]s",
95
- "{workspaceRoot}/jest.config.[jt]s",
96
- "{projectRoot}/**/*.(spec|test)(.e2e)?.[jt]sx?",
97
- "{projectRoot}/**/e2e/**/*.[jt]sx?",
98
- {
99
- "externalDependencies": ["jest"]
100
- }
101
- ]
102
- },
103
- "plugins": [
104
- {
105
- "plugin": "@nx/js/typescript",
106
- "options": {
107
- "typecheck": {
108
- "targetName": "typecheck"
109
- },
110
- "build": false
111
- }
112
- },
113
- {
114
- "plugin": "@nx/jest/plugin",
115
- "options": {
116
- "targetName": "test",
117
- "ciTargetName": "test-ci"
118
- }
119
- }
120
- ],
121
- "tasksRunnerOptions": {
122
- "default": {
123
- "options": {
124
- "useDaemonProcess": false
125
- }
126
- }
127
- },
128
- "generators": {
129
- "@nx/angular:library": {
130
- "linter": "eslint",
131
- "unitTestRunner": "jest"
132
- },
133
- "@nx/angular:component": {
134
- "style": "scss"
135
- }
136
- },
137
- "release": {
138
- "groups": {
139
- "libs": {
140
- "projects": ["libs/*"]
141
- },
142
- "apps": {
143
- "projects": ["apps/*"],
144
- "changelog": {
145
- "projectChangelogs": {
146
- "createRelease": "github"
147
- }
148
- }
149
- }
150
- },
151
- "projectsRelationship": "independent",
152
- "version": {
153
- "conventionalCommits": true,
154
- "updateDependents": "always",
155
- "preVersionCommand": "pnpm nx run-many -t build",
156
- "manifestRootsToUpdate": [
157
- "{projectRoot}",
158
- {
159
- "path": "{projectRoot}/dist",
160
- "preserveLocalDependencyProtocols": false
161
- }
162
- ]
163
- },
164
- "releaseTag": {
165
- "pattern": "{projectName}@{version}"
166
- },
167
- "changelog": {
168
- "projectChangelogs": true
169
- }
170
- },
171
- "sync": {
172
- "applyChanges": false
173
- }
174
- }