@mrshmllw/campfire 1.0.0 → 1.0.1-crumbs-feature-adding-peer-dep.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -1
- package/package.json +9 -1
- package/.github/CODEOWNERS +0 -19
- package/.github/dependabot.yml +0 -15
- package/.github/pull_request_template.md +0 -28
- package/.github/workflows/auto-merge-dependabot.yml +0 -9
- package/.github/workflows/bump_and_publish.yml +0 -52
- package/.github/workflows/merge_main.yml +0 -25
- package/.github/workflows/preview_bump_and_publish.yml +0 -39
- package/.github/workflows/pull_request.yml +0 -23
- package/.husky/commit-msg +0 -1
- package/.husky/pre-commit +0 -1
- package/.nvmrc +0 -1
- package/.prettierignore +0 -5
- package/CHANGELOG.md +0 -17
- package/commitlint.config.ts +0 -2
- package/eslint.config.js +0 -2
- package/libs/configs/commitlint.config.ts +0 -29
- package/libs/configs/eslint.config.js +0 -30
- package/libs/configs/lint-staged.config.js +0 -6
- package/libs/configs/prettier.config.js +0 -9
- package/libs/configs/release.config.js +0 -131
- package/libs/index.ts +0 -0
- package/libs/utils/index.ts +0 -0
- package/lint-staged.config.js +0 -2
- package/prettier.config.js +0 -2
- package/release.config.js +0 -2
- package/tsconfig.build.json +0 -16
- package/tsconfig.json +0 -15
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mrshmllw/campfire",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-crumbs-feature-adding-peer-dep.2",
|
|
4
4
|
"description": "Collection of toasty utils and configs used by Marshmallow Technology",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
|
+
"files": [
|
|
8
|
+
"dist"
|
|
9
|
+
],
|
|
7
10
|
"scripts": {
|
|
8
11
|
"clean": "rimraf ./dist",
|
|
9
12
|
"test": "echo \"Error: There are no tests yet\"",
|
|
@@ -17,6 +20,11 @@
|
|
|
17
20
|
"dependencies": {
|
|
18
21
|
"typescript": "^5.7.3"
|
|
19
22
|
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"eslint": "^9.19.0",
|
|
25
|
+
"prettier": "^3.4.2",
|
|
26
|
+
"lint-staged": "^15.4.3"
|
|
27
|
+
},
|
|
20
28
|
"devDependencies": {
|
|
21
29
|
"@commitlint/cli": "^19.7.1",
|
|
22
30
|
"@commitlint/types": "^19.5.0",
|
package/.github/CODEOWNERS
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
# Lines starting with '#' are comments.
|
|
2
|
-
|
|
3
|
-
# Each line is a file pattern followed by one or more owners.
|
|
4
|
-
|
|
5
|
-
# More details are here: https://help.github.com/articles/about-codeowners/
|
|
6
|
-
|
|
7
|
-
# The '\*' pattern is global owners.
|
|
8
|
-
|
|
9
|
-
# Order is important. The last matching pattern has the most precedence.
|
|
10
|
-
|
|
11
|
-
# The folders are ordered as follows:
|
|
12
|
-
|
|
13
|
-
# In each subsection folders are ordered first by depth, then alphabetically.
|
|
14
|
-
|
|
15
|
-
# This should make it easy to add new rules without breaking existing ones.
|
|
16
|
-
|
|
17
|
-
# Global - These owners will be the default owners for everything in the repo.
|
|
18
|
-
|
|
19
|
-
- @marshmallow-insurance/frontend
|
package/.github/dependabot.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
version: 2
|
|
2
|
-
updates:
|
|
3
|
-
- package-ecosystem: npm
|
|
4
|
-
commit-message:
|
|
5
|
-
prefix: "chore(npm-dep): "
|
|
6
|
-
directory: '/'
|
|
7
|
-
schedule:
|
|
8
|
-
interval: daily
|
|
9
|
-
time: '05:00'
|
|
10
|
-
timezone: Europe/London
|
|
11
|
-
open-pull-requests-limit: 99
|
|
12
|
-
reviewers:
|
|
13
|
-
- marshmallow-insurance/frontend
|
|
14
|
-
assignees:
|
|
15
|
-
- marshmallow-insurance/frontend
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
## What does this do?
|
|
2
|
-
<!--
|
|
3
|
-
- A short description of what the PR changes and why it's necessary
|
|
4
|
-
- Give the reviewers context
|
|
5
|
-
- Is the impact global or localised?
|
|
6
|
-
- Any tech debt created or discovered?
|
|
7
|
-
-->
|
|
8
|
-
|
|
9
|
-
## Screenshot / Video
|
|
10
|
-
<!--
|
|
11
|
-
- applicable for UI changes, can be skipped if not relevant. You can drag and drop images/videos to upload them to GitHub.
|
|
12
|
-
- Example with image with fixed width
|
|
13
|
-
- <img src="https://github.com/marshmallow-insurance/uk-auto-signup-www/assets/57456071/3dbf1ec1-2363-4e20-8236-b1f1581b0953" width="300px" />
|
|
14
|
-
shortcuts:
|
|
15
|
-
- Screenshot: cmd + shift + 4
|
|
16
|
-
- Screen recording: cmd + shift + 5
|
|
17
|
-
-->
|
|
18
|
-
|
|
19
|
-
## Relevant tickets / Documentation
|
|
20
|
-
<!--
|
|
21
|
-
- Link to any relevant issue tracking software (jira, GitHub etc), documentation (PRDs, engineering plans, Figma designs) or slack threads
|
|
22
|
-
- If applicable, list any new documentation that has been created/updated e.g. diagrams/flows etc
|
|
23
|
-
-->
|
|
24
|
-
|
|
25
|
-
## Testing
|
|
26
|
-
<!--
|
|
27
|
-
- Tests should have been updated/created to cover the changes made in this PR, if not please explain why
|
|
28
|
-
-->
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
name: Bump and Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
|
|
6
|
-
permissions:
|
|
7
|
-
contents: write
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
bump-and-publish:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- name: Check branch 🪵
|
|
14
|
-
run: |
|
|
15
|
-
# Ensure the branch is either:
|
|
16
|
-
# - main
|
|
17
|
-
# OR
|
|
18
|
-
# - feature/your-branch-name
|
|
19
|
-
# - fix/your-branch-name
|
|
20
|
-
# - chore/your-branch-name
|
|
21
|
-
if [[ "$GITHUB_REF" != "refs/heads/main" && ! "$GITHUB_REF" =~ ^refs/heads/(feature|fix|chore)/.* ]]; then
|
|
22
|
-
echo "This job can only run on the 'main' branch or a '(feature|fix|chore)/*' branch."
|
|
23
|
-
exit 1
|
|
24
|
-
fi
|
|
25
|
-
shell: bash
|
|
26
|
-
- name: Generate Token 🔐
|
|
27
|
-
uses: actions/create-github-app-token@v1
|
|
28
|
-
id: app-token
|
|
29
|
-
with:
|
|
30
|
-
app-id: ${{ vars.MARSHMALLOW_CI_APP_ID }}
|
|
31
|
-
private-key: ${{ secrets.MARSHMALLOW_CI_APP_PRIVATE_KEY }}
|
|
32
|
-
- name: Checkout 🛎️
|
|
33
|
-
uses: actions/checkout@v4
|
|
34
|
-
with:
|
|
35
|
-
token: ${{ steps.app-token.outputs.token }}
|
|
36
|
-
persist-credentials: false
|
|
37
|
-
- name: Setup Node 👾
|
|
38
|
-
uses: actions/setup-node@v4
|
|
39
|
-
with:
|
|
40
|
-
node-version-file: ".nvmrc"
|
|
41
|
-
- name: Install Dependencies 🔧
|
|
42
|
-
run: |
|
|
43
|
-
npm ci
|
|
44
|
-
- name: Configure Git 🪪
|
|
45
|
-
run: |
|
|
46
|
-
git config user.name "marshmallow-ci"
|
|
47
|
-
git config user.email "ci@marshmallow.co"
|
|
48
|
-
- name: Generate CHANGELOG.md & Bump & Release to NPM 🦫
|
|
49
|
-
env:
|
|
50
|
-
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
51
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
52
|
-
run: npx semantic-release
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
name: Build and Fossa Check
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- main
|
|
6
|
-
jobs:
|
|
7
|
-
build-and-fossa-check:
|
|
8
|
-
runs-on: ubuntu-latest
|
|
9
|
-
steps:
|
|
10
|
-
- name: Checkout 🛎️
|
|
11
|
-
uses: actions/checkout@v4
|
|
12
|
-
with:
|
|
13
|
-
persist-credentials: false
|
|
14
|
-
- name: Setup Node 👾
|
|
15
|
-
uses: actions/setup-node@v4
|
|
16
|
-
with:
|
|
17
|
-
node-version: '20'
|
|
18
|
-
- name: Install and Build 🔧
|
|
19
|
-
run: |
|
|
20
|
-
npm ci
|
|
21
|
-
npm run check-types
|
|
22
|
-
- name: Fossa dependency analysis 🐛
|
|
23
|
-
uses: fossas/fossa-action@main
|
|
24
|
-
with:
|
|
25
|
-
api-key: ${{ secrets.FOSSA_API_KEY }}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
name: Preview Bump and Publish
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
workflow_dispatch:
|
|
5
|
-
|
|
6
|
-
permissions:
|
|
7
|
-
contents: write
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
preview-bump-and-publish:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
steps:
|
|
13
|
-
- name: Generate Token 🔐
|
|
14
|
-
uses: actions/create-github-app-token@v1
|
|
15
|
-
id: app-token
|
|
16
|
-
with:
|
|
17
|
-
app-id: ${{ vars.MARSHMALLOW_CI_APP_ID }}
|
|
18
|
-
private-key: ${{ secrets.MARSHMALLOW_CI_APP_PRIVATE_KEY }}
|
|
19
|
-
- name: Checkout 🛎️
|
|
20
|
-
uses: actions/checkout@v4
|
|
21
|
-
with:
|
|
22
|
-
token: ${{ steps.app-token.outputs.token }}
|
|
23
|
-
persist-credentials: false
|
|
24
|
-
- name: Setup Node 👾
|
|
25
|
-
uses: actions/setup-node@v4
|
|
26
|
-
with:
|
|
27
|
-
node-version-file: ".nvmrc"
|
|
28
|
-
- name: Install Dependencies 🔧
|
|
29
|
-
run: |
|
|
30
|
-
npm ci
|
|
31
|
-
- name: Configure Git 🪪
|
|
32
|
-
run: |
|
|
33
|
-
git config user.name "marshmallow-ci"
|
|
34
|
-
git config user.email "ci@marshmallow.co"
|
|
35
|
-
- name: Generate preview CHANGELOG.md
|
|
36
|
-
env:
|
|
37
|
-
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
|
|
38
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
39
|
-
run: npx semantic-release --dry-run
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
name: Build and Check Types
|
|
2
|
-
on:
|
|
3
|
-
pull_request:
|
|
4
|
-
|
|
5
|
-
jobs:
|
|
6
|
-
build-and-check-types:
|
|
7
|
-
runs-on: ubuntu-latest
|
|
8
|
-
steps:
|
|
9
|
-
- name: Checkout 🛎️
|
|
10
|
-
uses: actions/checkout@v4
|
|
11
|
-
with:
|
|
12
|
-
persist-credentials: false
|
|
13
|
-
- name: Setup Node 👾
|
|
14
|
-
uses: actions/setup-node@v4
|
|
15
|
-
with:
|
|
16
|
-
node-version: '20'
|
|
17
|
-
- name: Install and Check Types 🔧
|
|
18
|
-
run: |
|
|
19
|
-
npm ci
|
|
20
|
-
npm run check-types
|
|
21
|
-
- name: Test 🧪
|
|
22
|
-
run: |
|
|
23
|
-
npm run test
|
package/.husky/commit-msg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
npx --no -- commitlint --edit $1
|
package/.husky/pre-commit
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
npm run pre-commit-lint
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
20.11.0
|
package/.prettierignore
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
## 1.0.0 (2025-02-06)
|
|
2
|
-
|
|
3
|
-
### Features
|
|
4
|
-
|
|
5
|
-
* adding default release.config ([659c171](https://github.com/marshmallow-insurance/campfire/commit/659c171e21c6fc6858d5b6d967c316c6f2dcd6f8))
|
|
6
|
-
|
|
7
|
-
### Bug Fixes
|
|
8
|
-
|
|
9
|
-
* allowJs in tsconfig so we can actually use configs ([05c822e](https://github.com/marshmallow-insurance/campfire/commit/05c822eaf3ef47f4036ef9e55da82a0294df4398))
|
|
10
|
-
* creating clearer build dir ([08ec293](https://github.com/marshmallow-insurance/campfire/commit/08ec293cc7d0d1dca9e443a27804d9258c2c8a7c))
|
|
11
|
-
* initial commit ([e0efc31](https://github.com/marshmallow-insurance/campfire/commit/e0efc310c4c603df058d1cfc244695d5a4923f67))
|
|
12
|
-
* undoing tsconfig refactor ([0d7080f](https://github.com/marshmallow-insurance/campfire/commit/0d7080fe839731b4e6c9716d707a7335ebc68d72))
|
|
13
|
-
* update workflow to use actions/create-github-app-token ([705884a](https://github.com/marshmallow-insurance/campfire/commit/705884a75cfba1d997457266a2d2b3b3262b193e))
|
|
14
|
-
|
|
15
|
-
### Refactors
|
|
16
|
-
|
|
17
|
-
* tsconfig and exports ([7a48843](https://github.com/marshmallow-insurance/campfire/commit/7a488435aaa186f55150ea49c8141d20b654c882))
|
package/commitlint.config.ts
DELETED
package/eslint.config.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { RuleConfigSeverity, UserConfig } from '@commitlint/types'
|
|
2
|
-
|
|
3
|
-
export const config: UserConfig = {
|
|
4
|
-
parserPreset: 'conventional-changelog-conventionalcommits',
|
|
5
|
-
ignores: [(commit: string) => /^BREAKING(?:[- ]CHANGE(?:S)?):/.test(commit)],
|
|
6
|
-
rules: {
|
|
7
|
-
'type-case': [RuleConfigSeverity.Error, 'always', 'lower-case'],
|
|
8
|
-
'type-empty': [RuleConfigSeverity.Error, 'never'],
|
|
9
|
-
'type-enum': [
|
|
10
|
-
RuleConfigSeverity.Error,
|
|
11
|
-
'always',
|
|
12
|
-
[
|
|
13
|
-
'feat',
|
|
14
|
-
'fix',
|
|
15
|
-
'docs',
|
|
16
|
-
'bump',
|
|
17
|
-
'dependabot',
|
|
18
|
-
'refactor',
|
|
19
|
-
'style',
|
|
20
|
-
'perf',
|
|
21
|
-
'test',
|
|
22
|
-
'revert',
|
|
23
|
-
'chore',
|
|
24
|
-
],
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export default config
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import typescriptEslintPlugin from '@typescript-eslint/eslint-plugin'
|
|
2
|
-
import tsParser from '@typescript-eslint/parser'
|
|
3
|
-
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
|
|
4
|
-
|
|
5
|
-
const config = [
|
|
6
|
-
eslintPluginPrettierRecommended,
|
|
7
|
-
{
|
|
8
|
-
ignores: ['node_modules', 'dist', 'build'],
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
files: ['**/*.+(ts|tsx)'],
|
|
12
|
-
languageOptions: {
|
|
13
|
-
parser: tsParser,
|
|
14
|
-
},
|
|
15
|
-
plugins: {
|
|
16
|
-
'@typescript-eslint': typescriptEslintPlugin,
|
|
17
|
-
},
|
|
18
|
-
rules: {
|
|
19
|
-
'@typescript-eslint/no-explicit-any': 'warn', // Warns on use of 'any'
|
|
20
|
-
'@typescript-eslint/explicit-function-return-type': 'off', // Disables return type enforcement
|
|
21
|
-
'@typescript-eslint/no-unused-vars': [
|
|
22
|
-
'warn',
|
|
23
|
-
{ argsIgnorePattern: '^_' },
|
|
24
|
-
],
|
|
25
|
-
'no-console': 'warn', // Warns on console.log and similar calls
|
|
26
|
-
strict: ['error', 'never'],
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
]
|
|
30
|
-
export default config
|
|
@@ -1,131 +0,0 @@
|
|
|
1
|
-
import { readFileSync } from 'fs'
|
|
2
|
-
import path from 'path'
|
|
3
|
-
|
|
4
|
-
const branch = process.env.GITHUB_REF_NAME
|
|
5
|
-
|
|
6
|
-
/**
|
|
7
|
-
* Attempt to determine the repository URL.
|
|
8
|
-
* By loading it from the consumer project's package.json.
|
|
9
|
-
* If the URL starts with 'git+', remove that prefix.
|
|
10
|
-
*/
|
|
11
|
-
function getRepositoryUrl() {
|
|
12
|
-
try {
|
|
13
|
-
// process.cwd() will point to the consumer repo when semantic-release runs
|
|
14
|
-
const packageJsonPath = path.join(process.cwd(), 'package.json')
|
|
15
|
-
const packageJson = readFileSync(packageJsonPath, 'utf8')
|
|
16
|
-
const pkg = JSON.parse(packageJson)
|
|
17
|
-
|
|
18
|
-
if (pkg.repository) {
|
|
19
|
-
let url =
|
|
20
|
-
typeof pkg.repository === 'object' ? pkg.repository.url : pkg.repository
|
|
21
|
-
|
|
22
|
-
// Remove "git+" prefix if it exists
|
|
23
|
-
if (typeof url === 'string' && url.startsWith('git+')) {
|
|
24
|
-
url = url.slice(4)
|
|
25
|
-
}
|
|
26
|
-
return url
|
|
27
|
-
}
|
|
28
|
-
} catch (err) {
|
|
29
|
-
console.warn('Unable to load repository URL from package.json:', err)
|
|
30
|
-
}
|
|
31
|
-
return undefined
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const repositoryUrl = getRepositoryUrl()
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* @type {import('semantic-release').GlobalConfig}
|
|
38
|
-
*/
|
|
39
|
-
const config = {
|
|
40
|
-
branches: [
|
|
41
|
-
'main',
|
|
42
|
-
{
|
|
43
|
-
name: '(feature|fix|chore)/*',
|
|
44
|
-
// The prerelease name uses a dynamic expression to replace '/' with '-'
|
|
45
|
-
prerelease: 'crumbs-${name.replace(/\\//g, "-")}',
|
|
46
|
-
},
|
|
47
|
-
],
|
|
48
|
-
repositoryUrl,
|
|
49
|
-
plugins: [
|
|
50
|
-
[
|
|
51
|
-
'@semantic-release/commit-analyzer',
|
|
52
|
-
{
|
|
53
|
-
preset: 'angular',
|
|
54
|
-
releaseRules: [
|
|
55
|
-
{ type: 'feat', release: 'minor' },
|
|
56
|
-
{ type: 'fix', release: 'patch' },
|
|
57
|
-
{ type: 'docs', release: 'patch' },
|
|
58
|
-
{ type: 'bump', release: 'patch' },
|
|
59
|
-
{ type: 'dependabot', release: 'patch' },
|
|
60
|
-
{ type: 'style', release: 'patch' },
|
|
61
|
-
{ type: 'refactor', release: 'patch' },
|
|
62
|
-
{ type: 'perf', release: 'patch' },
|
|
63
|
-
{ type: 'test', release: 'patch' },
|
|
64
|
-
{ type: 'revert', release: 'patch' },
|
|
65
|
-
{ type: 'chore', release: 'patch' },
|
|
66
|
-
],
|
|
67
|
-
parserOpts: {
|
|
68
|
-
noteKeywords: [
|
|
69
|
-
'BREAKING CHANGE',
|
|
70
|
-
'BREAKING-CHANGE',
|
|
71
|
-
'BREAKING CHANGES',
|
|
72
|
-
'BREAKING-CHANGES',
|
|
73
|
-
],
|
|
74
|
-
},
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
[
|
|
78
|
-
'@semantic-release/release-notes-generator',
|
|
79
|
-
{
|
|
80
|
-
preset: 'conventionalcommits',
|
|
81
|
-
presetConfig: {
|
|
82
|
-
types: [
|
|
83
|
-
{ type: 'feat', section: 'Features' },
|
|
84
|
-
{ type: 'fix', section: 'Bug Fixes' },
|
|
85
|
-
{ type: 'docs', section: 'Documentation' },
|
|
86
|
-
{ type: 'bump', hidden: true },
|
|
87
|
-
{ type: 'dependabot', hidden: true },
|
|
88
|
-
{ type: 'style', section: 'Styles' },
|
|
89
|
-
{ type: 'refactor', section: 'Refactors' },
|
|
90
|
-
{ type: 'perf', section: 'Performance Improvements' },
|
|
91
|
-
{ type: 'test', section: 'Tests' },
|
|
92
|
-
{ type: 'revert', hidden: true },
|
|
93
|
-
{ type: 'chore', hidden: true },
|
|
94
|
-
{ type: '*', section: 'Others' },
|
|
95
|
-
],
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
],
|
|
99
|
-
[
|
|
100
|
-
'@semantic-release/github',
|
|
101
|
-
{
|
|
102
|
-
assets: ['dist'],
|
|
103
|
-
},
|
|
104
|
-
],
|
|
105
|
-
[
|
|
106
|
-
'@semantic-release/npm',
|
|
107
|
-
{
|
|
108
|
-
npmPublish: true,
|
|
109
|
-
pkgRoot: '.',
|
|
110
|
-
},
|
|
111
|
-
],
|
|
112
|
-
],
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// Only add the changelog and git plugins on release (not for prereleases)
|
|
116
|
-
const isPrereleaseBranch = config.branches.some(
|
|
117
|
-
(b) => typeof b === 'object' && branch !== 'main' && b.prerelease,
|
|
118
|
-
)
|
|
119
|
-
|
|
120
|
-
if (!isPrereleaseBranch) {
|
|
121
|
-
config.plugins.push('@semantic-release/changelog', [
|
|
122
|
-
'@semantic-release/git',
|
|
123
|
-
{
|
|
124
|
-
assets: ['package.json', 'package-lock.json', 'CHANGELOG.md'],
|
|
125
|
-
message:
|
|
126
|
-
'chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}',
|
|
127
|
-
},
|
|
128
|
-
])
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
export default config
|
package/libs/index.ts
DELETED
|
File without changes
|
package/libs/utils/index.ts
DELETED
|
File without changes
|
package/lint-staged.config.js
DELETED
package/prettier.config.js
DELETED
package/release.config.js
DELETED
package/tsconfig.build.json
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"extends": "./tsconfig.json",
|
|
3
|
-
"compilerOptions": {
|
|
4
|
-
"rootDir": "libs",
|
|
5
|
-
"baseUrl": "libs",
|
|
6
|
-
"outDir": "./dist",
|
|
7
|
-
"declaration": true,
|
|
8
|
-
},
|
|
9
|
-
"exclude": [
|
|
10
|
-
"release.config.js",
|
|
11
|
-
"commitlint.config.ts",
|
|
12
|
-
"eslint.config.js",
|
|
13
|
-
"prettier.config.js",
|
|
14
|
-
"lint-staged.config.js"
|
|
15
|
-
]
|
|
16
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"outDir": "./dist",
|
|
4
|
-
"module": "esnext",
|
|
5
|
-
"target": "esnext",
|
|
6
|
-
"moduleResolution": "Bundler",
|
|
7
|
-
"allowJs": true,
|
|
8
|
-
"esModuleInterop": true,
|
|
9
|
-
"forceConsistentCasingInFileNames": true,
|
|
10
|
-
"strict": true,
|
|
11
|
-
"skipLibCheck": true
|
|
12
|
-
},
|
|
13
|
-
"include": ["libs/**/*"],
|
|
14
|
-
"exclude": ["node_modules", "dist"]
|
|
15
|
-
}
|