Skip to content

Commit

Permalink
fixes node-entrypoints
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Del Core committed Sep 17, 2024
1 parent be0ed7b commit 5eca014
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 7 deletions.
4 changes: 1 addition & 3 deletions packages/cli-alias/bin/codeshift-cli.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
#!/usr/bin/env node
const path = require('path');

require(path.join('..', 'dist', 'index.js'));
export * from '../dist/index.js';
2 changes: 1 addition & 1 deletion packages/cli-alias/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from '@hypermod/cli';
import '@hypermod/cli';
4 changes: 1 addition & 3 deletions packages/cli-alias/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
"compilerOptions": {
"rootDir": "src",
"outDir": "dist",
"baseUrl": ".",
"module": "NodeNext",
"moduleResolution": "NodeNext"
"baseUrl": "."
},
"include": ["src"],
"references": [
Expand Down
2 changes: 2 additions & 0 deletions packages/cli/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ import {
} from './utils/file-system.js';
import { getConfigPrompt, getMultiConfigPrompt } from './prompt.js';

const __dirname = path.dirname(new URL(import.meta.url).pathname);

const ExperimentalModuleLoader = () => {
const getInfo = (packageName: string) => {
const entryPath = require.resolve(packageName);
Expand Down

0 comments on commit 5eca014

Please sign in to comment.