Skip to content

Commit

Permalink
chore: chore: use ts-node as loader to run renameFiles.ts
Browse files Browse the repository at this point in the history
NOTE: npx ts-node renameFiles.ts not working
issue: TypeStrong/ts-node#2100
  • Loading branch information
kleekich21 committed Jul 2, 2024
1 parent 90f1799 commit 1a30259
Show file tree
Hide file tree
Showing 6 changed files with 132 additions and 29 deletions.
3 changes: 1 addition & 2 deletions build/cjs/index.cjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deeplyCopy = void 0;
function deeplyCopy(target) { }
exports.deeplyCopy = deeplyCopy;
function deeplyCopy(target) { }
//# sourceMappingURL=index.js.map
6 changes: 0 additions & 6 deletions build/cjs/index.js

This file was deleted.

2 changes: 1 addition & 1 deletion build/cjs/index.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,11 @@
},
"scripts": {
"test": "jest",
"build": "npm run build:cjs && npm run build:esm && npm run build:rename && npm run rename",
"build": "npm run build:cjs && npm run build:esm && npm run rename",
"build:cjs": "tsc --p ./cjs/tsconfig.json",
"build:esm": "tsc --p ./esm/tsconfig.json",
"build:rename": "npx tsc renameFiles.ts",
"build:clean": "rm -rf ./build",
"rename": "node renameFiles.js",
"rename": "node --no-warnings=ExperimentalWarning --loader ts-node/esm renameFiles.ts",
"lint": "pnpm eslint",
"lint:fix": "npx eslint . --fix"
},
Expand Down Expand Up @@ -58,6 +57,7 @@
"jest": "^29.7.0",
"prettier": "3.3.2",
"ts-jest": "^29.1.5",
"ts-node": "^10.9.2",
"typescript": "^5.4.5",
"typescript-eslint": "^7.13.1"
}
Expand Down
Loading

0 comments on commit 1a30259

Please sign in to comment.