zero-com 1.3.0 → 1.5.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.
@@ -0,0 +1,8 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npm run build:*)",
5
+ "Bash(npm test)"
6
+ ]
7
+ }
8
+ }
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export * from './lib/runtime';
@@ -14,4 +14,4 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./runtime"), exports);
17
+ __exportStar(require("./lib/runtime"), exports);
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
3
6
  exports.default = zeroComLoader;
7
+ const path_1 = __importDefault(require("path"));
4
8
  const common_1 = require("./common");
5
9
  function zeroComLoader(source) {
6
10
  const options = this.getOptions();
@@ -9,7 +13,6 @@ function zeroComLoader(source) {
9
13
  if (!result.transformed) {
10
14
  return source;
11
15
  }
12
- const jsContent = (0, common_1.emitToJs)(filePath, result.content);
13
- console.log(`[ZeroComWebpackPlugin] Transformed: ${filePath}`);
14
- return jsContent;
16
+ console.log(`[ZeroComWebpackPlugin] Transformed: ${path_1.default.basename(filePath)}`);
17
+ return result.content;
15
18
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zero-com",
3
- "version": "1.3.0",
3
+ "version": "1.5.0",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/yosbelms/zero-com",
6
6
  "keywords": [
@@ -12,7 +12,7 @@
12
12
  "client"
13
13
  ],
14
14
  "scripts": {
15
- "build": "npx tsc -d",
15
+ "build": "npx tsc -p tsconfig.build.json -d",
16
16
  "test": "vitest run",
17
17
  "test:watch": "vitest",
18
18
  "clean": "find . -type f \\( -name \"*.js\" -o -name \"*.js.map\" -o -name \"*.d.ts\" -o -name \"*.d.ts.map\" \\) | grep -v \"./node_modules\" | xargs rm",
@@ -26,6 +26,7 @@
26
26
  "ts-morph": "^26.0.0"
27
27
  },
28
28
  "devDependencies": {
29
+ "@types/node": "^25.0.10",
29
30
  "@types/webpack": "^5.28.5",
30
31
  "rollup": "^4.52.5",
31
32
  "typescript": "^5.8.3",
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "include": ["index.ts", "lib/**/*"],
4
+ "exclude": ["test", "node_modules"]
5
+ }
package/tsconfig.json CHANGED
@@ -103,10 +103,13 @@
103
103
  /* Completeness */
104
104
  // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
105
105
  "skipLibCheck": true, /* Skip type checking all .d.ts files. */
106
+ "types": ["node"],
106
107
  "paths": {
107
108
  "zero-com": [
108
- "./lib/index.ts"
109
+ "./index.ts"
109
110
  ]
110
111
  }
111
- }
112
+ },
113
+ "include": ["index.ts", "lib/**/*", "test/**/*"],
114
+ "exclude": ["node_modules"]
112
115
  }
package/lib/index.d.ts DELETED
@@ -1 +0,0 @@
1
- export * from './runtime';