Skip to content

Commit dc24a96

Browse files
committed
chore: update build setup
1 parent 8e4f870 commit dc24a96

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+3640
-618
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable no-undef */
22
module.exports = {
3-
ignorePatterns: ["dtslint/", "lib/", "es6/", "build/", "dist", "react/demo/"],
3+
ignorePatterns: ["build", "dist"],
44
parser: "@typescript-eslint/parser",
55
parserOptions: {
66
ecmaVersion: 2018,

.gitignore

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
tsbuildinfo/
88
node_modules/
99
yarn-error.log
10-
.npmrc
10+
.ultra.cache.json
1111
.DS_Store
12-
compiler/
13-
dist/
1412
tmp/
15-
core/
13+
build/
14+
dist/

.npmignore

Lines changed: 0 additions & 7 deletions
This file was deleted.

.swcrc

Lines changed: 0 additions & 29 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@
1717
"editor.defaultFormatter": "dbaeumer.vscode-eslint"
1818
},
1919
"files.exclude": {
20-
"**/.yarn*": true,
21-
"**/.*.js": true,
22-
"**/.swc": true,
23-
"**/.changeset": true,
24-
"**/yarn.lock": true,
25-
"**/.*rc": true,
26-
"**/.*config": true,
27-
"**/.git*": true,
28-
"**/.npmignore*": true,
29-
"**/.husky": true,
30-
"**/LICENSE.*": true,
31-
"**/lerna.json": true,
32-
"**/jest.config.js": true,
20+
//"**/.yarn*": true,
21+
//"**/.*.js": true,
22+
//"**/.swc": true,
23+
//"**/.changeset": true,
24+
//"**/yarn.lock": true,
25+
//"**/.*rc": true,
26+
//"**/.*config": true,
27+
//"**/.git*": true,
28+
//"**/.npmignore*": true,
29+
//"**/.husky": true,
30+
//"**/LICENSE.*": true,
31+
//"**/lerna.json": true,
32+
//"**/jest.config.js": true,
3333
},
3434
"prettier.disableLanguages": [
3535
"javascript",
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
diff --git a/pack.js b/pack.js
2+
index 988c1552544f433ba5ce6f8622f50ff820508b15..3e37a132cea1143cc99423a5de8a8835cb69b716 100644
3+
--- a/pack.js
4+
+++ b/pack.js
5+
@@ -47,6 +47,7 @@ const writePackageJsonContent = (0, Function_1.pipe)(TE.do, TE.bind("content", (
6+
carry("peerDependencies", content, packageJson);
7+
carry("gitHead", content, packageJson);
8+
carry("bin", content, packageJson);
9+
+ carry("tsplus", content, packageJson);
10+
const exports = {};
11+
const mainExports = {};
12+
if (fs.existsSync(`./build/mjs/index.mjs`)) {

package.json

Lines changed: 48 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,65 +1,70 @@
11
{
2-
"name": "@tsplus/stdlib",
3-
"version": "0.0.0",
4-
"repository": "https://github.com/ts-plus/installer.git",
2+
"name": "tsplus",
3+
"private": true,
4+
"repository": "https://github.com/ts-plus/stdlib.git",
55
"author": "Michael Arnaldi <arnaldimichael@gmail.com>",
66
"license": "MIT",
7-
"typesVersions": {
8-
"*": {
9-
"*": [
10-
"./build/dts/*"
11-
]
12-
}
13-
},
14-
"exports": {
15-
"./*": {
16-
"require": "./build/cjs/*.js",
17-
"import": "./build/esm/*.js"
18-
}
19-
},
20-
"ets": {
21-
"typeDir": "./build/dts"
22-
},
23-
"publishConfig": {
24-
"access": "public"
25-
},
7+
"workspaces": [
8+
"packages/*"
9+
],
2610
"scripts": {
2711
"changeset": "changeset",
2812
"release": "changeset publish",
29-
"build": "yarn build:clean && yarn build:esm && yarn build:cjs",
30-
"build:esm": "tsc -b tsconfig.json",
31-
"build:cjs": "cp .swcrc dist && cd dist && swc ./esm -d ./cjs",
32-
"build:clean": "rimraf dist",
3313
"postinstall": "tsplus-install",
34-
"swc": "swc"
14+
"clean": "ultra -r clean",
15+
"build": "ultra -r build",
16+
"circular": "ultra -r circular",
17+
"test": "jest --detectOpenHandles",
18+
"autofix": "ultra -r autofix",
19+
"lint": "ultra -r lint",
20+
"tc": "ultra -r tc",
21+
"org:rimraf": "cd $INIT_CWD && rimraf",
22+
"org:tsc": "cd $INIT_CWD && tsc",
23+
"org:eslint": "cd $INIT_CWD && eslint",
24+
"org:prettier": "cd $INIT_CWD && prettier",
25+
"org:concurrently": "cd $INIT_CWD && concurrently",
26+
"org:build-utils": "cd $INIT_CWD && build-utils",
27+
"org:ts-node": "cd $INIT_CWD && ts-node",
28+
"org:babel": "cd $INIT_CWD && babel",
29+
"org:madge": "cd $INIT_CWD && madge"
3530
},
3631
"packageManager": "yarn@3.1.1",
3732
"devDependencies": {
38-
"@changesets/changelog-github": "^0.4.2",
39-
"@changesets/cli": "^2.20.0",
40-
"@swc/cli": "^0.1.55",
41-
"@swc/core": "^1.2.137",
42-
"@tsplus/installer": "^0.0.21",
43-
"@types/node": "^17.0.13",
33+
"@babel/cli": "^7.17.6",
34+
"@babel/core": "^7.17.5",
35+
"@babel/plugin-transform-modules-commonjs": "^7.16.8",
36+
"@changesets/changelog-github": "^0.4.3",
37+
"@changesets/cli": "^2.21.0",
38+
"@effect-ts/build-utils": "^0.38.2",
39+
"@effect-ts/core": "^0.58.0",
40+
"@tsplus/installer": "^0.0.31",
41+
"@types/node": "^17.0.21",
4442
"@types/rimraf": "^3.0.2",
45-
"@typescript-eslint/eslint-plugin": "^5.10.0",
46-
"@typescript-eslint/parser": "^5.10.0",
47-
"ci-info": "^3.3.0",
48-
"eslint": "^8.7.0",
49-
"eslint-config-prettier": "^8.3.0",
43+
"@typescript-eslint/eslint-plugin": "^5.13.0",
44+
"@typescript-eslint/parser": "^5.13.0",
45+
"babel-plugin-annotate-pure-calls": "^0.4.0",
46+
"babel-plugin-replace-import-extension": "^1.1.2",
47+
"chalk": "4.1.2",
48+
"concurrently": "^7.0.0",
49+
"cpx": "^1.5.0",
50+
"eslint": "^8.10.0",
51+
"eslint-config-prettier": "^8.4.0",
5052
"eslint-import-resolver-typescript": "^2.5.0",
5153
"eslint-plugin-codegen": "0.16.1",
5254
"eslint-plugin-import": "^2.25.4",
53-
"eslint-plugin-jest": "^25.7.0",
55+
"eslint-plugin-jest": "^26.1.1",
5456
"eslint-plugin-prettier": "^4.0.0",
5557
"eslint-plugin-simple-import-sort": "^7.0.0",
5658
"eslint-plugin-sort-destructure-keys": "^1.4.0",
59+
"madge": "^5.0.1",
5760
"prettier": "^2.5.1",
5861
"rimraf": "^3.0.2",
59-
"ts-node": "^10.4.0",
60-
"typescript": "^4.5.5"
62+
"ts-node": "^10.5.0",
63+
"typescript": "^4.6.2",
64+
"ultra-runner": "^3.10.5"
6165
},
6266
"resolutions": {
63-
"eslint-plugin-codegen": "patch:eslint-plugin-codegen@0.16.1#.yarn/patches/eslint-plugin-codegen.patch"
67+
"eslint-plugin-codegen": "patch:eslint-plugin-codegen@0.16.1#.yarn/patches/eslint-plugin-codegen.patch",
68+
"@effect-ts/build-utils@0.38.2": "patch:@effect-ts/build-utils@npm:0.38.2#.yarn/patches/@effect-ts-build-utils-npm-0.38.2-6704bdca8a"
6469
}
65-
}
70+
}
File renamed without changes.

packages/stdlib/.babel.cjs.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"plugins": [
3+
[
4+
"@babel/transform-modules-commonjs"
5+
],
6+
[
7+
"annotate-pure-calls"
8+
]
9+
]
10+
}

packages/stdlib/.babel.mjs.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"plugins": [
3+
[
4+
"replace-import-extension",
5+
{
6+
"extMapping": {
7+
".js": ".mjs"
8+
}
9+
}
10+
],
11+
[
12+
"annotate-pure-calls"
13+
]
14+
]
15+
}

0 commit comments

Comments
 (0)