@utoo/pack 0.0.1-alpha.2 → 0.0.1-alpha.20

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack",
3
- "version": "0.0.1-alpha.2",
3
+ "version": "0.0.1-alpha.20",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "exports": {
@@ -49,7 +49,8 @@
49
49
  "resolve-url-loader": "^5.0.0",
50
50
  "sass": "1.54.0",
51
51
  "sass-loader": "^13.2.0",
52
- "ws": "^8.18.1"
52
+ "ws": "^8.18.1",
53
+ "send": "0.17.1"
53
54
  },
54
55
  "devDependencies": {
55
56
  "@napi-rs/cli": "^2.18.0",
@@ -59,6 +60,10 @@
59
60
  "styled-jsx": "^5.1.6",
60
61
  "typescript": "^5.8.3",
61
62
  "@types/ws": "^8.18.1",
63
+ "@types/send": "0.14.4",
64
+ "@types/mime-types": "3.0.1"
65
+ },
66
+ "peerDependencies": {
62
67
  "@types/webpack": "^5.28.5"
63
68
  },
64
69
  "engines": {
@@ -71,17 +76,17 @@
71
76
  "artifacts": "napi artifacts --dir ./src --dist npm",
72
77
  "build:binding": "napi build src --platform --release -p pack-napi --cargo-cwd ../../ --cargo-name pack_napi --features plugin --js binding.js --dts binding.d.ts",
73
78
  "build:binding:local": "napi build src --platform --profile release-local -p pack-napi --cargo-cwd ../../ --cargo-name pack_napi --features plugin --js binding.js --dts binding.d.ts",
74
- "prepublishOnly": "npm run build:esm && npm run build:cjs && napi prepublish -t npm",
79
+ "prepublishOnly": "npm run build:esm && npm run build:cjs && napi prepublish -t npm --skip-gh-release",
75
80
  "version": "napi version"
76
81
  },
77
82
  "repository": "git@github.com:umijs/mako.git",
78
83
  "optionalDependencies": {
79
- "@utoo/pack-darwin-arm64": "0.0.1-alpha.2",
80
- "@utoo/pack-darwin-x64": "0.0.1-alpha.2",
81
- "@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.2",
82
- "@utoo/pack-linux-arm64-musl": "0.0.1-alpha.2",
83
- "@utoo/pack-linux-x64-gnu": "0.0.1-alpha.2",
84
- "@utoo/pack-linux-x64-musl": "0.0.1-alpha.2",
85
- "@utoo/pack-win32-x64-msvc": "0.0.1-alpha.2"
84
+ "@utoo/pack-darwin-arm64": "0.0.1-alpha.20",
85
+ "@utoo/pack-darwin-x64": "0.0.1-alpha.20",
86
+ "@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.20",
87
+ "@utoo/pack-linux-arm64-musl": "0.0.1-alpha.20",
88
+ "@utoo/pack-linux-x64-gnu": "0.0.1-alpha.20",
89
+ "@utoo/pack-linux-x64-musl": "0.0.1-alpha.20",
90
+ "@utoo/pack-win32-x64-msvc": "0.0.1-alpha.20"
86
91
  }
87
92
  }
@@ -1,21 +0,0 @@
1
- import { type SourceMapPayload } from "module";
2
- /**
3
- * https://tc39.es/source-map/#index-map
4
- */
5
- interface IndexSourceMapSection {
6
- offset: {
7
- line: number;
8
- column: number;
9
- };
10
- map: ModernRawSourceMap;
11
- }
12
- interface IndexSourceMap {
13
- version: number;
14
- file: string;
15
- sections: IndexSourceMapSection[];
16
- }
17
- interface ModernRawSourceMap extends SourceMapPayload {
18
- ignoreList?: number[];
19
- }
20
- export type ModernSourceMapPayload = ModernRawSourceMap | IndexSourceMap;
21
- export {};
package/cjs/sourceMap.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
package/cjs/watch.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { ProjectOptions } from "./types";
2
- export declare function watch(options: ProjectOptions, projectPath: string, rootPath?: string): Promise<void>;
package/cjs/watch.js DELETED
@@ -1,14 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.watch = watch;
4
- const hotReloader_1 = require("./hotReloader");
5
- const util_1 = require("./util");
6
- const xcodeProfile_1 = require("./xcodeProfile");
7
- async function watch(options, projectPath, rootPath) {
8
- (0, util_1.blockStdout)();
9
- if (process.env.XCODE_PROFILE) {
10
- await (0, xcodeProfile_1.xcodeProfilingReady)();
11
- }
12
- const hotReloader = await (0, hotReloader_1.createHotReloader)(options, projectPath, rootPath);
13
- await hotReloader.start();
14
- }
@@ -1,21 +0,0 @@
1
- import { type SourceMapPayload } from "module";
2
- /**
3
- * https://tc39.es/source-map/#index-map
4
- */
5
- interface IndexSourceMapSection {
6
- offset: {
7
- line: number;
8
- column: number;
9
- };
10
- map: ModernRawSourceMap;
11
- }
12
- interface IndexSourceMap {
13
- version: number;
14
- file: string;
15
- sections: IndexSourceMapSection[];
16
- }
17
- interface ModernRawSourceMap extends SourceMapPayload {
18
- ignoreList?: number[];
19
- }
20
- export type ModernSourceMapPayload = ModernRawSourceMap | IndexSourceMap;
21
- export {};
package/esm/sourceMap.js DELETED
@@ -1 +0,0 @@
1
- export {};
package/esm/watch.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import { ProjectOptions } from "./types";
2
- export declare function watch(options: ProjectOptions, projectPath: string, rootPath?: string): Promise<void>;
package/esm/watch.js DELETED
@@ -1,11 +0,0 @@
1
- import { createHotReloader } from "./hotReloader";
2
- import { blockStdout } from "./util";
3
- import { xcodeProfilingReady } from "./xcodeProfile";
4
- export async function watch(options, projectPath, rootPath) {
5
- blockStdout();
6
- if (process.env.XCODE_PROFILE) {
7
- await xcodeProfilingReady();
8
- }
9
- const hotReloader = await createHotReloader(options, projectPath, rootPath);
10
- await hotReloader.start();
11
- }