@beecode/msh-cli 2.1.3 → 2.1.4

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.
@@ -0,0 +1 @@
1
+ {"type": "module", "imports": {"#packageJson": "../package.json", "#src": "./index.js", "#src/*": "./*.js"}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beecode/msh-cli",
3
- "version": "2.1.3",
3
+ "version": "2.1.4",
4
4
  "description": "MicroService Shell helper",
5
5
  "keywords": [
6
6
  "shell",
@@ -21,8 +21,8 @@
21
21
  "type": "module",
22
22
  "imports": {
23
23
  "#packageJson": "./package.json",
24
- "#src": "./dist/index.js",
25
- "#src/*": "./dist/*.js"
24
+ "#src": "./src/index.ts",
25
+ "#src/*": "./src/*.ts"
26
26
  },
27
27
  "exports": {
28
28
  ".": {
@@ -52,7 +52,7 @@
52
52
  ],
53
53
  "scripts": {
54
54
  "babel": "npx babel --extensions .ts",
55
- "build": "npm run clean && npm run tsc",
55
+ "build": "npm run clean && npm run tsc && npm run fix-hybrid-lib-esm",
56
56
  "build-cjs": "npm run clean-cjs && npm run tsc-cjs && npm run tsc-types && npm run tsc-types-alias && npm run fix-hybrid-lib-cjs",
57
57
  "clean": "rimraf ./dist",
58
58
  "clean-cjs": "rimraf ./lib",
@@ -64,6 +64,7 @@
64
64
  "docker-run-package-lock-update": "docker run --rm -v ./:/usr/app/ milosbugarinovic/msh-lib-base:node22.14.0-alpine3.21 npm i --package-lock-only",
65
65
  "docker-run-sh": "docker run --rm -it bc-msh-cli sh",
66
66
  "fix-hybrid-lib-cjs": "mkdir -p ./lib && echo '{\"type\": \"commonjs\"}' > ./lib/package.json",
67
+ "fix-hybrid-lib-esm": "mkdir -p ./dist && echo '{\"type\": \"module\", \"imports\": {\"#packageJson\": \"../package.json\", \"#src\": \"./index.js\", \"#src/*\": \"./*.js\"}}' > ./dist/package.json",
67
68
  "init": "concurrently -c auto 'npm:init:*'",
68
69
  "init:git-config": "git config include.path ./.git-config",
69
70
  "init:husky": "npx husky install",