Skip to content

Commit

Permalink
updated source file name and updated build config
Browse files Browse the repository at this point in the history
  • Loading branch information
theenadayalank committed Aug 20, 2024
1 parent 1e2d299 commit 0da74a8
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 16 deletions.
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export default [
files: ["src/**/*.js"],
languageOptions: {
globals: {
...globals.node,y
...globals.node,
},
parserOptions: {
ecmaVersion: "latest",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@
],
"husky": {
"hooks": {
"pre-push": "node ./src/index.js"
"pre-push": "node ./src/lint-prepush.js"
}
}
}
8 changes: 0 additions & 8 deletions scripts/build.js

This file was deleted.

1 change: 1 addition & 0 deletions src/index.js → src/lint-prepush.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import chalk from 'chalk';
import debugFactory from 'debug';
import os from 'os';
import Cache from 'file-system-cache';

import { userConfig, execSyncProcess } from './utils/common';
import resolveMainTask from './utils/resolveMainTask';
import fetchGitDiff from './utils/fetchGitDiff';
Expand Down
13 changes: 7 additions & 6 deletions tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { defineConfig } from 'tsup';

export default defineConfig({
format: ['cjs', 'esm'],
entry: ['./src/index.js'],
dts: true,
shims: true,
skipNodeModulesBundle: true,
format: ['esm'],
entry: ['./src/lint-prepush.js'],
platform: 'node',
target: 'node20',
outDir: 'dist',
clean: true,
"sourcemap": false,
sourcemap: false,
minify: true,
});

0 comments on commit 0da74a8

Please sign in to comment.