1.10.0 • Published 1 month ago

publish-scripts v1.10.0

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
1 month ago

publish-scripts

Usage

First, add publish-scripts as a dev dep

yarn add --dev publish-scripts

Now, update your package.json's scripts property:

    "build:cjs": "yarn tsc -p tsconfig.json --outDir dist --module commonjs || true",
    "build:mjs": "yarn tsc -p tsconfig.json --outDir mjs --module es2022 --declaration false || true",
    "build:rename": "publish-scripts --cmd rename --srcDir mjs --outDir dist --findExt js --replaceExt mjs",
    "build:copy": "publish-scripts --cmd copy --srcDir dist --outDir . --findExt js,map,mjs,d.ts --stripPath codegen",
    "build:clean": "publish-scripts --cmd clean --srcDir dist --outDir . --findExt js,map,mjs,d.ts --stripPath codegen --removeEmpty",
    "build:ignore": "publish-scripts --cmd ignore --srcDir dist --outDir . --findExt js,map,mjs,d.ts --stripPath codegen --gitignoreFile .gitignore",
    "build": "npm run clean && npm run build:cjs && npm run build:mjs && npm run build:rename && rimraf mjs && npm run build:copy && npm run build:ignore",
    "clean:mjs": "rimraf mjs",
    "clean:dist": "rimraf dist",
    "clean": "npm run build:clean && npm run clean:mjs && npm run clean:dist",
1.10.0

1 month ago

1.9.0

10 months ago

1.8.0

10 months ago

1.7.0

10 months ago

1.6.0

10 months ago

1.5.0

10 months ago

1.4.0

10 months ago

1.3.0

10 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago

0.9.0

10 months ago

0.8.0

10 months ago

0.7.0

10 months ago

0.6.1

10 months ago

0.6.0

10 months ago

0.5.0

10 months ago

0.4.0

10 months ago

0.3.1

10 months ago

0.2.0

10 months ago

0.1.0

10 months ago

0.0.1

10 months ago