Skip to content

Commit

Permalink
fix: publish as both esm and cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
aldeed committed Jan 9, 2023
1 parent 9af4cd3 commit 5e94b3a
Show file tree
Hide file tree
Showing 19 changed files with 2,048 additions and 1,220 deletions.
5 changes: 2 additions & 3 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
node_modules/**
typings/**
.vscode/**
dist
node_modules
28 changes: 0 additions & 28 deletions .eslintrc

This file was deleted.

24 changes: 24 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
extends: ["standard-with-typescript"],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig-eslint.json",
tsconfigRootDir: __dirname,
sourceType: "module",
warnOnUnsupportedTypeScriptVersion: false,
},
plugins: [
"redos",
"simple-import-sort"
],
rules: {
// note you must disable the base rule as it can report incorrect errors
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": ["error"],
"@typescript-eslint/triple-slash-reference": "off",
"simple-import-sort/imports": "error",
},
env: {
mocha: true
}
};
6 changes: 4 additions & 2 deletions .mocharc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"extension": ["ts"],
"extension": [
"ts"
],
"loader": "ts-node/esm",
"require": "ts-node/register",
"spec": "lib/**/*.test.ts"
"spec": "src/**/*.test.ts"
}
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.15.1
16.19.0
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
**
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2013-2022 Eric Dobbertin
Copyright (c) 2013-2023 Eric Dobbertin

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
Expand Down
Loading

0 comments on commit 5e94b3a

Please sign in to comment.