-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 14e8bce
Showing
124 changed files
with
12,026 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Changesets | ||
|
||
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works | ||
with multi-package repos, or single-package repos to help you version and publish your code. You can | ||
find the full documentation for it [in our repository](https://github.com/changesets/changesets) | ||
|
||
We have a quick list of common questions to get you started engaging with this project in | ||
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": [ | ||
"@changesets/changelog-github", | ||
{ | ||
"repo": "Effect-TS/core" | ||
} | ||
], | ||
"commit": false, | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "main", | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# EditorConfig is awesome: http://EditorConfig.org | ||
|
||
# top-most EditorConfig file | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
/* eslint-disable no-undef */ | ||
module.exports = { | ||
ignorePatterns: ["build", "dist"], | ||
parser: "@typescript-eslint/parser", | ||
parserOptions: { | ||
ecmaVersion: 2018, | ||
sourceType: "module" | ||
}, | ||
settings: { | ||
"import/parsers": { | ||
"@typescript-eslint/parser": [".ts", ".tsx"] | ||
}, | ||
"import/resolver": { | ||
typescript: { | ||
alwaysTryTypes: true | ||
} | ||
} | ||
}, | ||
extends: [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/eslint-recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:@repo-tooling/dprint/recommended" | ||
], | ||
plugins: ["import", "sort-destructure-keys", "simple-import-sort", "codegen"], | ||
rules: { | ||
"@repo-tooling/dprint/dprint": [ | ||
"error", | ||
{ | ||
config: { | ||
// The TypeScript configuration of dprint | ||
// See also https://dprint.dev/plugins/typescript/config/, | ||
"indentWidth": 2, | ||
"semiColons": "asi", | ||
"quoteStyle": "alwaysDouble", | ||
"trailingCommas": "never", | ||
"operatorPosition": "maintain", | ||
"useParentheses": "preferNone" | ||
} | ||
} | ||
], | ||
"codegen/codegen": "error", | ||
"no-fallthrough": "off", | ||
"no-irregular-whitespace": "off", | ||
"object-shorthand": "error", | ||
"prefer-destructuring": "off", | ||
"sort-imports": "off", | ||
"@typescript-eslint/ban-ts-comment": "off", | ||
"@typescript-eslint/ban-types": "off", | ||
"@typescript-eslint/camelcase": "off", | ||
"@typescript-eslint/consistent-type-imports": "error", | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/explicit-module-boundary-types": "off", | ||
"@typescript-eslint/interface-name-prefix": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-array-constructor": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/no-unused-vars": "off", | ||
"@typescript-eslint/no-use-before-define": "off", | ||
"@typescript-eslint/no-namespace": "off", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"import/first": "error", | ||
"import/no-cycle": "error", | ||
"import/newline-after-import": "error", | ||
"import/no-duplicates": "error", | ||
"import/no-unresolved": "off", | ||
"import/order": "off", | ||
"simple-import-sort/imports": "off", | ||
"sort-destructure-keys/sort-destructure-keys": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# These are supported funding model platforms | ||
|
||
github: Matechs-Garage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
title: '' | ||
labels: '' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
const { execSync } = require("node:child_process"); | ||
|
||
execSync("npx changeset version"); | ||
execSync("YARN_ENABLE_IMMUTABLE_INSTALLS=false node .yarn/releases/yarn-3.2.1.cjs"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
/.yarn/* | ||
!/.yarn/releases | ||
!/.yarn/plugins | ||
!/.yarn/sdks | ||
!/.yarn/patches | ||
|
||
coverage/ | ||
*.tsbuildinfo | ||
node_modules/ | ||
yarn-error.log | ||
.ultra.cache.json | ||
.DS_Store | ||
tmp/ | ||
build/ | ||
dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
tasks: | ||
- init: yarn && yarn build | ||
github: | ||
prebuilds: | ||
addCheck: true | ||
vscode: | ||
extensions: | ||
- dbaeumer.vscode-eslint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
sh pre-commit.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "pwa-node", | ||
"request": "launch", | ||
"name": "Launch Program", | ||
"skipFiles": [ | ||
"<node_internals>/**" | ||
], | ||
"program": "${workspaceFolder}/packages/core/build/examples/repro.js", | ||
"outFiles": [ | ||
"${workspaceFolder}/**/*.js" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"typescript.preferences.importModuleSpecifier": "non-relative", | ||
"typescript.enablePromptUseWorkspaceTsdk": true, | ||
"editor.formatOnSave": true, | ||
"eslint.format.enable": true, | ||
"explorer.sortOrder": "mixed", | ||
"[javascript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"[javascriptreact]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "dbaeumer.vscode-eslint" | ||
}, | ||
"files.exclude": { | ||
//"**/.yarn*": true, | ||
//"**/.*.js": true, | ||
//"**/.swc": true, | ||
//"**/.changeset": true, | ||
//"**/yarn.lock": true, | ||
//"**/.*rc": true, | ||
//"**/.*config": true, | ||
//"**/.git*": true, | ||
//"**/.npmignore*": true, | ||
//"**/.husky": true, | ||
//"**/LICENSE.*": true, | ||
//"**/lerna.json": true, | ||
//"**/jest.config.js": true, | ||
}, | ||
"prettier.disableLanguages": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact" | ||
], | ||
"eslint.validate": [ | ||
"markdown", | ||
"javascript", | ||
"typescript" | ||
], | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"editor.quickSuggestions": { | ||
"other": true, | ||
"comments": false, | ||
"strings": false | ||
}, | ||
"editor.acceptSuggestionOnCommitCharacter": true, | ||
"editor.acceptSuggestionOnEnter": "on", | ||
"editor.quickSuggestionsDelay": 10, | ||
"editor.suggestOnTriggerCharacters": true, | ||
"editor.tabCompletion": "off", | ||
"editor.suggest.localityBonus": true, | ||
"editor.suggestSelection": "recentlyUsed", | ||
"editor.wordBasedSuggestions": true, | ||
"editor.parameterHints.enabled": true, | ||
"files.watcherExclude": { | ||
"**/target": true | ||
}, | ||
"files.insertFinalNewline": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"version": "2.0.0", | ||
"tasks": [ | ||
{ | ||
"label": "clean", | ||
"type": "shell", | ||
"command": "yarn clean", | ||
"isBackground": false, | ||
"problemMatcher": [] | ||
}, | ||
{ | ||
"label": "build-watch", | ||
"type": "shell", | ||
"command": "yarn build-watch", | ||
"problemMatcher": [ | ||
"$tsc-watch" | ||
], | ||
"isBackground": true, | ||
"presentation": { | ||
"focus": false, | ||
"panel": "shared", | ||
"group": "dev", | ||
"showReuseMessage": true, | ||
"clear": false | ||
} | ||
}, | ||
{ | ||
"label": "build", | ||
"type": "shell", | ||
"command": "yarn build", | ||
"problemMatcher": [], | ||
"isBackground": false | ||
}, | ||
{ | ||
"label": "test-watch", | ||
"dependsOn": [ | ||
"build-watch" | ||
], | ||
"type": "shell", | ||
"command": "yarn test", | ||
"problemMatcher": [] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/dist/presets/barrel.js b/dist/presets/barrel.js | ||
index 713ce15ee45a50f8dc0ba40457526dfaf597afca..bf045c3752b9a8cf66a7cd5c76573956ab2e57aa 100644 | ||
--- a/dist/presets/barrel.js | ||
+++ b/dist/presets/barrel.js | ||
@@ -62,7 +62,12 @@ const barrel = ({ meta, options: opts }) => { | ||
.filter(f => path.resolve(cwd, f) !== path.resolve(meta.filename)) | ||
.map(f => `./${f}`.replace(/(\.\/)+\./g, '.')) | ||
.filter(file => ['.js', '.mjs', '.ts', '.tsx'].includes(path.extname(file))) | ||
- .map(f => f.replace(/\.\w+$/, '')); | ||
+ .map(f => { | ||
+ if (!opts.prefix) { | ||
+ return f.replace(/\.\w+$/, '') + ".js"; | ||
+ } | ||
+ return f.replace(/\.\w+$/, '').replace(/^\.(.*)$/, `${opts.prefix}$1`); | ||
+ }); | ||
const expectedContent = io_ts_extra_1.match(opts.import) | ||
.case(undefined, () => { | ||
return relativeFiles.map(f => `export * from '${f}'`).join('\n'); |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.