Skip to content

Commit

Permalink
deps(packemon): Update to v3.
Browse files Browse the repository at this point in the history
  • Loading branch information
milesj committed May 2, 2023
1 parent 41fd422 commit ecc31da
Show file tree
Hide file tree
Showing 16 changed files with 345 additions and 353 deletions.
3 changes: 1 addition & 2 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@ build/
cjs/
coverage/
dist/
dts/
esm/
lib/
mjs/
umd/
*.min.js
*.map
*.snap
*.snap
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ _book/
cache/
coverage/
build/
dts/
esm/
lib/
mjs/
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ build/
cjs/
coverage/
dist/
dts/
esm/
lib/
mjs/
Expand Down
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@
"private": true,
"version": "0.0.0",
"scripts": {
"build": "packemon build --addEngines",
"pack": "NODE_ENV=production packemon pack --addEngines --declaration",
"clean": "packemon clean",
"build": "packemon build-workspace --addEngines",
"pack": "packemon pack-workspace --addEngines --declaration",
"clean:cache": "rm -rf ./cache",
"check": "yarn run type && yarn run test && yarn run lint",
"coverage": "yarn run jest --coverage",
Expand All @@ -19,7 +18,7 @@
"generate:types": "node ./bin/generateTypes.mjs",
"test": "jest --colors --logHeapUsage",
"format": "prettier --write .",
"release": "yarn run clean && yarn run pack && yarn run check && lerna-release",
"release": "yarn run pack && yarn run check && lerna-release",
"type": "tsc --build"
},
"engines": {
Expand All @@ -38,7 +37,7 @@
"jest": "^29.5.0",
"jest-preset-moon": "^2.0.1",
"lerna": "^6.6.1",
"packemon": "^2.4.1",
"packemon": "^3.0.3",
"prettier": "^2.8.8",
"prettier-config-moon": "^1.1.2",
"tsconfig-moon": "^1.3.0",
Expand Down
13 changes: 8 additions & 5 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@
"license": "MIT",
"main": "./lib/index.js",
"module": "./esm/index.js",
"types": "./dts/index.d.ts",
"types": "./lib/index.d.ts",
"files": [
"dts/**/*.d.ts",
"esm/**/*.{js,map}",
"lib/**/*.{js,map}",
"src/**/*.{ts,tsx,json}"
"esm/**/*",
"lib/**/*",
"src/**/*"
],
"sideEffects": false,
"publishConfig": {
Expand All @@ -36,6 +35,10 @@
"url": "https://ko-fi.com/milesjohnson"
},
"packemon": {
"format": [
"esm",
"lib"
],
"platform": "browser"
}
}
13 changes: 13 additions & 0 deletions packages/core/tsconfig.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"outDir": "esm",
"rootDir": "src",
"emitDeclarationOnly": true
},
"extends": "../../tsconfig.options.json",
"include": [
"src/**/*",
"types/**/*",
"../../types/**/*"
]
}
13 changes: 9 additions & 4 deletions packages/core/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"compilerOptions": {
"declarationDir": "dts",
"outDir": "dts",
"outDir": "lib",
"rootDir": "src",
"emitDeclarationOnly": true
},
"exclude": [
"dts",
"tests"
],
"extends": "../../tsconfig.options.json",
Expand All @@ -15,5 +13,12 @@
"types/**/*",
"../../types/**/*"
],
"references": []
"references": [
{
"path": "./tsconfig.esm.json"
},
{
"path": "./tsconfig.lib.json"
}
]
}
13 changes: 13 additions & 0 deletions packages/core/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"compilerOptions": {
"outDir": "lib",
"rootDir": "src",
"emitDeclarationOnly": true
},
"extends": "../../tsconfig.options.json",
"include": [
"src/**/*",
"types/**/*",
"../../types/**/*"
]
}
10 changes: 5 additions & 5 deletions packages/generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,10 @@
"type": "module",
"main": "./mjs/index.mjs",
"module": "./mjs/index.mjs",
"types": "./dts/index.d.ts",
"types": "./mjs/index.d.ts",
"files": [
"dts/**/*.d.ts",
"mjs/**/*.{mjs,map}",
"src/**/*.{ts,tsx,json}"
"mjs/**/*",
"src/**/*"
],
"dependencies": {
"@types/cheerio": "^0.22.31",
Expand All @@ -39,10 +38,11 @@
"transliteration": "^2.3.5"
},
"packemon": {
"format": "mjs",
"platform": "node"
},
"engines": {
"node": ">=14.15.0",
"node": ">=16.12.0",
"npm": ">=6.14.0"
}
}
7 changes: 4 additions & 3 deletions packages/generator/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"compilerOptions": {
"declarationDir": "dts",
"outDir": "dts",
"outDir": "mjs",
"rootDir": "src",
"emitDeclarationOnly": true
},
"exclude": [
"dts",
"tests"
],
"extends": "../../tsconfig.options.json",
Expand All @@ -16,6 +14,9 @@
"../../types/**/*"
],
"references": [
{
"path": "./tsconfig.mjs.json"
},
{
"path": "../core"
}
Expand Down
18 changes: 18 additions & 0 deletions packages/generator/tsconfig.mjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"outDir": "mjs",
"rootDir": "src",
"emitDeclarationOnly": true
},
"extends": "../../tsconfig.options.json",
"include": [
"src/**/*",
"types/**/*",
"../../types/**/*"
],
"references": [
{
"path": "../core"
}
]
}
1 change: 0 additions & 1 deletion packages/regex/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"emitDeclarationOnly": true
},
"exclude": [
"dts",
"tests"
],
"extends": "../../tsconfig.options.json",
Expand Down
10 changes: 4 additions & 6 deletions packages/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
"author": "Miles Johnson",
"license": "MIT",
"main": "./lib/index.js",
"types": "./dts/index.d.ts",
"types": "./lib/index.d.ts",
"files": [
"dts/**/*.d.ts",
"lib/**/*.{js,map}",
"mjs/**/*.{mjs,map}",
"src/**/*.{ts,tsx,json}",
"lib/**/*",
"src/**/*",
"test-data.json",
"test-messages.json",
"test-shortcodes.json"
Expand All @@ -43,7 +41,7 @@
"platform": "node"
},
"engines": {
"node": ">=14.15.0",
"node": ">=16.12.0",
"npm": ">=6.14.0"
}
}
9 changes: 5 additions & 4 deletions packages/test-utils/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"compilerOptions": {
"declarationDir": "dts",
"outDir": "dts",
"outDir": "lib",
"rootDir": "src",
"emitDeclarationOnly": true
},
"exclude": [
"dts",
"tests"
],
"extends": "../../tsconfig.options.json",
Expand All @@ -16,8 +14,11 @@
"../../types/**/*"
],
"references": [
{
"path": "./tsconfig.lib.json"
},
{
"path": "../core"
}
]
}
}
18 changes: 18 additions & 0 deletions packages/test-utils/tsconfig.lib.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"compilerOptions": {
"outDir": "lib",
"rootDir": "src",
"emitDeclarationOnly": true
},
"extends": "../../tsconfig.options.json",
"include": [
"src/**/*",
"types/**/*",
"../../types/**/*"
],
"references": [
{
"path": "../core"
}
]
}
Loading

0 comments on commit ecc31da

Please sign in to comment.