diff options
author | Elizabeth Hunt <me@liz.coffee> | 2025-07-27 20:53:39 -0700 |
---|---|---|
committer | Elizabeth Hunt <me@liz.coffee> | 2025-07-27 20:56:31 -0700 |
commit | dda7d0db43687eedef853525f0874016707776b3 (patch) | |
tree | 4ec42119c4c4de7cd78e44dc9ef41655732aaebb | |
parent | 4f0d63dba58fc2e65e9a378a6541f3176cf00440 (diff) | |
download | pengueno-dda7d0db43687eedef853525f0874016707776b3.tar.gz pengueno-dda7d0db43687eedef853525f0874016707776b3.zip |
Fixes ESM stuff
-rw-r--r-- | lib/index.ts | 2 | ||||
-rw-r--r-- | package-lock.json | 163 | ||||
-rw-r--r-- | package.json | 11 | ||||
-rw-r--r-- | tsconfig.json | 3 |
4 files changed, 157 insertions, 22 deletions
diff --git a/lib/index.ts b/lib/index.ts index 06c88d5..4b89973 100644 --- a/lib/index.ts +++ b/lib/index.ts @@ -1,5 +1,3 @@ -import "module-alias/register.js" - export * from './leftpadesque/index'; export * from './types/index'; export * from './trace/index'; diff --git a/package-lock.json b/package-lock.json index 7d40364..95fc6b7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,16 +1,13 @@ { "name": "@emprespresso/pengueno", - "version": "0.0.5", + "version": "0.0.7", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@emprespresso/pengueno", - "version": "0.0.5", + "version": "0.0.7", "license": "MIT", - "dependencies": { - "module-alias": "^2.2.3" - }, "devDependencies": { "@types/jest": "^30.0.0", "@types/module-alias": "^2.0.4", @@ -24,6 +21,7 @@ "jest": "^30.0.5", "prettier": "^3.6.0", "ts-jest": "^29.4.0", + "tsconfig-replace-paths": "^0.0.14", "typescript": "^5.8.0", "typescript-eslint": "^8.38.0" }, @@ -1529,6 +1527,17 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/glob": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/@types/glob/-/glob-7.2.0.tgz", + "integrity": "sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/minimatch": "*", + "@types/node": "*" + } + }, "node_modules/@types/istanbul-lib-coverage": { "version": "2.0.6", "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz", @@ -1574,6 +1583,13 @@ "dev": true, "license": "MIT" }, + "node_modules/@types/minimatch": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/@types/minimatch/-/minimatch-5.1.2.tgz", + "integrity": "sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA==", + "dev": true, + "license": "MIT" + }, "node_modules/@types/module-alias": { "version": "2.0.4", "resolved": "https://registry.npmjs.org/@types/module-alias/-/module-alias-2.0.4.tgz", @@ -2232,6 +2248,16 @@ "dev": true, "license": "Python-2.0" }, + "node_modules/array-union": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", + "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/async": { "version": "3.2.6", "resolved": "https://registry.npmjs.org/async/-/async-3.2.6.tgz", @@ -2637,6 +2663,13 @@ "dev": true, "license": "MIT" }, + "node_modules/commander": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/commander/-/commander-3.0.2.tgz", + "integrity": "sha512-Gar0ASD4BDyKC4hl4DwHqDrmvjoxWKZigVnAbn5H1owvm4CxCPdb0HQDehwNYMJpla5+M2tPmPARzhtYuwpHow==", + "dev": true, + "license": "MIT" + }, "node_modules/concat-map": { "version": "0.0.1", "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", @@ -2726,6 +2759,19 @@ "node": ">=8" } }, + "node_modules/dir-glob": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", + "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", + "dev": true, + "license": "MIT", + "dependencies": { + "path-type": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/eastasianwidth": { "version": "0.2.0", "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz", @@ -3438,6 +3484,82 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/globby": { + "version": "10.0.2", + "resolved": "https://registry.npmjs.org/globby/-/globby-10.0.2.tgz", + "integrity": "sha512-7dUi7RvCoT/xast/o/dLN53oqND4yk0nsHkhRgn9w65C4PofCLOoJ39iSOg+qVDdWQPIEj+eszMHQ+aLVwwQSg==", + "dev": true, + "license": "MIT", + "dependencies": { + "@types/glob": "^7.1.1", + "array-union": "^2.1.0", + "dir-glob": "^3.0.1", + "fast-glob": "^3.0.3", + "glob": "^7.1.3", + "ignore": "^5.1.1", + "merge2": "^1.2.3", + "slash": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/globby/node_modules/brace-expansion": { + "version": "1.1.12", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz", + "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==", + "dev": true, + "license": "MIT", + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/globby/node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "deprecated": "Glob versions prior to v9 are no longer supported", + "dev": true, + "license": "ISC", + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/globby/node_modules/ignore": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz", + "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 4" + } + }, + "node_modules/globby/node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "dev": true, + "license": "ISC", + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, "node_modules/graceful-fs": { "version": "4.2.11", "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", @@ -4623,12 +4745,6 @@ "node": ">=16 || 14 >=14.17" } }, - "node_modules/module-alias": { - "version": "2.2.3", - "resolved": "https://registry.npmjs.org/module-alias/-/module-alias-2.2.3.tgz", - "integrity": "sha512-23g5BFj4zdQL/b6tor7Ji+QY4pEfNH784BMslY9Qb0UnJWRAt+lQGLYmRaM0KDBwIG23ffEBELhZDP2rhi9f/Q==", - "license": "MIT" - }, "node_modules/ms": { "version": "2.1.3", "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", @@ -4875,6 +4991,16 @@ "dev": true, "license": "ISC" }, + "node_modules/path-type": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", + "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, "node_modules/picocolors": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", @@ -5647,6 +5773,21 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/tsconfig-replace-paths": { + "version": "0.0.14", + "resolved": "https://registry.npmjs.org/tsconfig-replace-paths/-/tsconfig-replace-paths-0.0.14.tgz", + "integrity": "sha512-If9w1Z/HdSJkrZvCRSKHA3vAL3SwRWvI7rLmuTozlmKuBjPF/R8dWJku5C9ncOqiTOd8Dzd7SZ1cIYVZfpva8g==", + "dev": true, + "license": "MIT", + "dependencies": { + "commander": "^3.0.2", + "globby": "^10.0.1", + "json5": "^2.2.0" + }, + "bin": { + "tsconfig-replace-paths": "dist/commonjs/index.js" + } + }, "node_modules/tslib": { "version": "2.8.1", "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", diff --git a/package.json b/package.json index fec8eff..a031c90 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@emprespresso/pengueno", - "version": "0.0.5", + "version": "0.0.6", "description": "emprespresso pengueno utils", "main": "./dist/index.js", "types": "./dist/index.d.ts", @@ -11,7 +11,7 @@ "author": "emprespresso", "license": "MIT", "scripts": { - "build": "tsc", + "build": "tsc && tsconfig-replace-paths --project tsconfig.json", "test": "jest", "dev": "tsc --watch", "clean": "rm -rf dist node_modules", @@ -20,9 +20,6 @@ "format": "prettier --write .", "format:check": "prettier --check ." }, - "dependencies": { - "module-alias": "^2.2.3" - }, "devDependencies": { "@types/jest": "^30.0.0", "@types/module-alias": "^2.0.4", @@ -36,6 +33,7 @@ "jest": "^30.0.5", "prettier": "^3.6.0", "ts-jest": "^29.4.0", + "tsconfig-replace-paths": "^0.0.14", "typescript": "^5.8.0", "typescript-eslint": "^8.38.0" }, @@ -44,9 +42,6 @@ "package.json", "README.md" ], - "_moduleAliases": { - "@emprespresso/pengueno": "./dist" - }, "engines": { "node": ">=22.16.0", "npm": ">=10.0.0" diff --git a/tsconfig.json b/tsconfig.json index 9aa2f58..f4a9c33 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -3,6 +3,7 @@ "target": "ES2022", "module": "CommonJS", "baseUrl": ".", + "rootDir": "lib", "outDir": "./dist", "declaration": true, "moduleResolution": "node", @@ -19,7 +20,7 @@ "noFallthroughCasesInSwitch": true, "lib": ["ES2022"], "paths": { - "@emprespresso/pengueno": ["./lib/index.ts"] + "@emprespresso/pengueno": ["./lib/index.js"] } }, "include": ["lib/**/*.ts", "lib/**/*.js"], |