Skip to content

Commit b6a09a5

Browse files
committed
chore: it's cjs now
1 parent 1080582 commit b6a09a5

File tree

9 files changed

+7
-17
lines changed

9 files changed

+7
-17
lines changed

.github/workflows/release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
id: changelog
3333
env:
3434
INPUT_VERSION: ${{ needs.check.outputs.version }}
35-
run: node ./scripts/changelog
35+
run: node ./scripts/changelog/index.cjs
3636
- name: Set up Node.js
3737
uses: actions/setup-node@v1
3838
with:

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,12 @@
1818
"type": "module",
1919
"scripts": {
2020
"build": "rollup -c",
21-
"gpr-setup": "node scripts/gpr.js",
2221
"prepack": "rollup -c",
2322
"start": "rollup -c --watch --configDebug",
2423
"lint": "eslint . --ignore-path .gitignore",
2524
"test": "mocha",
2625
"update": "npm version minor --m=\"chore(update): Release v%s\"",
27-
"version": "node scripts/validate.js",
26+
"version": "node scripts/validate.cjs",
2827
"//": "versioning scripts",
2928
"patch": "npm version patch --m=\"chore(patch): Release v%s\"",
3029
"nextpatch": "npm version prepatch --m=\"chore(next): Build patch v%s\"",
File renamed without changes.

scripts/changelog/index.js renamed to scripts/changelog/index.cjs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fs = require('fs');
2-
const { getInput, setOutput } = require('./io');
3-
const { getVersionById } = require('./entries');
2+
const { getInput, setOutput } = require('./io.cjs');
3+
const { getVersionById } = require('./entries.cjs');
44

55
const changelog = getInput('path') || './changelog.md';
66
const target = getInput('version');
File renamed without changes.

scripts/gpr.js

-9
This file was deleted.

scripts/validate.js renamed to scripts/validate.cjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const fs = require('fs');
22
const { exec } = require('child_process');
3-
const { getVersionById } = require('./changelog/entries');
3+
const { getVersionById } = require('./changelog/entries.cjs');
44
const { version: target } = require('../package.json');
55

66
fs.readFile('./changelog.md', (_, data) => {
File renamed without changes.

0 commit comments

Comments
 (0)