Skip to content

Commit

Permalink
created a couple packages
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshay committed Nov 29, 2023
1 parent f1f8832 commit 8b0fcc6
Show file tree
Hide file tree
Showing 33 changed files with 4,199 additions and 1,617 deletions.
5 changes: 5 additions & 0 deletions .changeset/brave-icons-double.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lshay/eslint-config-flat": patch
---

Added default for global files
6 changes: 6 additions & 0 deletions .changeset/cool-ducks-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
"@lshay/constructs": patch
"@lshay/tsconfig": patch
---

Created packages
5 changes: 5 additions & 0 deletions .changeset/nervous-cheetahs-smoke.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@lshay/prettier-config": minor
---

Updated markdown to use spaces instead of tabs
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 18.18.0
nodejs 20
22 changes: 11 additions & 11 deletions .yarn/sdks/typescript/bin/tsc
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const { existsSync } = require(`fs`)
const { createRequire } = require(`module`)
const { resolve } = require(`path`)

const relPnpApiPath = "../../../../.pnp.cjs";
const relPnpApiPath = "../../../../.pnp.cjs"

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const absPnpApiPath = resolve(__dirname, relPnpApiPath)
const absRequire = createRequire(absPnpApiPath)

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsc
require(absPnpApiPath).setup();
}
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsc
require(absPnpApiPath).setup()
}
}

// Defer to the real typescript/bin/tsc your application uses
module.exports = absRequire(`typescript/bin/tsc`);
module.exports = absRequire(`typescript/bin/tsc`)
22 changes: 11 additions & 11 deletions .yarn/sdks/typescript/bin/tsserver
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
#!/usr/bin/env node

const {existsSync} = require(`fs`);
const {createRequire} = require(`module`);
const {resolve} = require(`path`);
const { existsSync } = require(`fs`)
const { createRequire } = require(`module`)
const { resolve } = require(`path`)

const relPnpApiPath = "../../../../.pnp.cjs";
const relPnpApiPath = "../../../../.pnp.cjs"

const absPnpApiPath = resolve(__dirname, relPnpApiPath);
const absRequire = createRequire(absPnpApiPath);
const absPnpApiPath = resolve(__dirname, relPnpApiPath)
const absRequire = createRequire(absPnpApiPath)

if (existsSync(absPnpApiPath)) {
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsserver
require(absPnpApiPath).setup();
}
if (!process.versions.pnp) {
// Setup the environment to be able to require typescript/bin/tsserver
require(absPnpApiPath).setup()
}
}

// Defer to the real typescript/bin/tsserver your application uses
module.exports = absRequire(`typescript/bin/tsserver`);
module.exports = absRequire(`typescript/bin/tsserver`)
21 changes: 10 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@
"changeset": "CHANGESET=1 changeset",
"lint": "yarn workspaces foreach run lint",
"lint:fix": "yarn workspaces foreach run lint:fix",
"prettier": "prettier --check .",
"prettier:fix": "yarn prettier --write",
"format": "prettier --write --check .",
"release": "changeset version && yarn prettier:fix && git add . && git commit -m 'new versions' && changeset publish && git push --follow-tags"
},
"lint-staged": {
Expand All @@ -26,21 +25,21 @@
]
},
"dependencies": {
"@changesets/changelog-github": "^0.4.8"
"@changesets/changelog-github": "^0.5.0"
},
"devDependencies": {
"@changesets/cli": "^2.26.2",
"@changesets/cli": "^2.27.1",
"@lshay/eslint-config": "workspace:^",
"@lshay/eslint-config-flat": "workspace:^",
"@lshay/prettier-config": "workspace:^",
"@tsconfig/node18": "^18.2.0",
"@types/node": "^18",
"@tsconfig/node18": "^18.2.2",
"@types/node": "^20",
"@vercel/git-hooks": "^1.0.0",
"eslint": "^8.45.0",
"lint-staged": "^13.2.3",
"prettier": "^3.0.0",
"rimraf": "^5.0.1",
"typescript": "^5.1.6"
"eslint": "^8.54.0",
"lint-staged": "^15.1.0",
"prettier": "^3.1.0",
"rimraf": "^5.0.5",
"typescript": "^5.3.2"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
3 changes: 3 additions & 0 deletions packages/lshay-constructs/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
dist/
node_modules/

21 changes: 21 additions & 0 deletions packages/lshay-constructs/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2021 Luke Shay

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
23 changes: 23 additions & 0 deletions packages/lshay-constructs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# @lshay/constructs

Useful constructs for AWS CDK.

## Getting Started

Install using the package manager of your choice.

```sh
npm i @lshay/constructs
```

```sh
pnpm i @lshay/constructs
```

```sh
yarn add @lshay/constructs
```

# API Reference

[Docs](./docs/modules.md)
1 change: 1 addition & 0 deletions packages/lshay-constructs/docs/.nojekyll
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
TypeDoc added this file to prevent GitHub Pages from using Jekyll. You can turn off this behavior by setting the `githubPages` option to false.
25 changes: 25 additions & 0 deletions packages/lshay-constructs/docs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
@lshay/constructs / [Exports](modules.md)

# @lshay/constructs

Useful constructs for AWS CDK.

## Getting Started

Install using the package manager of your choice.

```sh
npm i @lshay/constructs
```

```sh
pnpm i @lshay/constructs
```

```sh
yarn add @lshay/constructs
```

# API Reference

[Docs](./docs/modules.md)
Loading

0 comments on commit 8b0fcc6

Please sign in to comment.