@rollup/plugin-esm-shim
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -10,5 +10,5 @@ 'use strict'; | ||
// -- Shims -- | ||
import cjsUrl from 'url'; | ||
import cjsPath from 'path'; | ||
import cjsModule from 'module'; | ||
import cjsUrl from 'node:url'; | ||
import cjsPath from 'node:path'; | ||
import cjsModule from 'node:module'; | ||
const __filename = cjsUrl.fileURLToPath(import.meta.url); | ||
@@ -15,0 +15,0 @@ const __dirname = cjsPath.dirname(__filename); |
@@ -6,5 +6,5 @@ import MagicString from 'magic-string'; | ||
// -- Shims -- | ||
import cjsUrl from 'url'; | ||
import cjsPath from 'path'; | ||
import cjsModule from 'module'; | ||
import cjsUrl from 'node:url'; | ||
import cjsPath from 'node:path'; | ||
import cjsModule from 'node:module'; | ||
const __filename = cjsUrl.fileURLToPath(import.meta.url); | ||
@@ -11,0 +11,0 @@ const __dirname = cjsPath.dirname(__filename); |
{ | ||
"name": "@rollup/plugin-esm-shim", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"publishConfig": { | ||
@@ -26,16 +26,2 @@ "access": "public" | ||
}, | ||
"scripts": { | ||
"build": "rollup -c", | ||
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov", | ||
"ci:lint": "pnpm build && pnpm lint", | ||
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", | ||
"ci:test": "pnpm test -- --verbose && pnpm test:ts", | ||
"prebuild": "del-cli dist", | ||
"prepare": "if [ ! -d 'dist' ]; then pnpm build; fi", | ||
"prerelease": "pnpm build", | ||
"pretest": "pnpm build", | ||
"release": "pnpm --workspace-root plugin:release --pkg $npm_package_name", | ||
"test": "ava", | ||
"test:ts": "tsc types/index.d.ts test/types.ts --noEmit" | ||
}, | ||
"files": [ | ||
@@ -70,3 +56,16 @@ "dist", | ||
}, | ||
"types": "./types/index.d.ts" | ||
} | ||
"types": "./types/index.d.ts", | ||
"scripts": { | ||
"build": "rollup -c", | ||
"ci:coverage": "nyc pnpm test && nyc report --reporter=text-lcov > coverage.lcov", | ||
"ci:lint": "pnpm build && pnpm lint", | ||
"ci:lint:commits": "commitlint --from=${CIRCLE_BRANCH} --to=${CIRCLE_SHA1}", | ||
"ci:test": "pnpm test -- --verbose && pnpm test:ts", | ||
"prebuild": "del-cli dist", | ||
"prerelease": "pnpm build", | ||
"pretest": "pnpm build", | ||
"release": "pnpm --workspace-root package:release $(pwd)", | ||
"test": "ava", | ||
"test:ts": "tsc types/index.d.ts test/types.ts --noEmit" | ||
} | ||
} |
@@ -5,5 +5,5 @@ export const CJSyntaxRegex = /__filename|__dirname|require\(|require\.resolve\(/; | ||
// -- Shims -- | ||
import cjsUrl from 'url'; | ||
import cjsPath from 'path'; | ||
import cjsModule from 'module'; | ||
import cjsUrl from 'node:url'; | ||
import cjsPath from 'node:path'; | ||
import cjsModule from 'node:module'; | ||
const __filename = cjsUrl.fileURLToPath(import.meta.url); | ||
@@ -10,0 +10,0 @@ const __dirname = cjsPath.dirname(__filename); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13651
12