pwi-plata-type 0.1.9 → 0.1.10

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/Dockerfile ADDED
@@ -0,0 +1,13 @@
1
+ FROM node:16-alpine
2
+
3
+ WORKDIR /usr/src/app
4
+
5
+ COPY package*.json ./
6
+
7
+ EXPOSE 3050
8
+
9
+ RUN npm ci --only=production
10
+
11
+ COPY . ./
12
+
13
+ CMD [ "node", "/usr/src/app" ]
package/README.md ADDED
@@ -0,0 +1,2 @@
1
+ # ModeloNodejs
2
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pwi-plata-type",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "type": "module",
5
5
  "main": "index.ts",
6
6
  "bin": {
package/postinstall.js CHANGED
@@ -2,7 +2,6 @@ import * as fs from 'node:fs'
2
2
  import * as path from 'node:path'
3
3
 
4
4
  const main = async () => {
5
- global.__dirname = path.dirname('')
6
5
  const plataDir = path.resolve('.')
7
6
  const templatesDir = path.resolve(plataDir, 'templates', 'postinstall')
8
7
  const projectDir = path.resolve(plataDir, '..', '..')
@@ -19,7 +18,7 @@ const main = async () => {
19
18
 
20
19
  const templateDir = path.join(templatesDir, projectPackageJson.plata_type)
21
20
 
22
- const { install } = await import(`file://${path.join(templateDir, '_install.mjs')}`)
21
+ const { install } = await import(path.join(templateDir, '_install.mjs'))
23
22
 
24
23
  projectPackageJson = await install({
25
24
  dirs: {
@@ -1,5 +1,5 @@
1
1
  export async function install({ dirs, projectPackageJson }) {
2
- const { tools } = await import(`file://${__dirname}/../../../postinstall-tools.mjs`)
2
+ const { tools } = await import('../../../postinstall-tools.mjs')
3
3
  const promises = []
4
4
 
5
5
  const t = tools(dirs)
@@ -1,5 +1,5 @@
1
1
  export async function install({ dirs, projectPackageJson }) {
2
- const { tools } = await import(`file://${__dirname}/../../../postinstall-tools.mjs`)
2
+ const { tools } = await import('../../../postinstall-tools.mjs')
3
3
  const promises = []
4
4
 
5
5
  const t = tools(dirs)