@utoo/pack 0.0.1-alpha.47 → 0.0.1-alpha.49

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/cjs/dev.js CHANGED
@@ -132,7 +132,9 @@ async function startServer(serverOptions, bundleOptions, projectPath, rootPath)
132
132
  if (portRetryCount) {
133
133
  console.warn(`Port ${originalPort} is in use, using available port ${port} instead.`);
134
134
  }
135
- console.log(`Listening on ${serverOptions.https ? "https" : "http"}://${formattedHostname}:${port} ...`);
135
+ if (process.env.TURBOPACK_DEBUG_JS) {
136
+ console.log(`Listening on ${serverOptions.https ? "https" : "http"}://${formattedHostname}:${port} ...`);
137
+ }
136
138
  try {
137
139
  let cleanupStarted = false;
138
140
  let closeUpgraded = null;
package/cjs/types.d.ts CHANGED
@@ -86,7 +86,6 @@ export type TurbopackRuleCondition = {
86
86
  };
87
87
  export interface ModuleOptions {
88
88
  rules?: Record<string, TurbopackRuleConfigItem>;
89
- conditions?: Record<string, TurbopackRuleCondition>;
90
89
  }
91
90
  export interface ResolveOptions {
92
91
  alias?: Record<string, string | string[] | Record<string, string | string[]>>;
@@ -292,7 +292,9 @@ function compatResolve(webpackResolve) {
292
292
  ? alias.reduce((acc, cur) => Object.assign(acc, { [cur.name]: cur.alias }), {})
293
293
  : Object.entries(alias).reduce((acc, [k, v]) => {
294
294
  if (typeof v === "string") {
295
- Object.assign(acc, { [k]: v });
295
+ // Handle alias keys ending with $ by removing the $
296
+ const aliasKey = k.endsWith("$") ? k.slice(0, -1) : k;
297
+ Object.assign(acc, { [aliasKey]: v });
296
298
  }
297
299
  else {
298
300
  throw "non string alias value not supported yet";
package/esm/dev.js CHANGED
@@ -118,7 +118,9 @@ export async function startServer(serverOptions, bundleOptions, projectPath, roo
118
118
  if (portRetryCount) {
119
119
  console.warn(`Port ${originalPort} is in use, using available port ${port} instead.`);
120
120
  }
121
- console.log(`Listening on ${serverOptions.https ? "https" : "http"}://${formattedHostname}:${port} ...`);
121
+ if (process.env.TURBOPACK_DEBUG_JS) {
122
+ console.log(`Listening on ${serverOptions.https ? "https" : "http"}://${formattedHostname}:${port} ...`);
123
+ }
122
124
  try {
123
125
  let cleanupStarted = false;
124
126
  let closeUpgraded = null;
package/esm/types.d.ts CHANGED
@@ -86,7 +86,6 @@ export type TurbopackRuleCondition = {
86
86
  };
87
87
  export interface ModuleOptions {
88
88
  rules?: Record<string, TurbopackRuleConfigItem>;
89
- conditions?: Record<string, TurbopackRuleCondition>;
90
89
  }
91
90
  export interface ResolveOptions {
92
91
  alias?: Record<string, string | string[] | Record<string, string | string[]>>;
@@ -289,7 +289,9 @@ function compatResolve(webpackResolve) {
289
289
  ? alias.reduce((acc, cur) => Object.assign(acc, { [cur.name]: cur.alias }), {})
290
290
  : Object.entries(alias).reduce((acc, [k, v]) => {
291
291
  if (typeof v === "string") {
292
- Object.assign(acc, { [k]: v });
292
+ // Handle alias keys ending with $ by removing the $
293
+ const aliasKey = k.endsWith("$") ? k.slice(0, -1) : k;
294
+ Object.assign(acc, { [aliasKey]: v });
293
295
  }
294
296
  else {
295
297
  throw "non string alias value not supported yet";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@utoo/pack",
3
- "version": "0.0.1-alpha.47",
3
+ "version": "0.0.1-alpha.49",
4
4
  "main": "cjs/index.js",
5
5
  "module": "esm/index.js",
6
6
  "exports": {
@@ -85,12 +85,12 @@
85
85
  },
86
86
  "repository": "git@github.com:utooland/utoo.git",
87
87
  "optionalDependencies": {
88
- "@utoo/pack-darwin-arm64": "0.0.1-alpha.47",
89
- "@utoo/pack-darwin-x64": "0.0.1-alpha.47",
90
- "@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.47",
91
- "@utoo/pack-linux-arm64-musl": "0.0.1-alpha.47",
92
- "@utoo/pack-linux-x64-gnu": "0.0.1-alpha.47",
93
- "@utoo/pack-linux-x64-musl": "0.0.1-alpha.47",
94
- "@utoo/pack-win32-x64-msvc": "0.0.1-alpha.47"
88
+ "@utoo/pack-darwin-arm64": "0.0.1-alpha.49",
89
+ "@utoo/pack-darwin-x64": "0.0.1-alpha.49",
90
+ "@utoo/pack-linux-arm64-gnu": "0.0.1-alpha.49",
91
+ "@utoo/pack-linux-arm64-musl": "0.0.1-alpha.49",
92
+ "@utoo/pack-linux-x64-gnu": "0.0.1-alpha.49",
93
+ "@utoo/pack-linux-x64-musl": "0.0.1-alpha.49",
94
+ "@utoo/pack-win32-x64-msvc": "0.0.1-alpha.49"
95
95
  }
96
96
  }