Skip to content

Commit 70c8043

Browse files
author
EspressoTrip-v2
committed
tsconfig and module chnages
1 parent 745ea79 commit 70c8043

18 files changed

Lines changed: 2859 additions & 1738 deletions

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "main",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.circleci/config.yml

Lines changed: 0 additions & 49 deletions
This file was deleted.

.editorconfig

Lines changed: 0 additions & 13 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
name: Build and Publish
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- "**"
7+
tags-ignore:
8+
- "**"
9+
10+
env:
11+
SECRETS: ${{ toJSON(secrets) }}
12+
GITHUB_TOKEN: ${{ secrets.SHARED_GH_TOKEN }}
13+
14+
jobs:
15+
build:
16+
name: Publish
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v4
20+
with:
21+
ref: ${{github.event.pull_request.head.sha}}
22+
fetch-depth: 0
23+
24+
- uses: actions/checkout@v4
25+
with:
26+
repository: journeyapps-platform/ci-actions
27+
token: ${{ secrets.SHARED_GH_TOKEN }}
28+
path: .github/ci
29+
ref: v1
30+
31+
- name: Setup NodeJS
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: 22.16
35+
36+
- name: Enable Corepack
37+
run: |
38+
npm install -g corepack@latest
39+
corepack enable pnpm
40+
41+
- name: Install Dependencies
42+
uses: ./.github/ci/actions/npm-install
43+
with:
44+
client: pnpm
45+
46+
47+
- name: Has changesets
48+
uses: bluwy/detect-changesets-action@v1
49+
id: detect
50+
51+
- name: Build
52+
run: pnpm build
53+
54+
- name: Publish dev packages.
55+
if: ${{ github.ref != 'refs/heads/master' && steps.detect.outputs.has-changesets == 'true' && success() }}
56+
uses: ./.github/ci/actions/pnpm-publish
57+
with:
58+
dev: true
59+
60+
- name: Create Release Pull Request or Publish to npm
61+
if: ${{ github.ref == 'refs/heads/master' && steps.detect.outputs.has-changesets == 'true' }}
62+
id: changesets
63+
uses: changesets/action@v1.4.1
64+
with:
65+
version: pnpm ci:version
66+
commit: "chore: update versions"
67+
title: "[Chore] update versions"
68+
env:
69+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70+
71+
- name: Publish production packages.
72+
if: ${{ github.ref == 'refs/heads/master' && steps.detect.outputs.has-changesets == 'false' && success() }}
73+
run: |
74+
pnpm ci:publish

.github/workflows/test.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- "**"
7+
tags-ignore:
8+
- "**"
9+
10+
env:
11+
SECRETS: ${{ toJSON(secrets) }}
12+
JOURNEY_PDF_KEY: ${{ secrets.JOURNEY_PDF_KEY }}
13+
JOURNEY_PDF_BUCKET: ${{ secrets.JOURNEY_PDF_BUCKET }}
14+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
15+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
16+
17+
jobs:
18+
run-tests:
19+
name: Test
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v4
24+
with:
25+
repository: journeyapps-platform/ci-actions
26+
token: ${{ secrets.SHARED_GH_TOKEN }}
27+
path: .github/ci
28+
ref: v1
29+
30+
- name: Setup NodeJS
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 22.15
34+
35+
- name: Enable Corepack
36+
run: |
37+
npm install -g corepack@latest
38+
corepack enable pnpm
39+
pnpm -v
40+
41+
- name: Install Dependencies
42+
uses: ./.github/ci/actions/npm-install
43+
with:
44+
client: pnpm
45+
46+
- name: Build
47+
shell: bash
48+
run: pnpm build
49+
50+
- name: Test
51+
run: pnpm test

.journey.conf.json

Lines changed: 0 additions & 23 deletions
This file was deleted.

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v8.11.4
1+
v22.16.0

package.json

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,24 @@
44
"author": "JourneyApps",
55
"repository": "journeyapps/https-proxy-socket",
66
"license": "MIT",
7+
"type": "module",
8+
"main": "./lib/cjs/index.js",
9+
"module": "./lib/esm/index.js",
10+
"types": "./lib/esm/index.d.ts",
11+
"exports": {
12+
".": {
13+
"import": "./lib/esm/index.js",
14+
"require": "./lib/cjs/index.js"
15+
}
16+
},
717
"scripts": {
8-
"build": "tsc",
18+
"ci:publish": "changeset publish && git push --follow-tags",
19+
"ci:version": "changeset version && pnpm install --no-frozen-lockfile",
20+
"clean": "rm -rf ./lib && tsc -b --clean",
21+
"clean:modules": "rm -rf node_modules",
22+
"build:esm": "tsc -p tsconfig.esm.json",
23+
"build:cjs": "tsc -p tsconfig.cjs.json",
24+
"build": "pnpm build:esm && pnpm build:cjs",
925
"test": "mocha src/*.spec.ts",
1026
"format": "journey-formatter format",
1127
"deploy": "journey-deploy trigger"
@@ -15,19 +31,18 @@
1531
"@journeyapps/formatter-cli": "^2.6.2",
1632
"@types/agent-base": "^4.2.0",
1733
"@types/mocha": "^5.2.6",
18-
"@types/node": "^11.9.4",
34+
"@types/node": "^22.18.8",
1935
"@types/node-fetch": "^2.1.6",
2036
"assert": "^1.4.1",
2137
"mocha": "^6.0.2",
2238
"mssql": "^4.3.2",
2339
"node-fetch": "^2.3.0",
2440
"proxy": "^1.0.1",
2541
"ts-node": "^8.0.2",
26-
"typescript": "^3.7.5"
42+
"typescript": "^5.9.3"
2743
},
28-
"main": "./lib/index.js",
2944
"dependencies": {
30-
"agent-base": "^6.0.0",
45+
"agent-base": "^6.0.2",
3146
"socks": "^2.8.7"
3247
},
3348
"files": [

0 commit comments

Comments
 (0)