@js-temporal/polyfill

v0.3.0
Polyfill for Tc39 Stage 3 proposal Temporal (https://github.com/tc39/proposal-temporal)
Calendar Date DateTime Duration Instant MonthDay Polyfill Temporal Time and 4 more...

test

tsc && node --no-warnings --experimental-modules --experimental-specifier-resolution=node --icu-data-dir node_modules/full-icu --loader ./test/resolve.source.mjs ./test/all.mjs

test262

TEST262=1 npm run build && ./test/test262.sh

build

rm -rf dist/* tsc-out/* && tsc && rollup -c rollup.config.js

prepare

npm run build

prepublishOnly

npm run build

update

npx npm-check-updates -u -x @pipobscure/demitasse && npm install

playground

TEMPORAL_PLAYGROUND=1 npm run build && node --experimental-modules --no-warnings --icu-data-dir node_modules/full-icu -r ./dist/playground.cjs

lint

eslint . --ext ts,js,mjs,.d.ts --max-warnings 0 --cache "$@" && npm run prettier

postlint

npm run tscheck

prune

ts-prune -e -i test/tc39 -i "(lib/index|lib/init|index.d).ts"

prettier

prettier lib/* ./test/*.mjs ./*.md ./*.json ./*.d.ts ./*.js ./.*.yml --check

prettierfix

prettier lib/* ./test/*.mjs ./*.md ./*.json ./*.d.ts ./*.js ./.*.yml --check --write

eslintfix

eslint . --ext ts,js,mjs,.d.ts --fix

fix

npm run eslintfix && npm run prettierfix

tscheck

tsc index.d.ts --noEmit --strict --lib ESNext
npm i @js-temporal/[email protected]

Metadata

  • ISC
  • >=12
  • Philipp Dunkel
  • released 12/10/2021

Downloads