Skip to content

Commit

Permalink
feat: migrate api and core to ESM (#733)
Browse files Browse the repository at this point in the history
* feat: migrate `api` and `core` to ESM

* fix: `httpsnippet-client-api` and `core` exports

* fix: update bin entrypoint

* fix: try rebuilding lockfile

i hate this song

* chore: fix lockfile

* chore: fix type

* fix: yay remove this

* fix: bumping our minimum httpsnippet version to v7

* fix: some linting issues

* chore(deps): bumping oas dependencies

* feat(httpsnippet-client-api): esm compatibility

* feat(core): esm compatibility

* fix: cleaning up how the test-utils package is built

* feat(api): esm compatibility

* fix: linting issues

* fix: unskipping a test that still works fine

* chore: removing unnecessary rootdir configs

* fix: building `api` with just `tsc`

* fix: re-enabling strict mode

---------

Co-authored-by: Jon Ursenbach <[email protected]>
  • Loading branch information
kanadgupta and erunion authored Oct 11, 2023
1 parent fa31dd4 commit f65bc79
Show file tree
Hide file tree
Showing 82 changed files with 673 additions and 249 deletions.
5 changes: 1 addition & 4 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"extends": ["@readme/eslint-config", "@readme/eslint-config/typescript"],
"extends": ["@readme/eslint-config", "@readme/eslint-config/esm", "@readme/eslint-config/typescript"],
"root": true,
"rules": {
"unicorn/prefer-node-protocol": "error"
},
"overrides": [
{
"files": ["bin/**"],
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
dist/
node_modules/
**/*.tsbuildinfo
4 changes: 2 additions & 2 deletions bin/build-markdown.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const fs = require('node:fs');
const path = require('node:path');
import fs from 'node:fs';
import path from 'node:path';

const readme = fs.readFileSync('README.md', 'utf-8');

Expand Down
Loading

0 comments on commit f65bc79

Please sign in to comment.