UNPKG

@js-temporal/polyfill

Version:

Polyfill for Tc39 Stage 3 proposal Temporal (https://github.com/tc39/proposal-temporal)

136 lines (135 loc) 4.36 kB
{ "name": "@js-temporal/polyfill", "version": "0.4.3", "description": "Polyfill for Tc39 Stage 3 proposal Temporal (https://github.com/tc39/proposal-temporal)", "type": "module", "main": "./dist/index.cjs", "module": "./dist/index.esm.js", "browser": "./dist/index.umd.js", "exports": { ".": [ { "import": { "types": "./index.d.ts", "default": "./dist/index.esm.js" }, "require": { "types": "./index.d.cts", "default": "./dist/index.cjs" }, "default": "./dist/index.cjs" }, "./dist/index.cjs" ] }, "types": "./index.d.ts", "scripts": { "test": "npm run build && 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", "testValidStrings": "npm run build && node --experimental-modules --experimental-specifier-resolution=node --no-warnings --icu-data-dir ./node_modules/full-icu/ --loader ./test/resolve.source.mjs test/validStrings.mjs", "build": "rm -rf dist/* tsc-out/* && tsc && rollup -c rollup.config.js", "prepare": "npm run build", "prepublishOnly": "node copy-types.mjs && 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" }, "keywords": [ "Calendar", "Date", "DateTime", "Duration", "Instant", "MonthDay", "Polyfill", "Temporal", "Time", "Timestamp", "TimeZone", "YearMonth" ], "author": "Philipp Dunkel <pip@pipobscure.com>", "contributors": [ "Daniel Ehrenberg", "Jason Williams", "Justin Grant", "James Wright", "Maggie Johnson-Pint", "Matt Johnson-Pint", "Ms2ger", "Philip Chimento", "Philipp Dunkel", "Sasha Pierson", "Shane F. Carr", "Ujjwal Sharma" ], "license": "ISC", "files": [ "index.d.ts", "index.d.cts", "dist", "lib", "CHANGELOG.md" ], "dependencies": { "jsbi": "^4.1.0", "tslib": "^2.3.1" }, "devDependencies": { "@babel/core": "^7.16.5", "@babel/preset-env": "^7.16.5", "@pipobscure/demitasse": "^1.0.10", "@pipobscure/demitasse-pretty": "^1.0.10", "@pipobscure/demitasse-run": "^1.0.10", "@rollup/plugin-babel": "^5.3.0", "@rollup/plugin-commonjs": "^21.0.1", "@rollup/plugin-node-resolve": "^13.1.1", "@rollup/plugin-replace": "^3.0.0", "@rollup/plugin-typescript": "^8.3.0", "@typescript-eslint/eslint-plugin": "^5.7.0", "@typescript-eslint/parser": "^5.7.0", "eslint": "^8.4.1", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", "full-icu": "^1.4.0", "prettier": "^2.5.1", "rollup": "^2.61.1", "rollup-plugin-dts": "^4.0.1", "rollup-plugin-terser": "^7.0.2", "test262-harness": "^9.0.0", "timezones.json": "^1.5.3", "ts-prune": "^0.10.3", "typescript": "^4.5.4" }, "engines": { "node": ">=12" }, "prettier": { "printWidth": 120, "trailingComma": "none", "tabWidth": 2, "semi": true, "singleQuote": true, "bracketSpacing": true, "arrowParens": "always" }, "directories": { "lib": "lib", "test": "test" }, "repository": { "type": "git", "url": "git+https://github.com/js-temporal/temporal-polyfill.git" }, "bugs": { "url": "https://github.com/js-temporal/temporal-polyfill/issues" }, "homepage": "https://github.com/js-temporal/temporal-polyfill#readme" }