Skip to content

Commit

Permalink
fix: build output is now truly esm friendly and works well with cjs t…
Browse files Browse the repository at this point in the history
…oo (#101)
  • Loading branch information
yann510 authored Oct 31, 2024
1 parent 84f66a5 commit ce1e64a
Show file tree
Hide file tree
Showing 18 changed files with 11,405 additions and 10,073 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,18 @@ jobs:
- name: Lint files
run: npm run lint:all

- name: Check formatting
run: npm run format:check:ci

- name: Run tests
run: npm run test:all

- name: Build apps
run: npm run build:all -- --prod

- name: Check exports
run: npm run exports:check

- name: Run benchmark
if: github.ref == 'refs/heads/master'
run: npm run benchmark
Expand Down
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@
/.nx/workspace-data
CHANGELOG.md
**/data-chunk*
tmp
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) [2024] [Yann Thibodeau]

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
10,002 changes: 10,002 additions & 0 deletions benchmark/src/data.json

Large diffs are not rendered by default.

10,002 changes: 0 additions & 10,002 deletions benchmark/src/data.ts

This file was deleted.

2 changes: 1 addition & 1 deletion benchmark/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { data } from './data'
import data from './data.json'
import { execSync } from 'child_process'
import { readFileSync, writeFileSync, existsSync } from 'fs'
import Benchmark from 'benchmark'
Expand Down
3 changes: 2 additions & 1 deletion benchmark/tsconfig.app.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"compilerOptions": {
"outDir": "../dist/out-tsc",
"module": "commonjs",
"types": ["node"]
"types": ["node"],
"resolveJsonModule": true
},
"exclude": ["jest.config.ts", "src/**/*.spec.ts", "src/**/*.test.ts"],
"include": ["src/**/*.ts"]
Expand Down
Loading

0 comments on commit ce1e64a

Please sign in to comment.