Skip to content

Commit

Permalink
build: refactor package exports/imports
Browse files Browse the repository at this point in the history
  • Loading branch information
unicornware committed Oct 1, 2024
1 parent 871f2a7 commit 1a9bf9c
Show file tree
Hide file tree
Showing 111 changed files with 1,457 additions and 554 deletions.
2 changes: 1 addition & 1 deletion .attw.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
"color": true,
"emoji": true,
"format": "ascii",
"ignoreRules": ["cjs-resolves-to-esm"],
"ignoreRules": ["cjs-resolves-to-esm", "internal-resolution-error"],
"summary": true
}
12 changes: 4 additions & 8 deletions .cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,25 @@
"failFast": false,
"flagWords": [],
"ignorePaths": [
"**/*.log",
"!scratch.*",
"**/*.patch",
"**/*.snap",
"**/*.wasm",
"**/.*ignore",
"**/.gitconfig",
"**/CHANGELOG.md",
"**/LICENSE.md",
"**/RELEASE_NOTES.md",
"**/scratch.*",
".cspell.json",
".dictionary.txt",
".git/",
".husky/_/",
".vscode/settings.json",
".yarn/",
"dist/",
"patches/",
"yarn.lock"
],
"ignoreRegExpList": [
"/@flex-development\\/.*/",
"/from\\s+(['\"]).*\\1/",
"import\\(.*\\)"
],
"ignoreRegExpList": [],
"ignoreWords": [],
"language": "en-US",
"patterns": [],
Expand Down
4 changes: 4 additions & 0 deletions .dictionary.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cefc
commitlintrc
dedupe
dessant
devlop
docast
dohm
dprint
Expand All @@ -16,12 +17,15 @@ kaisugi
libc
lintstagedrc
mkbuild
mlly
nvmrc
pathe
pkgs
pnpx
preid
remarkrc
shfmt
tscu
unstub
vates
vfile
Expand Down
20 changes: 3 additions & 17 deletions .dprint.jsonc
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
{
"$schema": "https://dprint.dev/schemas/v0.json",
"excludes": [
"!**/__fixtures__/**/dist/",
"!**/__fixtures__/**/node_modules/",
"!**/typings/**/dist/",
"!scratch.*",
"**/*.patch",
"**/*.snap",
"**/*config.*.timestamp*",
"**/.temp/",
"**/.vercel/",
"**/__fixtures__/git/**/*.txt",
"**/__tests__/benchmark.json",
"**/__tests__/report.json",
"**/__tests__/typecheck.json",
"**/coverage/",
"**/dist/",
"**/node_modules",
"**/tsconfig*temp.json",
"**/CHANGELOG.md",
"**/LICENSE.md",
"**/RELEASE_NOTES.md",
".git/",
".husky/_/",
".yarn/",
"CHANGELOG.md",
"LICENSE.md",
"RELEASE_NOTES.md",
"yarn.lock"
],
"exec": {
Expand Down
1 change: 1 addition & 0 deletions .env.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
[ -f $PWD/.env.repo ] && source $PWD/.env.repo
HOMEBREW_BREWFILE=./Brewfile
NODE_NO_WARNINGS=1
NODE_OPTIONS='--experimental-strip-types --experimental-transform-types'
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,8 @@ jobs:
- id: typecheck
if: steps.test-files-check.outputs.files_exists == 'true'
name: Run typecheck
env:
NODE_OPTIONS: --experimental-strip-types --experimental-transform-types
run: yarn typecheck
build:
needs:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/release-chore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -166,8 +166,6 @@ jobs:
grease changelog -sw
- id: build
name: Build project
env:
NODE_NO_WARNINGS: 1
run: yarn build
- id: commit
name: Commit and push release preparation
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/typescript-canary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ jobs:
run: yarn build
- id: typecheck
name: Run typecheck
env:
NODE_OPTIONS: --experimental-strip-types --experimental-transform-types
run: yarn typecheck
- id: typecheck-build
name: Run typecheck-build
Expand Down
13 changes: 6 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ pids
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
yarn-debug.log*
yarn-error.log*
!**/__fixtures__/**/node_modules/
!**/__fixtures__/node_modules/
!**/__fixtures__/**/*.log

# Yarn 2 (Not using Zero-Installs)
# https://yarnpkg.com/getting-started/qa#which-files-should-be-gitignored
Expand All @@ -44,10 +45,8 @@ yarn-error.log*

# Testing
# ------------------------------------------------------------------------------
**/*config.*.timestamp*
**/__tests__/benchmark.json
**/__tests__/report.*
**/__tests__/typecheck.json
**/.vitest-reports/
**/__tests__/reports/*
**/coverage/
**/tsconfig*temp.json
*.lcov
Expand All @@ -59,10 +58,8 @@ codecov

# Builds
# ------------------------------------------------------------------------------
**/.temp/
**/.vitepress/cache
**/dist/
!**/__fixtures__/**/*.log
!**/__fixtures__/**/dist/
!**/typings/**/dist/

Expand All @@ -76,4 +73,6 @@ codecov

# Misc
# ------------------------------------------------------------------------------
**/*config.*.timestamp*
**/.temp/
**/scratch.*
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20
22.9.0
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@
"emmet.triggerExpansionOnTab": true,
"eslint.enable": true,
"eslint.lintTask.enable": true,
"eslint.nodePath": "node_modules",
"eslint.options": {},
"eslint.runtime": "node",
"eslint.trace.server": "messages",
Expand Down
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ Follow the steps below to setup your local development environment:
| `GITHUB_TOKEN` |
| `HOMEBREW_BREWFILE` |
| `NODE_NO_WARNINGS` |
| `NODE_OPTIONS` |
| `ZSH_DOTENV_FILE` |
#### GitHub Actions
Expand Down
Loading

0 comments on commit 1a9bf9c

Please sign in to comment.