diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e8e843..19e31d0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,7 +12,7 @@ jobs: strategy: matrix: os: [ ubuntu-latest ] - node: [ 16 ] + node: [ 20 ] steps: - name: Checkout 🔔 @@ -28,7 +28,7 @@ jobs: run: npm install - name: Compile Typescript 📝 - run: npm run tsc + run: npm run tsc && npm run commonjs/tsc - name: Run unit tests 🛠 run: npm run test diff --git a/commonjs/tsconfig.json b/commonjs/tsconfig.json new file mode 100644 index 0000000..c997d92 --- /dev/null +++ b/commonjs/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "target": "es2019", + "module": "commonjs", + "strict": true, + "moduleResolution": "node" + }, + "include": ["../ClassGroup.d.ts"], + "exclude": ["node_modules", "**/__tests__/*"], +} diff --git a/package-lock.json b/package-lock.json index e4625ac..1950ee1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,12 @@ { "name": "classgroup", - "version": "1.2.1", + "version": "1.2.3", "lockfileVersion": 2, "requires": true, "packages": { "": { - "version": "1.2.1", + "name": "classgroup", + "version": "1.2.3", "license": "MIT", "devDependencies": { "@babel/core": "^7.15.5", diff --git a/package.json b/package.json index a65865b..97ec91c 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,7 @@ "lint": "tslint -p tsconfig.json", "test": "jest", "tsc": "node_modules/.bin/tsc", + "commonjs/tsc": "node_modules/.bin/tsc commonjs/index.ts", "release": "semantic-release --branches main" }, "keywords": [ diff --git a/tsconfig.json b/tsconfig.json index d3e8406..8154867 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -5,6 +5,6 @@ "strict": true, "moduleResolution": "node" }, - "include": ["./esm", "./commonjs", "ClassGroup.d.ts"], + "include": ["./esm", "ClassGroup.d.ts"], "exclude": ["node_modules", "**/__tests__/*"], }