sliftutils 1.6.5 → 1.7.1

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.
@@ -182,13 +182,16 @@ export function bundleRequire(config: BundleRequireConfig) {
182
182
  requireFnc.main = newModule;
183
183
  requireFnc.extensions = "extension not implemented yet" as any;
184
184
 
185
- // Resolves file extensions
185
+ // Resolves file extensions, and also directory-style imports (e.g. `./foo` matching `./foo/index.ts`), which node/webpack support but our bundler previously did not
186
186
  function innerResolve(path: string): string {
187
187
  let candidates = [
188
188
  path,
189
189
  path + ".js",
190
190
  path + ".ts",
191
191
  path + ".tsx",
192
+ path + "/index.js",
193
+ path + "/index.ts",
194
+ path + "/index.tsx",
192
195
  ];
193
196
  for (let candidate of candidates) {
194
197
  let registered = globalThis.registeredModules?.[candidate];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sliftutils",
3
- "version": "1.6.5",
3
+ "version": "1.7.1",
4
4
  "main": "index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -57,7 +57,7 @@
57
57
  "preact-old-types": "^10.28.1",
58
58
  "shell-quote": "^1.8.3",
59
59
  "socket-function": "^1.2.4",
60
- "typenode": "^6.3.0",
60
+ "typenode": "^6.6.0",
61
61
  "typesafecss": "*",
62
62
  "ws": "^8.18.3",
63
63
  "yargs": "15.4.1"
package/yarn.lock CHANGED
@@ -2095,10 +2095,10 @@ typenode@^6.0.1:
2095
2095
  source-map-support "https://github.com/7rulnik/node-source-map-support"
2096
2096
  typescript "5.3.3"
2097
2097
 
2098
- typenode@^6.3.0:
2099
- version "6.3.0"
2100
- resolved "https://registry.yarnpkg.com/typenode/-/typenode-6.3.0.tgz#f7f22dbd3116056801271fca527e72ba91e28c68"
2101
- integrity sha512-pqAYBmWdzw5QjOugX82uH4+mc1JGL/1dqXwKxY/vsvpNK4j8SUaSVGJrASac+wU3rPVIIBRIAWTVDPEvGwJx8Q==
2098
+ typenode@^6.6.0:
2099
+ version "6.6.0"
2100
+ resolved "https://registry.yarnpkg.com/typenode/-/typenode-6.6.0.tgz#862f2fd0d0fcbf6ed61d07015e8dfe769cf0adec"
2101
+ integrity sha512-ReDna13iuEVZ9nRdJwdhxSvtR2lWv60QWiEEhp+fj/uhXOKSn5S7IVe5qlYmp8DSLw50qxQ0IUNlNVrIauNldg==
2102
2102
  dependencies:
2103
2103
  "@types/pegjs" "^0.10.3"
2104
2104
  source-map-support "https://github.com/7rulnik/node-source-map-support"