Skip to content

Commit 4b6b915

Browse files
committed
build(yarn): add aggregate-error-ponyfill workspace
- https://github.com/sindresorhus/ponyfill
1 parent df3fffe commit 4b6b915

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+677
-27
lines changed

.commitlintrc.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ const config: UserConfig = {
5656
'github',
5757
'guards',
5858
'hybrid',
59+
'ponyfill',
5960
'release',
6061
'scripts',
6162
'tests',

.env

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,14 @@
66

77
DEBUG='*,-babel*,-compression,-eslint:*,-eslintrc:*,-lint-staged:*,-mocha:*,-typescript-eslint*,-yarn'
88
DEBUG_COLORS=true
9-
GITHUB_WORKSPACE=$PWD
9+
[[ !$GITHUB_ACTIONS ]] && GITHUB_WORKSPACE=$PWD
1010
NODE_ENV=development
1111
# Fixes `YN0000: Strings should avoid referencing the node_modules directory`
1212
# warning during the `yarn check:install` lifecycle
1313
NODE_MODULES=node_modules
1414
NPM_TOKEN=$NPM_TOKEN_FLDV
1515
PAT_GPR=$PAT_GPR_FLDV
16-
[[ $GITHUB_ACTIONS ]] && PROJECT_CWD=$GITHUB_WORKSPACE
17-
TS_NODE_PROJECT="$PROJECT_CWD/tsconfig.json"
16+
TS_NODE_PROJECT="$GITHUB_WORKSPACE/tsconfig.json"
1817

1918
# NODE_OPTIONS - Use ESM
2019
# See: https://github.com/TypeStrong/ts-node/issues/1007
@@ -30,7 +29,7 @@ if [ -f "./node_modules/ts-node/esm.mjs" ]; then
3029
SPECIFIER_RESOLUTION='--es-module-specifier-resolution node'
3130

3231
# Use custom ESM loader
33-
LOADER="--loader $PROJECT_CWD/tools/loaders/esm.mjs"
32+
LOADER="--loader $GITHUB_WORKSPACE/tools/loaders/esm.mjs"
3433

3534
# Specify Node options
3635
NODE_OPTIONS="$JSON_MODULES $SPECIFIER_RESOLUTION $LOADER"

.eslintignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,5 @@ packages/*/cjs/*
99
packages/*/esm/*
1010
packages/*/types/*
1111

12-
**/CHANGELOG.md
13-
1412
!packages/src/types/*
1513
!**/.*.*

.eslintrc.base.cjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,9 +145,11 @@ module.exports = {
145145
'ncc',
146146
'perf',
147147
'pnv',
148+
'ponyfill',
148149
'postinstall',
149150
'prepack',
150151
'prog',
152+
'readonly',
151153
'redeclare',
152154
'stringified',
153155
'tgz',

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ packages/*/dist/
9090
packages/*/esm/
9191
packages/*/esm5/
9292
packages/*/esm2015/
93+
packages/*/package
9394
packages/*/types/
9495

9596
*.zip

.husky/pre-push

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
# - https://typicode.github.io/husky
66

77
yarn check:types
8-
yarn test --lastCommit --no-cache
8+
yarn test

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# :exclamation: Flexceptions [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) [![TypeScript](https://badgen.net/badge/-/typescript?icon=typescript&label)](https://www.typescriptlang.org/)
1+
# flexceptions [![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-yellow.svg)](https://conventionalcommits.org) [![TypeScript](https://badgen.net/badge/-/typescript?icon=typescript&label)](https://www.typescriptlang.org/)
22

33
Exception data models and error handling solutions
44

@@ -10,12 +10,16 @@ Exception data models and error handling solutions
1010

1111
## Getting Started
1212

13-
The Flexceptions project focuses on consolidating exception data models and
13+
The flexceptions project focuses on consolidating exception data models and
1414
error handling solutions found throughout Flex Development projects.
1515

1616
## Usage
1717

1818
This project is organized as a monorepo. For detailed usage instructions, see
1919
one of the project workspaces below:
2020

21-
- [@flex-development/exceptions](packages/exceptions/README.md#usage)
21+
- [@flex-development/aggregate-error-ponyfill][1]
22+
- [@flex-development/exceptions][2]
23+
24+
[1]: packages/aggregate-error-ponyfill/README.md#usage
25+
[2]: packages/exceptions/README.md#usage

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,13 @@
3333
"fix:format": "prettier --write .",
3434
"fix:style": "yarn check:style --fix --cache",
3535
"test": "bash tools/scripts/mocha.sh",
36+
"test:aggregate-error-ponyfill": "yarn workspace @flex-development/aggregate-error-ponyfill test",
3637
"test:coverage": "yarn workspace @flex-development/$0 test:coverage",
3738
"test:exceptions": "yarn workspace @flex-development/exceptions test",
3839
"build": "yarn workspaces foreach -iv --topological-dev run build",
40+
"build:aggregate-error-ponyfill": "yarn workspace @flex-development/aggregate-error-ponyfill build",
3941
"build:exceptions": "yarn workspace @flex-development/exceptions build",
42+
"release:aggregate-error-ponyfill": "yarn workspace @flex-development/aggregate-error-ponyfill release",
4043
"release:exceptions": "yarn workspace @flex-development/exceptions release"
4144
},
4245
"devDependencies": {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Environment Variables - Development
2+
3+
NODE_ENV=development
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Environment Variables - Production
2+
3+
NODE_ENV=production

0 commit comments

Comments
 (0)