Skip to content

Commit

Permalink
refactor(is-core-module): hand write is-core-module type
Browse files Browse the repository at this point in the history
  • Loading branch information
SukkaW committed Jul 22, 2024
1 parent 6f10d65 commit 025b6dd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
2 changes: 1 addition & 1 deletion packages/manual/is-core-module/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
declare const isCore: (x: string, _nodeVersion?: any) => boolean;

export { isCore as default };
export = isCore;
12 changes: 0 additions & 12 deletions packages/manual/is-core-module/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { nodeResolve } from '@rollup/plugin-node-resolve';
import commonjs from '@rollup/plugin-commonjs';
import replace from '@rollup/plugin-replace';
import { swc } from 'rollup-plugin-swc3';
import { dts } from 'rollup-plugin-dts';

export default defineConfig(() => {
const coreJsonPath = resolve('ljharb-is-core-module/package.json');
Expand Down Expand Up @@ -64,17 +63,6 @@ export default defineConfig(() => {
preventAssignment: true
})
]
},
{
input: './src.ts',
output: {
file: './index.d.ts',
format: 'cjs',
sourcemap: false
},
plugins: [
dts()
]
}
]);
});
Expand Down

0 comments on commit 025b6dd

Please sign in to comment.