Skip to content

Commit

Permalink
Merge pull request #14 from csandman/new-internals-fix
Browse files Browse the repository at this point in the history
New internals Fix
  • Loading branch information
csandman authored Jan 18, 2023
2 parents 3eca494 + 8e71107 commit 744eca7
Show file tree
Hide file tree
Showing 10 changed files with 904 additions and 4,756 deletions.
21 changes: 0 additions & 21 deletions .babelrc

This file was deleted.

5 changes: 5 additions & 0 deletions .codesandbox/ci.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"buildCommand": "build",
"sandboxes": ["enjfs8", "t5bh9f"],
"node": "16"
}
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ For more examples, check [yup-phone-lite.test.ts](src/yup-phone-lite.test.ts) fi

### Contributing

- Uses Rollup for bundling.
- Files are minified using closure compiler.
- Uses jest for testing.
- Generates CJS, UMD, and ESM builds.
Expand Down
22 changes: 22 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
const { BABEL_ENV } = process.env;
const isCjs = BABEL_ENV !== undefined && BABEL_ENV === "cjs";

module.exports = {
plugins: ["@babel/plugin-transform-runtime"],
presets: [
[
"@babel/preset-env",
{
targets: {
browsers: "> 0.25%, not dead",
node: "12",
},
bugfixes: true,
modules: isCjs ? "commonjs" : false,
loose: true,
},
"minify",
],
"@babel/preset-typescript",
],
};
13 changes: 2 additions & 11 deletions jest.config.mjs → jest.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// For a detailed explanation regarding each configuration property, visit:
// https://jestjs.io/docs/en/configuration.html

const jestConfig = {
module.exports = {
// All imported modules in your tests should be mocked automatically
// automock: false,

Expand Down Expand Up @@ -61,14 +61,7 @@ const jestConfig = {
// ],

// An array of file extensions your modules use
// moduleFileExtensions: [
// "js",
// "json",
// "jsx",
// "ts",
// "tsx",
// "node"
// ],
moduleFileExtensions: ["js", "ts"],

// A map from regular expressions to module names that allow to stub out resources with a single module
// moduleNameMapper: {},
Expand Down Expand Up @@ -178,5 +171,3 @@ const jestConfig = {
// Whether to use watchman for file crawling
// watchman: true,
};

export default jestConfig;
Loading

0 comments on commit 744eca7

Please sign in to comment.