Skip to content

Commit

Permalink
chore: support esm and cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
DIY0R committed Sep 23, 2024
1 parent 9639fa1 commit 36b140b
Show file tree
Hide file tree
Showing 11 changed files with 378 additions and 32 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
node-version: '20.x'
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm run build
- run: npm run prepack
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand All @@ -33,7 +33,7 @@ jobs:
node-version: '20.x'
registry-url: 'https://npm.pkg.github.com'
- run: npm install
- run: npm run build
- run: npm run prepack
- name: Add scope to package name
run: |
PACKAGE_NAME=$(jq -r .name package.json)
Expand Down
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/tsconfig.json
/tsconfig.build.json
/node_modules
/lib
/scripts
2 changes: 1 addition & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default tseslint.config(
...globals.es2020,
},
parserOptions: {
project: ['tsconfig.json', 'tsconfig.build.json'],
project: 'tsconfig.json',
},
},
},
Expand Down
2 changes: 1 addition & 1 deletion lib/graph/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { asyncTaskQueue } from 'lib/utils';
import { asyncTaskQueue } from '../utils';
import FileGraphIml from './file.graph';
import StorageFile from './storage.file';

Expand Down
Loading

0 comments on commit 36b140b

Please sign in to comment.