Skip to content

Commit

Permalink
chore: move to cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
oceanroleplay committed Nov 15, 2021
1 parent 85a78a6 commit b6c7fc3
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 18 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.todo
.vscode
build

Expand Down
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Stage

## Features

- esm support ([562569](https://github.com/oceanroleplay/aviationweather/commit/56256941096fd52c20c5eb19ad931e125ce43845))

## Untagged

- 1.4.0 ([f654d8](https://github.com/oceanroleplay/aviationweather/commit/f654d8c409d43a69a85ca81d25ad40be9b60ee99))
- update ([00e3ad](https://github.com/oceanroleplay/aviationweather/commit/00e3ad24ee1423e0a177135fad9f9ebc9cbfb89d))
- fix taf ([a5b087](https://github.com/oceanroleplay/aviationweather/commit/a5b08759ba8444749cffd5b16f15bd06b9ca579b))
- taf update ([b382d4](https://github.com/oceanroleplay/aviationweather/commit/b382d4337faf9a6632d5b7bc849c0eb692c03bc5))
- v1.2.8 ([b72da3](https://github.com/oceanroleplay/aviationweather/commit/b72da35ef0238cab479ce8f2d8e92855502b1fdf))
- IGAirMet ([b419e8](https://github.com/oceanroleplay/aviationweather/commit/b419e819bdb503fbeedd21ef0c84200a843e6087))
- update ([30fa71](https://github.com/oceanroleplay/aviationweather/commit/30fa711f32e14b41a0cf55fced55a4df7f128b1f))
- IAirSigmet ([dfc0e0](https://github.com/oceanroleplay/aviationweather/commit/dfc0e0329ea55572575d2a89174868b1c42237df))
- CAVOK ([efe9e0](https://github.com/oceanroleplay/aviationweather/commit/efe9e022ec5d95a3344bb301dc3e9b5437b8998b))
- airep ([893272](https://github.com/oceanroleplay/aviationweather/commit/893272dc44ef658fc7926f26dbf11939b9f86b19))
- update ([04572b](https://github.com/oceanroleplay/aviationweather/commit/04572b1595705d83bbd0a13a905337fc3ae3f4e9))
- No Significant Cloud ([67f858](https://github.com/oceanroleplay/aviationweather/commit/67f85840620be4a2d0e16bb2209437abe4ae7e6f))
- taf fix ([d4371e](https://github.com/oceanroleplay/aviationweather/commit/d4371eb16d1f8f6ed0c832bb49f8034279ceb4c1))
- v1.2.0 ([2e8d13](https://github.com/oceanroleplay/aviationweather/commit/2e8d13ebec42000a2b7aaa5ab42dbf5c1a5a9f0c))
- v1.1.9 ([fb854c](https://github.com/oceanroleplay/aviationweather/commit/fb854cacb65e29a52807fa051dee8118451e9d73))
- v1.1.8 ([a18a17](https://github.com/oceanroleplay/aviationweather/commit/a18a1704a7f39e0dde919292f7067c20bdbc8f49))
- v1.1.7 ([efba6b](https://github.com/oceanroleplay/aviationweather/commit/efba6b3aeb9efa05b9cf6432a7b5461880e5e1e1))
- IDef ([c8293d](https://github.com/oceanroleplay/aviationweather/commit/c8293dcec57f6bc6c26787cfa708339d393c6ba6))
- v1.1.5 ([ffed2d](https://github.com/oceanroleplay/aviationweather/commit/ffed2de3c0171de17fabffb36ba4bf270f8fa36e))
- v1.1.4 ([499b73](https://github.com/oceanroleplay/aviationweather/commit/499b73cd628f41a988aad2c00eae43e0d6c14f36))
- v1.1.2 ([6b560e](https://github.com/oceanroleplay/aviationweather/commit/6b560ee2999f8e3280d8d864a9a062d560a030ea))
- v1.1.1 ([6ebdba](https://github.com/oceanroleplay/aviationweather/commit/6ebdbac50f7568be6f1f6e69a36b1cdb06568b47))
- v1.1.0 ([509c57](https://github.com/oceanroleplay/aviationweather/commit/509c576a647856bba1249909d0c33c4514f3b5a9))
- 'v1.0.0 ([6de5f5](https://github.com/oceanroleplay/aviationweather/commit/6de5f50f97a8462430299594c0bccc8efa7ff87a))
19 changes: 4 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,8 @@
"contributors": [
"Harry <[email protected]> (https://github.com/oceanroleplay)"
],
"exports": {
".": {
"import": "./build/esm/index.js",
"require": "./build/cjs/index.js",
"types": "./build/esm/index.d.ts"
}
},
"main": "build/cjs/index.js",
"module": "build/esm/index.js",
"types": "./build/esm/index.d.ts",
"main": "build/index.js",
"types": "./build/index.d.ts",
"files": [
"build",
"LICENSE",
Expand All @@ -40,11 +32,8 @@
"package.json"
],
"scripts": {
"build": "npm run build:esm && npm run build:cjs",
"build:cjs": "tsc --module CommonJs --outDir build/cjs && npm run postbuild:cjs",
"build:esm": "tsc && npm run postbuild:esm",
"postbuild:cjs": "node scripts/postbuild.mjs --module=cjs --path=build/cjs",
"postbuild:esm": "node scripts/postbuild.mjs --module=esm --path=build/esm",
"build": "tsc",
"build:changelog": "npx @discordx/changelog --repo=oceanroleplay/aviationweather --root=./src",
"format": "prettier --write .",
"format-check": "prettier --check .",
"lint": "eslint ./",
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"compilerOptions": {
"module": "esnext",
"module": "CommonJS",
"target": "esnext",
"noImplicitAny": true,
"sourceMap": true,
"strict": true,
"strictNullChecks": true,
"noUncheckedIndexedAccess": true,
"rootDir": "src",
"outDir": "build/esm",
"outDir": "build",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"declaration": true,
Expand Down

0 comments on commit b6c7fc3

Please sign in to comment.