Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to ESM #785

Merged
merged 1 commit into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".

root = true

Expand Down
12 changes: 6 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
.*
!.babelrc
!.dockerignore
Expand Down Expand Up @@ -26,14 +26,14 @@ node_modules/
!/tsconfig.json
!/.swcrc
!/eslint.config.mjs
!/prettier.config.mjs
!/prettier.config.js
!/.prettierignore
!/babel.config.mjs
!/beachball.config.js
!/babel.config.js
!/beachball.config.cjs
!/CODEOWNERS
!/.editorconfig
!/license
!/lint-staged.config.mjs
!/lint-staged.config.js
!/pnpm-workspace.yaml
!/renovate.json5
!/.projenrc.mts
!/.projenrc.ts
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
pnpm -q lint-staged
4 changes: 2 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
.*
dist/
*.frag
renovate.d.ts
swcrc.d.ts
!.projenrc.mts
!.projenrc.ts
pnpm-lock.yaml
CHANGELOG.md
!.editorconfig
2 changes: 1 addition & 1 deletion .projen/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,5 @@
"type": "runtime"
}
],
"//": "~~ Generated by projen. To modify, edit .projenrc.mts and run \"npx projen\"."
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
}
10 changes: 5 additions & 5 deletions .projen/files.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
".projen/files.json",
".projen/tasks.json",
".swcrc",
"babel.config.mjs",
"beachball.config.js",
"babel.config.js",
"beachball.config.cjs",
"CODEOWNERS",
"eslint.config.mjs",
"license",
"lint-staged.config.mjs",
"lint-staged.config.js",
"pnpm-workspace.yaml",
"prettier.config.mjs",
"prettier.config.js",
"renovate.json5",
"tsconfig.json"
],
"//": "~~ Generated by projen. To modify, edit .projenrc.mts and run \"npx projen\"."
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
}
4 changes: 2 additions & 2 deletions .projen/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"description": "Synthesize project files",
"steps": [
{
"exec": "node --loader ts-node/esm/transpile-only .projenrc.mts"
"exec": "node --loader ts-node/esm/transpile-only .projenrc.ts"
}
]
},
Expand Down Expand Up @@ -50,5 +50,5 @@
"description": "Run tests"
}
},
"//": "~~ Generated by projen. To modify, edit .projenrc.mts and run \"npx projen\"."
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
}
4 changes: 3 additions & 1 deletion .projenrc.mts → .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ const project = new Project({
package: {
...pkg,
copyrightYear: '2016',
repository: 'langri-sha/langri-sha.com',
homepage: 'https://langri-sha.com',
minNodeVersion: '20.12.0',
repository: 'langri-sha/langri-sha.com',
type: 'module',

deps: [
'@babel/core@7.24.9',
'@babel/register@7.24.6',
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
* @langri-sha
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/babel-preset",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/babel-test",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/eslint-config",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/jest-config",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/jest-test",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/lint-staged",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/monorepo",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/prettier",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-babel",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-beachball",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-codeowners",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-editorconfig",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-eslint",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-husky",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-jest-config",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-license",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-lint-staged",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-lint-synthesized",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-pnpm-workspace",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-prettier",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-project",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-renovate",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-swcrc",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/projen-typescript-config",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/schemastore-to-typescript",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/tsconfig",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/vitest",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "none",
"comment": "feat(root): Migrate to ESM",
"packageName": "@langri-sha/webpack",
"email": "filip.dupanovic@gmail.com",
"dependentChangeType": "none"
}
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import defaults from '@langri-sha/eslint-config'

export default [
...defaults,
{ ignores: ['.*', 'dist/', 'renovate.d.ts', 'swcrc.d.ts', '!.projenrc.mts'] },
{ ignores: ['.*', 'dist/', 'renovate.d.ts', 'swcrc.d.ts', '!.projenrc.ts'] },
]
File renamed without changes.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"url": "https://langri-sha.com",
"organization": false
},
"type": "module",
"main": "src/index.ts",
"scripts": {
"build": "pnpm run --filter @langri-sha/web build",
Expand Down Expand Up @@ -67,5 +68,5 @@
"publishConfig": {
"access": "public"
},
"//": "~~ Generated by projen. To modify, edit .projenrc.mts and run \"npx projen\"."
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
}
2 changes: 1 addition & 1 deletion packages/babel-preset/.npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
# ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
.*
tsconfig*.json
*.test.*
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-preset/.projen/deps.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@
"type": "runtime"
}
],
"//": "~~ Generated by projen. To modify, edit .projenrc.mts and run \"npx projen\"."
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
}
2 changes: 1 addition & 1 deletion packages/babel-preset/.projen/files.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"license",
"tsconfig.json"
],
"//": "~~ Generated by projen. To modify, edit .projenrc.mts and run \"npx projen\"."
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
}
2 changes: 1 addition & 1 deletion packages/babel-preset/.projen/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@
"description": "Run tests"
}
},
"//": "~~ Generated by projen. To modify, edit .projenrc.mts and run \"npx projen\"."
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
}
2 changes: 1 addition & 1 deletion packages/babel-preset/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
"publishConfig": {
"access": "public"
},
"//": "~~ Generated by projen. To modify, edit .projenrc.mts and run \"npx projen\"."
"//": "~~ Generated by projen. To modify, edit .projenrc.ts and run \"npx projen\"."
}
2 changes: 1 addition & 1 deletion packages/babel-preset/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// ~~ Generated by projen. To modify, edit .projenrc.mts and run "npx projen".
// ~~ Generated by projen. To modify, edit .projenrc.ts and run "npx projen".
{
"$schema": "https://json.schemastore.org/tsconfig",
"extends": "@langri-sha/tsconfig/project",
Expand Down
Loading